WebsiteBaker Logo
  • *
  • Templates
  • Help
  • Add-ons
  • Download
  • Home
*
Welcome, Guest. Please login or register.

Login with username, password and session length
 

News


WebsiteBaker 2.13.9 R24 is now available!


R.I.P Dietmar (luisehahne) and thank you for all your valuable work for WB
https://forum.websitebaker.org/index.php/topic,32355.0.html


* Support WebsiteBaker

Your donations will help to:

  • Pay for our dedicated server
  • Pay for domain registration
  • and much more!

You can donate by clicking on the button below.


  • Home
  • Help
  • Search
  • Login
  • Register

  • WebsiteBaker Community Forum »
  • WebsiteBaker Support (2.8.x) »
  • Bakery Shop »
  • Cart Error after WB Upgrade
  • Print
Pages: [1]   Go Down

Author Topic: Cart Error after WB Upgrade  (Read 22467 times)

daydreamer

  • Guest
Cart Error after WB Upgrade
« on: August 29, 2014, 04:21:45 PM »
I have upgraded WB to 2.8.3 sp3 and when item is added to cart or view checkout get this error

Code: [Select]
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
Code: [Select]
$order_id = mysql_insert_id();
Anyone else have this issue?
Logged

Offline jacobi22

  • Betatester
  • **
  • Posts: 5921
Re: Cart Error after WB Upgrade
« Reply #1 on: August 29, 2014, 08:00:39 PM »
i think, the same problem like the most ohters in the last days

change
Code: [Select]
$order_id = mysql_insert_id(); to
Code: [Select]
$order_id = $database->getLastInsertId();
it's possible, that you found more errors on other placed in this or other modules
Logged

daydreamer

  • Guest
Re: Cart Error after WB Upgrade
« Reply #2 on: August 29, 2014, 08:07:54 PM »
Thanks that's fixed the issue  :-D
Logged

  • Print
Pages: [1]   Go Up
  • WebsiteBaker Community Forum »
  • WebsiteBaker Support (2.8.x) »
  • Bakery Shop »
  • Cart Error after WB Upgrade
 

  • SMF 2.0.19 | SMF © 2017, Simple Machines
  • XHTML
  • RSS
  • WAP2