Jump to content

Resolved! Bug with voucher and logged in PS 1.6.0.9


kine

Recommended Posts

Hi, 

 

It happens oddly in prestashop 1.6.0.9 and I have no idea how to fix it: 

 

- When I generate a discount coupon from the BO, if I am logged in as a customer, don´t let me add the product to the basket, it gets caught thinking, and if I click on any page, the FO goes blank. 

This problem is solved if I delete the coupon discount from the BO, the store is working again normally. 

 

But if I generate coupon discount but I'm not logged in as a customer, the store works fine .... 

 

What might cause this incompatibility between the discount coupons and being logged in as a customer? Where may be the fault? 

 

Thank you very much in advance.

Edited by kine (see edit history)
Link to comment
Share on other sites

'whenever' your get blank page or 500 error, you need to get real error which is hidden naturally by php/hosting config.

 

use this to run on errors, reproduce issue and search for solution

 

http://www.prestashop.com/forums/topic/224525-how-to-turn-on-error-reporting-for-debug-information/

 

Dear El Patron,

 

Thank you for your answer.

 

This is the error:

Warning: trim() expects parameter 1 to be string, array given in /var/www/vhosts/website.com/httpdocs/classes/Tools.php on line 1141

 

Any help?

 

Thank you very much!

Edited by kine (see edit history)
Link to comment
Share on other sites

I don't think that is an issue.

 

did you recreate this with errors enabled?: " When I generate a discount coupon from the BO, if I am logged in as a customer, don´t let me add the product to the basket, it gets caught thinking, and if I click on any page, the FO goes blank. "

Link to comment
Share on other sites

I don't think that is an issue.

 

did you recreate this with errors enabled?: " When I generate a discount coupon from the BO, if I am logged in as a customer, don´t let me add the product to the basket, it gets caught thinking, and if I click on any page, the FO goes blank. "

 

Mmmmm I think I did it well now.  This is the problem:

 

Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 72 bytes) in /var/www/vhosts/website.com/httpdocs/modules/avalaratax/backward_compatibility/backward.php on line 33

 

Any help? Thank you!

Link to comment
Share on other sites

Mmmmm I think I did it well now.  This is the problem:

 

Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 72 bytes) in /var/www/vhosts/website.com/httpdocs/modules/avalaratax/backward_compatibility/backward.php on line 33

 

Any help? Thank you!

 

 

Thank you!

I desactivated the module Avalara - AvaTax v3.5.2 - by PrestaShop.

 

And now the shop works well.

 

 

  • Like 1
Link to comment
Share on other sites

×
×
  • Create New...