Page 1 of 1

Warning: Invalid argument supplied for foreach()

Posted: 24 Feb 2012, 07:26
by vishal3184
Hi There,

I have installed "com_phocagallery_v2.8.1" phoca component. It gave me message component install successfully.

But while I went for creating category it throws error :

"Warning: Invalid argument supplied for foreach() in /home/mysite/public_html/Dev/administrator/components/com_phocagallery/models/phocagallerycs.php on line 126"


I am using joomla 1.5.25. Am I doing anything wrong?

How to sort this?

Awaiting to hear back from you.

Regards,
Vishal

Re: Warning: Invalid argument supplied for foreach()

Posted: 25 Feb 2012, 23:11
by Jan

Re: Warning: Invalid argument supplied for foreach()

Posted: 25 Apr 2012, 01:52
by mipavluk
Hi Jan

I already install other 2 galleries in other 2 sites in the same server, without a problem

but now, try to install it in joomla 1.5 with phoca 2.8.1. and get this error

try to fix it in the way you point above... without sucess... could you please help me a bit more...?

thanks in advance...

Marta

Re: Warning: Invalid argument supplied for foreach()

Posted: 26 Apr 2012, 21:07
by Jan
Hi, you just need to enable debug mode to see which error you get in the database. Without knowing this error, nobody can help :-(


Jan

Re: Warning: Invalid argument supplied for foreach()

Posted: 28 Apr 2012, 13:51
by mipavluk
ohhhh sorry!!!

Image

http://s87.photobucket.com/albums/k125/ ... magen2.jpg

thanks in advance...

Marta

Re: Warning: Invalid argument supplied for foreach()

Posted: 30 Apr 2012, 16:55
by Jan
Hi, your database just misses the categories table, see:
https://www.phoca.cz/documents/16-joomla ... ent-errors

Jan

Re: Warning: Invalid argument supplied for foreach()

Posted: 14 May 2012, 20:44
by mipavluk
thank you!