Page 1 of 1

[SOLVED] Phoca Gallery plugin invalid argument error

Posted: 19 Aug 2012, 13:14
by Beluga
I'm using Joomla 2.5 and the latest Phoca Gallery. Gallery works just fine with the component, as a menu type.
Added gallery to an article with Button plugin, which output this:
{phocagallery view=categories|imagecategories=1|imagecategoriessize=0|hidecategories=1}

Here is the error:

Warning: Invalid argument supplied for foreach() in C:\wamp\www\mysite\plugins\content\phocagallery\phocagallery.php on line 841

Re: Phoca Gallery plugin invalid argument error

Posted: 25 Aug 2012, 16:08
by Jan
Hi, did you get some message from database? Does the category with ID = 1 exist? Remove hidecategories=1 as you cannot display category 1 and then hide it from displaying.

Jan

Re: Phoca Gallery plugin invalid argument error

Posted: 25 Aug 2012, 17:40
by Beluga
Thanks for the info, it worked! The erroneous string was produced by inserting a Category with Phoca button, if you want to test.

Re: [SOLVED] Phoca Gallery plugin invalid argument error

Posted: 26 Aug 2012, 19:26
by Jan
Hi, yes, if there are so much possible parameters, some can be in conflict to each other, it is better to have possibility to set such parameter but you need to care about it will not do the opposite feature like other parameter than have no parameters (becasue of possible logic conflict)

Jan