• Hello friends, I have the following error

    “Warning: Missing argument 2 for wpdb :: prepare (), called in / home/a5450069/public_html/wp-content/themes/classipress/includes/theme-functions.php on line 415 and defined in / home/a5450069/public_html/wp-includes/wp-db.php on line 992 “

    Somebody help PLEASE

Viewing 8 replies - 1 through 8 (of 8 total)
  • Thread Starter danielrshiro

    (@danielrshiro)

    My ClassiPress is 3.1.4 and WordPress 3.6.1 ….

    Try switching to the default theme by renaming your current theme’s folder inside wp-content/themes and adding “-old” to the end of the folder name using FTP or whatever file management application your host provides.

    I’m sorry but as Classipress is a commercial theme, you need to seek support from the theme’s developer/vendor. We do not support commercial products here.

    Can you post the code that is here /includes/theme-functions.php on line 415?

    The theme probably needs updating.

    wpdb::prepare() requires a minimum of 2 arguments as of WordPress 3.5. wpdb::prepare() now uses parameterized queries, so a second argument is required (in pre-WordPress 3.5 wpdb:prepare() only required one argument).

    Thread Starter danielrshiro

    (@danielrshiro)

    Cara
    /includes / theme-functions.php on line 415
    there is
    $sql = $wpdb->prepare(“SELECT* FROM ID=%field_label,$field_label ID=%field_name ID=%field_type,$field_type FROM “. $wpdb->prefix . “cp_ad_fields”);

    Thread Starter danielrshiro

    (@danielrshiro)

    if need to update my ClassiPress?

    Try this $sql = “SELECT* FROM ID=%field_label,$field_label ID=%field_name ID=%field_type,$field_type FROM “. $wpdb->prefix . “cp_ad_fields”;

    Thread Starter danielrshiro

    (@danielrshiro)

    Bloke insert gave error on the page, then put

    $ sql = $ wpdb-> prepare (“SELECT * FROM ID =% FIELD_LABEL, $ field_name FIELD_LABEL ID =% ID% = field_type, $ field_type FROM”. $ wpdb-> prefix. “Cp_ad_fields”);

    and continued with the same error …

Viewing 8 replies - 1 through 8 (of 8 total)

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