• Hi –

    I was getting the following warning on my site:

    Warning: Missing argument 2 for wpdb::prepare(), called in /home/columbin/public_html/wp-content/themes/revelation-theme/lib/theme-sidebars.php on line 51 and defined in /home/columbin/public_html/wp-includes/wp-db.php on line 992

    Line 51 is:
    $widgetized_pages = $wpdb->get_col( $wpdb->prepare(“SELECT DISTINCT meta_value FROM $wpdb->postmeta WHERE meta_key = ‘celta_sidebar'” ) );

    From a previous forum reply, I changed Line 51 to:
    $widgetized_pages = $wpdb->get_col(“SELECT DISTINCT meta_value FROM $wpdb->postmeta WHERE meta_key = ‘celta_sidebar'” );

    The error message no longer appears on the site, however my admin login page is completely blank, ie I can’t log in…

    Can you help? Thank you!

Viewing 1 replies (of 1 total)
  • You’ll need to deactivate that theme using FTP (or other file manager your host uses) – find it here:

    wp-content
        themes
            revelation-theme - RENAME THIS FOLDER

    Then contact the developers of the theme for help with it.

Viewing 1 replies (of 1 total)

The topic ‘Missing argument 2 for wpdb::prepare()’ is closed to new replies.