Jump to content

Debug mode breaks invoice and delivery slip after order


Dani1989

Recommended Posts

Hello,

I've got a weird problem. When a customer makes an order and successfully pays, that order gets the status Payment Received. This status is set to generate both invoice and delivery slip.

When debug mode is enabled, this the invoice and delivery slip are NOT generated. If I switch the order to another status, then they get generated and I can open them without an issue.

This only happens when debug mode is enabled. 

When production mode is enabled, then everything works good.

 

Any ideas what might be causing this problem or what the solution could be?

Thanks!

Link to comment
Share on other sites

Hi, thank you for taking time to help me out. 

I am upgrading the site for a client and installing a new theme hence why debug mode is enabled on a backup of the live site.

I don't have any modules installed that modify the Invoice or DS process. Are you saying that the output from the Debug Mode can break
even the original methods of PrestaShop?

 

 

Link to comment
Share on other sites

Debug mode in 1.7 is devil. It can break even perfectly working page because of unimportant PHP Notice.

If you want to play with it, try to set different $errorReportingLevel default value:

public static function enable($errorReportingLevel = E_ERROR, $displayErrors = true)

in the /vendor/symfony/symfony/src/Symfony/Component/Debug/Debug.php file.

  • Like 1
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...