How to enable the OpenCart 2 Error Reporting to debug common problems and code issues

If you experience any technical difficulties with your OpenCart 2 store it might be a good idea to enable the OpenCart 2 error reporting. These options will help you debug the issue by providing you with additional information on what exactly went wrong with your script.

OpenCart 2 supports two different options for error reporting. On the one hand, you may enable the general error reporting which will display the errors directly into your browser or you can activate the error logging which will write all errors into a file located in your OpenCart installation directory.

The inconvenience of the first method is that all of your visitors will be able to see the errors displayed on your website but see the errors directly via your browser may help you narrow down the problem.

To activate the error reporting, please login your OpenCart 2 Admin dashboard and navigate to the Settings menu.
From the Store list click on the edit icon next to your store name and proceed to the Server settings tab.
Scroll to the bottom of the page and locate the Error reporting options.
systeme>parametres->server->