Support » How-To and Troubleshooting » [Resolved] Database errors on website after upgrading to WP 3.5

[Resolved] Database errors on website after upgrading to WP 3.5

  • Hi

    I upgraded to WP3.5 and got this error message that I can’t figure out so far. This error message appears ON my website, so quite frustrating for the credibility of my business…

    “Warning: Missing argument 2 for wpdb::prepare(), called in /home/route32/public_html/wp-content/plugins/worker/core.class.php on line 221 and defined in /home/route32/public_html/wp-includes/wp-db.php on line 990”

    Here you can see the message on top of the page

    When I go to the lines mentioned in the files, I don’t really understand what the problem is.
    In core.class.php line 221 says: ‘add_link’ => ‘mmb_add_link’,
    In wp-db.php line 990 says: function prepare( $query, $args ) {

    I wonder if I’m looking on the wrong lines – I’m using Notepad+ as an editor, and it arranges all code nicely, but i’m not sure if the line numbers in that editor are the same numbers that the error message refers to.

    Any help would be much appreciated. Thanks.

Viewing 5 replies - 1 through 5 (of 5 total)
  • esmi


    Forum Moderator

    Thanks for getting me started! Really appreciate it.

    I found this to be the solution for my issue:

    My site seems to function fine, and I chose to hide the php errors by editing the wp-config.php file
    I added this code and the error is now hidden




    Forum Moderator

    The problem should be resolved for good when the relevant plugin or theme is updated.

    Yes that’s what I understood from the article. Do you think the only way to find which theme or plugin is causing the error, is by trial and error, by disabling the items one by one..?



    Forum Moderator

    Deactivate all plugins and then re-activate them one at a time – checking the site after each re-activation. If the problem goes away and then returns, this should give you a good idea of which plugin is responsible. If the problem doesn’t go away, try switching to the Twenty Twelve theme to see if that makes any difference.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘[Resolved] Database errors on website after upgrading to WP 3.5’ is closed to new replies.