Invalid argument supplied for foreach() in php

Phoca Gallery - image gallery extension
Honza21
Phoca Newbie
Phoca Newbie
Posts: 2
Joined: 01 Mar 2016, 16:25

Invalid argument supplied for foreach() in php

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

Re: Invalid argument supplied for foreach() in php

Post 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
If you find Phoca extensions useful, please support the project
Honza21
Phoca Newbie
Phoca Newbie
Posts: 2
Joined: 01 Mar 2016, 16:25

Re: Invalid argument supplied for foreach() in php

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

Re: Invalid argument supplied for foreach() in php

Post by Jan »

Are there published and authorized categories in your Phoca Gallery.

Jan
If you find Phoca extensions useful, please support the project
Post Reply