Skip to main content

How to Enable Error logs - PrestaShop

This article explains how to enable debugging and error logs in PrestaShop. This applies to PrestaShop 1.6 / 1.7 / 8.x.

Updated over 3 weeks ago

⚠️ Always disable debug mode after troubleshooting is complete.

Prerequisites

  • Access to cPanel

  • Ensure PHP error logging is enabled in cPanel

Completion of the task: 10 minutes

Expertise: beginner

How to do?

  1. Open File Manager or connect via FTP

  2. Edit the file /config/defines.inc.php

  3. Change to true to activate:

    # Disabled 
    define('_PS_MODE_DEV_', false);

    # Enabled
    define('_PS_MODE_DEV_', true);
  4. Save the file.

View the Logs

Back Office > Advanced Parameters > Logs
Server PHP error log

Disable Debug Mode

Set back to false after troubleshooting.

# Disabled
define('_PS_MODE_DEV_', false);
Did this answer your question?