WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Database errors on website after upgrading to WP 3.5 (6 posts)

  1. kubegusa
    Member
    Posted 1 year ago #

    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
    http://www.route32.be/r32v2nl/

    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.

  2. esmi
    Forum Moderator
    Posted 1 year ago #

  3. kubegusa
    Member
    Posted 1 year ago #

    Thanks for getting me started! Really appreciate it.

    I found this to be the solution for my issue:
    http://www.alexbr.com/wblog/?p=94

    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

    @ini_set('log_errors','On');
    @ini_set('display_errors','Off');
  4. esmi
    Forum Moderator
    Posted 1 year ago #

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

  5. kubegusa
    Member
    Posted 1 year ago #

    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..?

  6. esmi
    Forum Moderator
    Posted 1 year ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic