Enable Error Reporting in OpenCart

Last modified: August 6, 2020
You are here:
Estimated reading time: 2 min

Error reporting is important. Not only for eCommerce sites but almost all the websites that make the internet. Error reporting is not required only if you have a static HTML website. But if you are using any kind of content management systems like WordPress or OpenCart, your website’s structure is more complex than you think. It is because these content management systems run on multiple services like PHP, MySQL, and Apache. So, what is the importance of error reporting in OpenCart?

Let’s say you or your developer or technical partner is updating the code of the website. Or let’s say he/she is installing a new extension and the site goes down due to some unknown reason. When the site goes down, there is always some issue with the code or version of the dependencies your new extension uses. If the error reporting is enabled, your OpenCart store will log errors in the error log file as well as show the issues on the screen. It will help a technical person understand and solve the issue/

If you do not know what I am speaking about, do not worry as it is aimed at technical users. In this tutorial, I am going to show you how to enable Error reporting on the OpenCart store so that a technical person-in-charge can get the idea of how to solve an issue. Let’s get started with the tutorial.

Enable Error Reporting in OpenCart

To enable error reporting, first log in to the admin panel of your OpenCart store. Then, click on the System -> Settings option from the left sidebar.

Enable Error reporting in OpenCart

Now, You will see a list of stores available under your current OpenCart installation. Once you are there, click on the Settings option corresponding to the store you want to update, just like the following image.

Enable error reporting in OpenCart

On this page, you can update the most important settings of your store. You can update General, Mail, Server, Store and many more options directly from this page. Right now, we want to enable Error reporting on the store. The option to enable it comes under the Server section, so click on the Server tab.

Server Settings in OpenCart

In the Server section, scroll down a bit to see the Error Handling section. In that section, you will see three options. The first one allows you to decide whether or not you want to display errors on the screen when something goes wrong. The second option allows you to decide whether or not you want to log those errors in a log file. And the third one allows you to enter the log file name. You can update as per your requirements.

Enable Error Reporting in OpenCart

To enable error reporting, Set Yes in Log Errors and enter the file name in which you want to log those errors. So, this is how you can enable Error logging in OpenCart. Let us know if you are facing any issues with this method, we are happy to help!

Was this article helpful?
Dislike 0
Views: 9