WebsiteBaker Support (2.8.x) > Bakery Shop
Cart Error after WB Upgrade
(1/1)
daydreamer:
I have upgraded WB to 2.8.3 sp3 and when item is added to cart or view checkout get this error
--- Code: ---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
--- End code ---
Line 187 in view.php is
--- Code: ---$order_id = mysql_insert_id();
--- End code ---
Anyone else have this issue?
jacobi22:
i think, the same problem like the most ohters in the last days
change
--- Code: ---$order_id = mysql_insert_id();
--- End code ---
to
--- Code: ---$order_id = $database->getLastInsertId();
--- End code ---
it's possible, that you found more errors on other placed in this or other modules
daydreamer:
Thanks that's fixed the issue :-D
Navigation
[0] Message Index
Go to full version