mysql_num_rows(): error in wp-optimize-admin.php
-
error message in Database Tables Report:
mysql_num_rows(): supplied argument is not a valid MySQL result resource in … /wp-content/plugins/wp-optimize/wp-optimize-admin.php on line 343
This seems to be a general problem appearing sometimes in MySQL when you have a dash in the the database name. I solved it by changing line 341 in that wp-optimize-admin.php to$local_query = 'SHOW TABLE STATUS FROM '. DB_NAME .';
(i.e. by adding “backticks” before and after DB_NAME. I hope they won’t convert here to markup.)
Viewing 8 replies - 1 through 8 (of 8 total)
Viewing 8 replies - 1 through 8 (of 8 total)
- The topic ‘mysql_num_rows(): error in wp-optimize-admin.php’ is closed to new replies.