[SOLVED] Phoca Gallery plugin invalid argument error

Phoca Gallery plugins - plugins for Phoca Gallery extension
Beluga
Phoca Newbie
Phoca Newbie
Posts: 9
Joined: 18 Aug 2012, 15:22

[SOLVED] Phoca Gallery plugin invalid argument error

Post 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
Last edited by Beluga on 25 Aug 2012, 17:40, edited 1 time in total.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48694
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Phoca Gallery plugin invalid argument error

Post 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
If you find Phoca extensions useful, please support the project
Beluga
Phoca Newbie
Phoca Newbie
Posts: 9
Joined: 18 Aug 2012, 15:22

Re: Phoca Gallery plugin invalid argument error

Post 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.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48694
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: [SOLVED] Phoca Gallery plugin invalid argument error

Post 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
If you find Phoca extensions useful, please support the project
Post Reply