Just installed Phoca Download 1.0.6 on Joomla 1.5.8. Installation seemed to be successful. But when I go to the Sections area in the Administrator I get the following error message:
Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/lazerang/public_html/joomlarus/libraries/joomla/database/database/mysql.php on line 342
Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/lazerang/public_html/joomlarus/libraries/joomla/database/database/mysql.php on line 342
I added a section but it doesn't show up in the list.
If I go to Categories I get the following error messages:
Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/lazerang/public_html/joomlarus/libraries/joomla/database/database/mysql.php on line 342
Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/lazerang/public_html/joomlarus/libraries/joomla/database/database/mysql.php on line 342
Warning: array_unshift() [function.array-unshift]: The first argument should be an array in /home/lazerang/public_html/joomlarus/administrator/components/com_phocadownload/views/phocadownloadcats/view.html.php on line 72
Warning: Invalid argument supplied for foreach() in /home/lazerang/public_html/joomlarus/libraries/joomla/html/html/select.php on line 68
Installation doesn't seem to have worked or something...
Warning: mysql_num_rows(): supplied argument is not a valid
-
- Phoca Member
- Posts: 20
- Joined: 07 Feb 2009, 21:32
- Jan
- Phoca Hero
- Posts: 48852
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Warning: mysql_num_rows(): supplied argument is not a valid
Hi, it seems like tables for Phoca Download were not created by installation, see the following site (it is for Phoca Gallery but it is the same as for Phoca Download):
https://www.phoca.cz/documents/2-phoca-g ... em-solving
Jan
https://www.phoca.cz/documents/2-phoca-g ... em-solving
Jan
If you find Phoca extensions useful, please support the project
-
- Phoca Member
- Posts: 20
- Joined: 07 Feb 2009, 21:32
Re: Warning: mysql_num_rows(): supplied argument is not a valid
Thanks Jan!
That solved the problem. No tables were installed for some reason. Installing them manually and everything is great!
That solved the problem. No tables were installed for some reason. Installing them manually and everything is great!
- Jan
- Phoca Hero
- Posts: 48852
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Warning: mysql_num_rows(): supplied argument is not a valid
Thank you for such guide, Jan
If you find Phoca extensions useful, please support the project
-
- Phoca Member
- Posts: 15
- Joined: 04 Apr 2010, 05:59
Re: Warning: mysql_num_rows(): supplied argument is not a va
Hi,
I get the same message but only when I try to go to Users. I have added categories and uploade images and documents. I get the same message for both phoca download and gallery.
Please see below a screen dump of tables that are installed. When looking at the install.bak file it seems that all the tables are installed.

I am not sure what might be the issue.
The site is hosted on Windows server using IIS (not my choice).
Thanks,
J
I get the same message but only when I try to go to Users. I have added categories and uploade images and documents. I get the same message for both phoca download and gallery.
Code: Select all
Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in ?:\???\???\libraries\joomla\database\database\mysql.php on line 344
I am not sure what might be the issue.
The site is hosted on Windows server using IIS (not my choice).
Thanks,
J
- Jan
- Phoca Hero
- Posts: 48852
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Warning: mysql_num_rows(): supplied argument is not a va
Hi, did you enable debug mode to get more info about the database error?
Jan
Jan
If you find Phoca extensions useful, please support the project
- Jan
- Phoca Hero
- Posts: 48852
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Warning: mysql_num_rows(): supplied argument is not a va
Ok
If you find Phoca extensions useful, please support the project
-
- Phoca Newbie
- Posts: 2
- Joined: 01 Apr 2011, 05:26
Re: Warning: mysql_num_rows(): supplied argument is not a va
I solved this by uninstalling and re-installing. Took about two minutes.
-
- Phoca Newbie
- Posts: 6
- Joined: 04 Jul 2011, 13:42
Re: Warning: mysql_num_rows(): supplied argument is not a va
i have the same issue. nothing helped me. i tryed the instal.bak stuff and recognised that my "phocadownload" Tables are empty.
can anyone help me?
i am using joomla 1.6.3 and the latetest beta component and plugin versions.
can anyone help me?
i am using joomla 1.6.3 and the latetest beta component and plugin versions.
- Jan
- Phoca Hero
- Posts: 48852
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Warning: mysql_num_rows(): supplied argument is not a va
What says the debug mode?
If you find Phoca extensions useful, please support the project