Jump to content

Customer without address: FATAL ERROR


CCORP

Recommended Posts

Hello there,

I need some help please, if a customer registers and he doesn't add an address manually when he tries to add something to the cart and then navigate on other page the web crashes. It shows a blank page with Fatal Error and nothing can be done.

After a lot of testing i find the error occurs if there's no address in his account. If i add it manually in the back end everything goes to normal.

How can i solve this? I'm in prestashop 1.7.8.7

(I attach images of the errors that appear when I have the debug mode activated).

 

 

 

 

 

Captura de pantalla 2023-03-09 194257.jpg

Captura de pantalla 2023-03-09 194403.jpg

Captura de pantalla 2023-03-09 193750.jpg

Captura de pantalla 2023-03-09 193817.jpg

Captura de pantalla 2023-03-09 193920.jpg

Edited by CCORP
Rearrange images (see edit history)
Link to comment
Share on other sites

  • 1 year later...

Hi! I'm in the same situation, but for me "Prestashop Maximum product quantity" module was the reason.

It's true, disable this module fixes the error, the big exception; but in this way the purpose for which the module was intended is also lost.
In my case, MQC module was was in charge of the check, server-side, of purchasable maximum quantity of certain products.
So, enabling it, the exception is generated in the moment when user addes a product and MQC check is triggered.
Just like for @CCORP, also for me the problem is created by hookCartActionSave() called by module (a2hosting for him, mqc for me), only when logged customer is without address.

Have you discovered any solution for this?
Thanks for all :)

greetings,
Daniel

Screenshot 2024-05-15 alle 11.36.23.png

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...