WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Upgrade to 3.5 (3 posts)

  1. kellydigital
    Member
    Posted 1 year ago #

    after upgrading to 3.5 my clients site no longer works - and I can't log into wp-admin either .

    I get the following error: Warning: Missing argument 2 for wpdb::prepare(),

    can anyone help?

    Thanks

  2. WPyogi
    Volunteer Moderator
    Posted 1 year ago #

    Fortunately, that's a known and fixable problem :). See the last post in this thread:

    http://wordpress.org/support/topic/troubleshooting-wordpress-35-master-list?replies=4

  3. kellydigital
    Member
    Posted 1 year ago #

    Thanks for pointing me in the right direction!

    i'm using the Revelation theme...and I also had to make the following changes to make it work again:

    For anyone receiving the wpdb::prepare() error, add this content to your wp-config.php file at the very bottom:
    ini_set( 'display_errors', false ); error_reporting( 0 );

    Then, replace line 51 in /lib/theme-sidebars.php with this:
    $widgetized_pages = $wpdb->get_col("SELECT DISTINCT meta_value FROM $wpdb->postmeta WHERE meta_key = 'jw_sidebar'");

    That fixed the error messages for me and allowed me to access both the website and the admin area.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.