• Resolved kash235

    (@kash235)


    Hello,
    I have upgraded WordPress 4.0 version and the site get following errors on both front and back end. I wont be able to login to admin panel.

    If you open site url http://mjnelsondds.com/ you will see errors on front and back end. Also all tabs and site URL’S are redirecting to 404 pages.

    Warning: Missing argument 2 for wpdb::prepare(), called in /home/content/69/8969869/html/wp-content/themes/switchblade-v1.3/framework/sidebars.php on line 79 and defined in /home/content/69/8969869/html/wp-includes/wp-db.php on line 1154

    Warning: Cannot modify header information – headers already sent by (output started at /home/content/69/8969869/html/wp-includes/wp-db.php:1154) in /home/content/69/8969869/html/wp-includes/pluggable.php on line 1173

    Please help to fix it. Your earliest help will be highly appreciated.
    Thanks.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The switchblade theme you are using appears to have some compatibility or potential security related issues. This article explains why you may be seeing the error: PHP Warning: Missing argument 2 for wpdb::prepare()

    Thread Starter kash235

    (@kash235)

    These are code.
    (sidebars.php line 79)
    /* Blog sidebar (both listing and detailed view) */
    register_sidebar(
    array(
    ‘id’ => ‘sidebar_blog’,
    ‘name’ => ‘Blog Widgets’,
    ‘description’ => __(‘Widgets inserted here will show up in the sidebar sections for the blog.’, $domain),
    ‘before_widget’ => ‘<div id=”%1$s” class=”widget %2$s”><div class=”widget-inner”>’,
    ‘after_widget’ => ‘</div></div><div class=”separator”></div>’,
    ‘before_title’ => ‘<h4 class=”widget-title”>’,
    ‘after_title’ => ‘</h4>’
    )
    );

    (wp-db.php line 1154)
    public function prepare( $query, $args ) {if ( is_null( $query ) )return;

    (pluggable.php line 1173)
    header(“Location: $location”, true, $status);

    Thread Starter kash235

    (@kash235)

    @claytonjames Thanks. I already tried this snippet in wp-config but it doesn’t work.
    @ini_set(‘display_errors’, 0);

    Any other help please.

    Did you get a chance to read all of the information I linked to for you? Please take another look at it, then have a look at these as well (link goes to Google): switchblade theme wordpress “Switchblade” is the theme you are currently using as a parent theme for the personalized child theme that displays on your site.

    If you need an update for the theme, you should refer to the support channels referred to where you purchased Switchblade. Commercial themes are not supported here in the forms.

    Thread Starter kash235

    (@kash235)

    @claytonjames thank you so much. I have resolved this issue.

    You’re welcome!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Missing argument 2 for wpdb::prepare(), Error’ is closed to new replies.