Jump to content

Fatal Error When Viewing Customer Cart


Recommended Posts

I recently updated to PrestaShop 1.2.5 on a shop in production. Seemed to go fine.

I only had 1 admin account that was created at install. I decided to add a Manager profile for my client to use. I did this and added an 'employee' and assigned it to the Manager profile.

Suddenly, I have not only a new employee, but also a new customer w/ the same name/email as the new employee.

I get the following error when going to Customers in the BO:

Fatal error: Call to a member function nbProducts() on a non-object in /home/xxx/public_html/shop/classes/uspsRate.php on line 67





This error also appears when viewing the BO>Customers>Carts page. A previous test customer's cart shows up, but the other customer (created by a bug in PS when created the new employee?) gives the above error.

I believe this issue was caused by a fluke of some kind in PrestaShop when I created the new employee. Because it's not really supposed to be customer, there was no cart; thus no products added to the cart. This is why the error shows up (if I'm understanding the error correctly).

I have added another employee and no more new customers showing up, so I think it was just a fluke.

Now, how do I fix this error. It's preventing and new carts from displaying.

I went into phpMyAdmin and tried deleting out the customer. It no longer shows the customer in the Customers page and there's no Fatal error message. However, I still get the error in the Customers>Carts page.

Any suggestions?

14736_6r7WYi4iAZlXB6jWrBIo_t

Link to comment
Share on other sites

  • 3 years later...
×
×
  • Create New...