List of files is empty

Phoca Download - download manager
ecolora
Phoca Member
Phoca Member
Posts: 10
Joined: 08 Apr 2011, 09:01
Location: Krasnoyarsk
Contact:

List of files is empty

Post by ecolora »

I have files in phoca download on my site. Here is example:

http://ecolora.com/index.php/programmy/ ... -joomla-15

But when i entered the admin page -> phoca download -> files i did not see any files. The list of files is empty. Why?

Joomla 1.6.
Phoca download 2.0.1.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49144
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: List of files is empty

Post by Jan »

Hi, enable debug mode and php error reporting to see if you will not get some error messge:

https://www.phoca.cz/documents/16-joomla ... rs-on-site
Jan
If you find Phoca extensions useful, please support the project
jenhol
Phoca Newbie
Phoca Newbie
Posts: 2
Joined: 28 Jul 2011, 14:14

Re: List of files is empty

Post by jenhol »

Hi, I´m experiencing the same problem, but I don´t understand the solution given in the answer?

PD 2.0.1
Joomla 1.6.5
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49144
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: List of files is empty

Post by Jan »

Hi, what exactl do you not understand? If you are not able to enable debug mode in your administration or enable php error reporting on your webhosting, you need to ask your webhosting provider :-(

Jan
If you find Phoca extensions useful, please support the project
jenhol
Phoca Newbie
Phoca Newbie
Posts: 2
Joined: 28 Jul 2011, 14:14

Re: List of files is empty

Post by jenhol »

Hi again, I turned the debug and display errors on, and now I´ve found what the problem is - the missing column in the database table.

My bad... :oops:

Problem solved - thx!
grendizer71
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 02 Aug 2011, 16:13
Contact:

Re: List of files is empty

Post by grendizer71 »

Hi to all.
I've got the same problem, can someone tell me what is the missing column in DB table? And what's the way to solve it? maybe using MyPHPadmin or using a script?

in my case, with the error lof enabled, the warning I have is "mysql_num_rows() expects parameter 1 to be resource, boolean given in /var/www/vhosts/comunedimassafra.gov.it/httpdocs/libraries/joomla/database/database/mysql.php on line 282

I'm no so sure that the problem is into the missing column... anyway...

I hope in an answer... bye and tnx in advance.
ecolora
Phoca Member
Phoca Member
Posts: 10
Joined: 08 Apr 2011, 09:01
Location: Krasnoyarsk
Contact:

Re: List of files is empty

Post by ecolora »

I got the same error message.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49144
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: List of files is empty

Post by Jan »

Hi, enable debug mode to see the error produced by database.

Jan
If you find Phoca extensions useful, please support the project
ecolora
Phoca Member
Phoca Member
Posts: 10
Joined: 08 Apr 2011, 09:01
Location: Krasnoyarsk
Contact:

Re: List of files is empty

Post by ecolora »

Good day. Error message is:
Warning: mysqli_num_rows() expects parameter 1 to be mysqli_result, boolean given in /home/ecolora/ecolora.com/docs/libraries/joomla/database/database/mysqli.php on line 345

Warning: mysqli_num_rows() expects parameter 1 to be mysqli_result, boolean given in /home/ecolora/ecolora.com/docs/libraries/joomla/database/database/mysqli.php on line 345

Warning: mysqli_num_rows() expects parameter 1 to be mysqli_result, boolean given in /home/ecolora/ecolora.com/docs/libraries/joomla/database/database/mysqli.php on line 345
grendizer71
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 02 Aug 2011, 16:13
Contact:

Re: List of files is empty

Post by grendizer71 »

in my case, as wrote, the warning I have is

"mysql_num_rows() expects parameter 1 to be resource, boolean given in /var/www/vhosts/comunedimassafra.gov.it/httpdocs/libraries/joomla/database/database/mysql.php on line 282"

Essentially the same one that ecolora has.

I've looking into the code, at line 282, and this is the result:

Code: Select all

public function getNumRows($cursor = null)
	{
		return mysql_num_rows($cursor ? $cursor : $this->cursor);
	}
Any ideas?
Post Reply