Warning: Invalid argument supplied for foreach()

Phoca Gallery plugins - plugins for Phoca Gallery extension
marinos
Phoca Newbie
Phoca Newbie
Posts: 4
Joined: 09 Sep 2010, 05:36

Warning: Invalid argument supplied for foreach()

Post by marinos »

Hello

This error is showing on all article pages when I try to add a categories gallery to my articles by using the phoca gallery image button.

Code: Select all

Warning: Invalid argument supplied for foreach() in /home/accountname/public_html/domainname.com/plugins/content/phocagallery.php on line 740
This is the code added to the article.

Code: Select all

{phocagallery view=categories|imagecategories=1|imagecategoriessize=0|hidecategories=1}
I have installed
Phoca Gallery Slideshow Plugin
Phoca Gallery Plugin
Button - Phoca Gallery
phoca gallery component

Any help would be appreciated.
BarryA
Phoca Member
Phoca Member
Posts: 13
Joined: 26 Apr 2009, 10:06

Re: Warning: Invalid argument supplied for foreach()

Post by BarryA »

Hi I have the same problem when I go to Media Manger:

I have numerous similar warnings, this is the first one:

Warning: opendir(/home2/pssa/public_html/images/phocagallery/Pinewood_Derby_2nd_Apr_2010/thumbs) [function.opendir]: failed to open dir: Permission denied in /home2/pssa/public_html/libraries/joomla/filesystem/folder.php on line 484

Warning: readdir(): supplied argument is not a valid Directory resource in /home2/pssa/public_html/libraries/joomla/filesystem/folder.php on line 485

Warning: closedir(): supplied argument is not a valid Directory resource in /home2/pssa/public_html/libraries/joomla/filesystem/folder.php on line 511

Help please
Barry
marinos
Phoca Newbie
Phoca Newbie
Posts: 4
Joined: 09 Sep 2010, 05:36

Re: Warning: Invalid argument supplied for foreach()

Post by marinos »

I found a way around my problem, instead of selecting categories to add a category of images in an article; I just selected images and then chose a category and leaving limit start and limit count as 0. Same results easy fix. sorry Barry I don't have a solution for your problem. good luck
BarryA
Phoca Member
Phoca Member
Posts: 13
Joined: 26 Apr 2009, 10:06

Re: Warning: Invalid argument supplied for foreach()

Post by BarryA »

Hi Marinos
Many thanks, Maybe I will get a reply soon. Nice to hear you have solved your problem! :D
Regards
Barry
Post Reply