PHP Notice: Object of class WP_Error could not be converted to int in /var/www/vhosts/hayhauler.co/httpdocs/wp-includes/functions.php on line 2568, referer: http://hayhauler.co/
I'm not even sure where to start with this or the right question to ask. I know that it is preventing me from posting some information into a database using this:
$wpdb->query($wpdb->prepare( " INSERT INTO $wpdb->quotes (user_ID,origin,destination,broker_ID,quote_ID,estimatedship) VALUES (%d,%s,%s,%d,%s,%s) ", $user_id, $origin, $destination, $brokerID, $brokerID.'-'.genRandomString(), $estimatedship ));
And this error follows it:
mysql_real_escape_string() expects parameter 1 to be string, object given in /var/www/vhosts/hayhauler.co/httpdocs/wp-includes/wp-db.php on line 789, referer: http://hayhauler.co/
Any help or direction would be greatly appreciated.