Cart Error after WB Upgrade

daydreamer


Gast

i think, the same problem like the most ohters in the last days

change
$order_id = mysql_insert_id();
to
$order_id = $database->getLastInsertId();

it's possible, that you found more errors on other placed in this or other modules

daydreamer

I have upgraded WB to 2.8.3 sp3 and when item is added to cart or view checkout get this error

Warning: mysql_insert_id(): Access denied for user 'user'@'localhost' (using password: NO) in /home/site/public_html/modules/bakery/view.php on line 187

Warning: mysql_insert_id(): A link to the server could not be established in /home/site/public_html/modules/bakery/view.php on line 187


Line 187 in view.php is
$order_id = mysql_insert_id();

Anyone else have this issue?