Solving the problem of Empty log after moving and updating it
-
Thanks Gabriel for this great plugin!
I have moved 2 websites from my localhost (Wamp) to 2 different Linux hosts and both faced the same problem: the log files were empty although notifications worked perfectly. I used to see the following error on log page of the plugin (You need to enable the Debugging mode to see the errors [otherwise it will give no errors] by changing false to true in your wp-config.php file in the following line:
define( ‘WP_DEBUG’, true );)SELECT SQL_CALC_FOUND_ROWS * FROM wp_myCRED_log WHERE ctype = 'mycred_default' ORDER BY time DESC LIMIT 0, 10 WordPress database error: [Table 'mydb.wp_myCRED_log' doesn't exist] SELECT COUNT( * ) FROM rangi_myCRED_log WordPress database error: [Table 'mydb.wp_myCRED_log' doesn't exist] SELECT DISTINCT ref FROM wp_myCRED_log WHERE ref != '' AND ctype = 'mycred_default';
So I understood that the connection to the related table of database has an issue. It turns out to be the “cred” word in the name of the table; It was not capitalized !
I eventually solved it with the following easy query that needs to be run over your database (you can go to your Phpmyadmin, choose your db and choose the SQL tab and enter it and press GO):
RENAME TABLE wp_mycred_log TO wp_myCRED_log;
- The topic ‘Solving the problem of Empty log after moving and updating it’ is closed to new replies.