WordPress.org

Forums

Missing argument 2 for wpdb::prepare() (3 posts)

  1. imfazly.my
    Member
    Posted 2 years ago #

    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"));

  2. Looks like the facebook-ecommerce-shop plugin has a common issue with 3.5.

    Your site is fine, but you may wish to turn off PHP's display errors setting. Contact your theme or plugin dev and point them to http://make.wordpress.org/core/2012/12/12/php-warning-missing-argument-2-for-wpdb-prepare/ so they can fix the underlying issue.

  3. imfazly.my
    Member
    Posted 2 years ago #

    tq songdogtech

    i will tell my plugin.

Topic Closed

This topic has been closed to new replies.

About this Topic