Page 1 of 1
Warning: Invalid argument supplied for foreach()
Posted: 29 Jul 2013, 12:35
by lydiaweb
Hi, I have been using the phocagallery component with the phocagallery plugin without problems. Now I am having a problem with the plugin when i try to display images from Facebook Fan Page. on the front end it displays the error: "Warning: Invalid argument supplied for foreach().." yes it displays the Facebook images but images from other categories that are non-Facebook are not shown. Kindly help.
I am using Joomla 2.5 with the up to date version of phocagallery component and plugin.
Thank you.
Re: Warning: Invalid argument supplied for foreach()
Posted: 01 Aug 2013, 00:07
by Jan
Hi, enable debug mode, seems like there is some database problem while loading the data from database
Jan
Re: Warning: Invalid argument supplied for foreach()
Posted: 01 Aug 2013, 00:36
by lydiaweb
Hi, i've enabled the debug mode in htacces and the error reporting under global configuration is set to system default, still the same error.
so i tried another thing...in the phocagallery component i unpublished all images contained in the fanpage category then one by one published them, no errors until i publish the 46th image. could it be the sizes of the fanpage images are too big? or is there a limit to the number of facebook images that can be displayed?
Re: Warning: Invalid argument supplied for foreach()
Posted: 05 Aug 2013, 14:11
by Jan
Hmm, yes, maybe this can be a memory issue, but 46 images - this should not be any problem, try to see some errorLog on the server etc., because without getting specific error message, it is hard to say what exactly is the problem
Jan