2.14.3.23. Logging errors in OpenCart

  1. Open the site admin panel.
  2. Go to "System → Settings":
  3. To the right of the store name, click "Edit":
  4. Switch to the "Server" tab:
  5. At the bottom of the page, find the "Errors" section and set the desired parameters:
    • "Show errors" — display errors on the site pages.
    • "Log errors" — logging errors to a log file.
    • "Error log file" — the name of the file in which errors will be logged.

There are several ways to view the log.

  1. Open the site admin panel.
  2. Go to "System → Maintenance → Error log":
  3. A page with the error log will open.
  1. Download the file located at path like /storage/logs/error.log from site root directory.
  2. Open the downloaded file in any text editor.
Content

    (2)