Invalid argument supplied for foreach

Phoca Download - download manager
pdvk
Phoca Newbie
Phoca Newbie
Posts: 1
Joined: 15 Jun 2012, 13:23

Invalid argument supplied for foreach

Post by pdvk »

Warning: Invalid argument supplied for foreach() in /home/mysite/public_html/libraries/joomla/database/database/mysql.php on line 377

Warning: Invalid argument supplied for foreach() in /home/mysite/public_html/libraries/joomla/database/database/mysql.php on line 377

Warning: Invalid argument supplied for foreach() in /home/mysite/public_html/libraries/joomla/database/database/mysql.php on line 377

This appears on the new file screen then appears again after trying to upload a file. I have no clue how to fix this, any help you be great!

Thank you in advance :)
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48587
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Invalid argument supplied for foreach

Post by Jan »

Hi, seems like database tables are missing in your installation, see:
https://www.phoca.cz/documents/16-joomla ... ent-errors

Jan
If you find Phoca extensions useful, please support the project
icaza
Phoca Newbie
Phoca Newbie
Posts: 1
Joined: 04 Feb 2013, 18:07

Re: Invalid argument supplied for foreach

Post by icaza »

I made ​​that mistake when i was migrating my page joomla 1.5 to 2.5. I solved simply by installing Mysql putting my joomla 2.5 Mysqli instead, because if I'm not wrong joomla 1.5 use Mysql and change a few sentences in the file mysql, maybe you can also fix the problem causing the file to point to the file mysqli is in the folder / Database

sory my english am from chile :idea:
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48587
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Invalid argument supplied for foreach

Post by Jan »

Hi, in Phoca Download, there is no database layer (not setting of myslq or mysqli) - all this is done in Joomla! settings.

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