Page 1 of 1

Invalid argument

Posted: 17 Nov 2014, 07:33
by margouillat
Hi,
the run perfect but i have this message
Warning: Invalid argument supplied for foreach() in /home/www/69d592bebf60581561c0be294d6008a0/web/app/cache.inc.php on line 36

Re: Invalid argument

Posted: 17 Nov 2014, 07:39
by illunis
I have the same problem as described at another post


what i did was to comment out this line and it works....of course i have no idea of the side effects at the time being :P

#foreach($old_caches as $file) unlink($file);

Re: Invalid argument

Posted: 17 Nov 2014, 09:45
by mjau-mjau
I am not entirely sure what this issue is, but either it related to PHP version or write permissions, or just warnings that could be suppressed by better coding ... I think it is the last. Please download this file i.php and upload it to the root of your x3 folder. I need it to diagnose various PHP settings on your server please.

Re: Invalid argument

Posted: 17 Nov 2014, 09:47
by illunis
done !

http://www.mailme.gr/i.php

The php i am using at the moment is PHP Version 5.3.29

but i can change to 5.2 , 5.4, 5.5 if u need to.

Re: Invalid argument

Posted: 17 Nov 2014, 10:01
by mjau-mjau
illunis wrote:but i can change to 5.2 , 5.4, 5.5 if u need to.
I don't think this specific issue is related to PHP version, although for some stuff, you may need PHP 5.4. Can you do something for me? Check the permissions of the _cache/ folder, and thereafter check permissions of the _cache/pages/ + _cache/templates/ folder and see if they are the same as _cache. Finally, check inside the _cache/templates/ folder and see if there are any files or folders created.

I am guessing the issue here ... That although your server managed to create the main folders in _cache, it has not given itself permissions to write inside those folders. Awaiting your reply! If you want, you can give me FTP access, although I am fine to wait for your report also.

Re: Invalid argument

Posted: 17 Nov 2014, 10:06
by illunis
u ve got pm :wink:

Re: Invalid argument

Posted: 17 Nov 2014, 11:52
by mjau-mjau
For topic reference, the main questions here are hopefully solved in a minor release:
viewtopic.php?f=51&t=8316