WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] missing argument (7 posts)

  1. blogbyb
    Member
    Posted 1 year ago #

    Warning: Missing argument 2 for wpdb::prepare(), called in /home/content/86/9117486/html/wp-content/themes/curation_traffic/functions.php on line 647 and defined in /home/content/86/9117486/html/wp-includes/wp-db.php on line 990

    Warning: Missing argument 2 for wpdb::prepare(), called in /home/content/86/9117486/html/wp-content/themes/curation_traffic/functions.php on line 647 and defined in /home/content/86/9117486/html/wp-includes/wp-db.php on line 990

  2. Hi blogbyb,

    You'll need to get in touch with your theme author and refer them to this changeset: https://core.trac.wordpress.org/changeset/22429

    For now, you can just disable error reporting & display by opening your wp-config.php file and adding this:

    ini_set( 'display_errors', false );
    error_reporting( 0 );

    Moving to How-To and Troubleshooting.

  3. scottscanlon
    Member
    Posted 1 year ago #

    blogbyb (and anyone else visiting),

    Sorry for the errors.

    We have a fix on it's way, just entered testing and should have it out by tonight.

  4. Andrew Nacin
    Lead Developer
    Posted 1 year ago #

    More information for developers: https://make.wordpress.org/core/2012/12/12/php-warning-missing-argument-2-for-wpdb-prepare/.

    Users: Note that your site is fine.

  5. DinoCSP
    Member
    Posted 1 year ago #

    I am getting this same exact error, but it has nothing to do with theme, it happens no matter what on the wp backend when I try to update a post/page.

    Help!!!

  6. @DinoCSP: read the link; the error can occur with a theme or plugin. Deactivate all plugins.

  7. DinoCSP
    Member
    Posted 1 year ago #

    As I've said, it has nothing to do with theme, and also plugin - deactivated all and used the twentytwele theme. It sucks, but I'll get around it somehow, fortunately it a backend problem so users do not suffer from it.

Topic Closed

This topic has been closed to new replies.

About this Topic