Quick fix for myJournal Hypereal bugs on Wordpress 2.3

If you have upgraded recently to Wordpress 2.3, you’ll notice the following error message appearing either under your sidebars or at the bottom of your blog :


WordPress database error: [Table 'edrop.wp_categories' doesn't exist]
SELECT COUNT(*) FROM wp_categories

This is caused for the simple reason that some codes have been deprecated in the new Wordpress 2.3 which causes the above error. It’s really easy to fix this problem, just proceed as follows:

  • Using your favourite FTP program(FileZilla is a good one), navigate to wp-content/themes/myjournal hypereal theme folder and open the footer.php using your favourite text editor.
  • At the top part, find the following code and delete it:
    $numcats = $wpdb->get_var("SELECT COUNT(*) FROM $wpdb->categories");
    if (0 < $numcats) $numcats = number_format($numcats);

    Then somewhere at the bottom of the same file, footer.php, find this part :

    extending over <?php echo $numcats; ?> categories and delete it altogether.

That should do it. Hope this helps fixing things quickly.

22 Responses so far