Search…

X3 Photo Gallery Support Forums

Search…
 
margouillat
Experienced
Topic Author
Posts: 34
Joined: 31 Jul 2011, 09:20

Invalid argument

17 Nov 2014, 07:33

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
Margouillat
loeildumargouillat.fr
 
illunis
Experienced
Posts: 84
Joined: 14 May 2012, 07:24

Re: Invalid argument

17 Nov 2014, 07:39

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);
 
User avatar
mjau-mjau
X3 Wizard
Posts: 13999
Joined: 30 Sep 2006, 03:37

Re: Invalid argument

17 Nov 2014, 09:45

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.
 
illunis
Experienced
Posts: 84
Joined: 14 May 2012, 07:24

Re: Invalid argument

17 Nov 2014, 09:47

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.
 
User avatar
mjau-mjau
X3 Wizard
Posts: 13999
Joined: 30 Sep 2006, 03:37

Re: Invalid argument

17 Nov 2014, 10:01

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.
 
illunis
Experienced
Posts: 84
Joined: 14 May 2012, 07:24

Re: Invalid argument

17 Nov 2014, 10:06

u ve got pm :wink:
 
User avatar
mjau-mjau
X3 Wizard
Posts: 13999
Joined: 30 Sep 2006, 03:37

Re: Invalid argument

17 Nov 2014, 11:52

For topic reference, the main questions here are hopefully solved in a minor release:
viewtopic.php?f=51&t=8316