Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given in /home/controlm/public_html///...includes/themes.php on line 512

Asked by cadacosa

Installation went smooth! Very Nice.

After I setup a test account and logged and right below the "Stats" section I get this error message,

"Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given in /home/controlm/public_html/.../includes/themes.php on line 512"

What can I do to fix this error?

Question information

Language:
English Edit question
Status:
Answered
For:
Jisko Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Andivista (andi19642004) said :
#1

Hello,

I had the same problem... i don`t know what it is. I disabled "Error messages" for PHP 5 over my admin panel for PHP Settings, then it works.

Now i test it when i put @ before mysql_num_rows at Line 512 ( http://php.net/manual/de/function.mysql-num-rows.php )

It works but I do not know yet, if everything works ...

function count_trending_tags()
{
 global $db;
 $query = $db->send("SELECT `tag`, COUNT(`id`) FROM tags_n WHERE (UNIX_TIMESTAMP() - `timestamp`) < 86400 GROUP BY `tag` ORDER BY COUNT(`id`) DESC LIMIT 5");
 return @mysql_num_rows($query);

Greetings from Berlin
Andi

Revision history for this message
Andivista (andi19642004) said :
#2

Now there is also an error when i call /jisko/tag

So I disabled the php error messages and wait for a solution from the developers.

Can you help with this problem?

Provide an answer of your own, or ask cadacosa for more information if necessary.

To post a message you must log in.