WordPress.org

Support

Support » How-To and Troubleshooting » Missing argument 2 for wpdb::prepare()

Missing argument 2 for wpdb::prepare()

  • Hi,

    Anyone can help me. my error

    Warning: Missing argument 2 for wpdb::prepare(), called in /home/ilike4js/public_html/kainsutera/wp-content/plugins/facebook-ecommerce-shop/lib/scripts/facebook/saveuser.php on line 44 and defined in /home/ilike4js/public_html/kainsutera/wp-includes/wp-db.php on line 990

    My file (saveuser.php)

    line 44 :
    $user = self::$db->get_row(self::$db->prepare( “SELECT * FROM ” . ( self::$db->posts ) .” WHERE 1=1 and post_title='” . ($fbk_user) . “‘ and post_type=’aashopcustomer’ limit 0, 1”));

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