Page 1 of 1

Invalid argument supplied for foreach() in php

Posted: 01 Mar 2016, 16:35
by Honza21
Hello,
I have problem. When I add link for a category of one gallery to article on my new site I can´t see category but only system warning:
Warning: Invalid argument supplied for foreach() in /data/web/virtuals/125961/virtual/www/plugins/content/phocagallery/phocagallery.php on line 898
How can I solve it?

I have joomla 3.4 and phoca gallery 4.2

Re: Invalid argument supplied for foreach() in php

Posted: 01 Mar 2016, 17:30
by Jan
Hi, is the category parent category or some subcategory?

Which plugin version do you use? Which plugin code did you set for the article?

Jan

Re: Invalid argument supplied for foreach() in php

Posted: 01 Mar 2016, 18:14
by Honza21
Hi Jan,
it is subcategory.
As I wrote, I have phoca gallery version 4.2.2, implemeted plugin "Button - Phoca Gallery" and "Content - Phoca Gallery" and czech lang pack.
If you have time - I can send you link and I can create test user for you by PM or e-mail, because I don´t know what you mean "plugin code for article".

Mayby you mean this? "{phocagallery view=categories|imagecategories=1|imagecategoriessize=2|hidecategories=6}"?

Re: Invalid argument supplied for foreach() in php

Posted: 05 Mar 2016, 19:09
by Jan
Are there published and authorized categories in your Phoca Gallery.

Jan