Troubleshooting PrestaShop 9.0.3 Back Office Error 500 on Local MAMP Setup

PrestaShop 9.0.3 Error 500 on Back Office Access with MAMP

A PrestaShop user, mfs83, reported encountering an Error 500 when trying to access the back office of their PrestaShop 9.0.3 installation. The installation was performed locally using MAMP on a Windows 11 machine. The user confirmed that the front office was accessible, but the back office consistently resulted in a 500 error after a long loading time.

Problem Description:

  • PrestaShop version: 9.0.3
  • Operating System: Windows 11
  • MAMP version: 5.0.6 (7029)
  • PHP version: 8.3.1
  • Error: HTTP Error 500 when accessing the back office URL after successful installation.
  • The front office is accessible and functioning.

Solution:

Prestashop Addict suggested enabling PrestaShop's debug mode to identify the underlying cause of the 500 error. The debug mode will display detailed error messages, which can help pinpoint the specific PHP errors, database issues, or other problems causing the back office to fail.

Steps to Enable Debug Mode (as per the linked tutorial):

  1. Navigate to the /config/defines.inc.php file in your PrestaShop installation directory.
  2. Locate the following line:
    define('_PS_MODE_DEV_', false);
  3. Change false to true:
    define('_PS_MODE_DEV_', true);
  4. Save the file.

Enabling debug mode will display detailed error messages on the back office page, providing valuable information for troubleshooting. Common causes for Error 500 in PrestaShop include:

  • Incorrect file permissions
  • PHP memory limit issues
  • Errors in custom modules or themes
  • Database connection problems
  • Incompatible PHP version

Once the error is identified, the user can take appropriate steps to resolve it, such as adjusting PHP settings, fixing code errors, or addressing database issues.

Note: Remember to disable debug mode after resolving the issue for security reasons. Set define('_PS_MODE_DEV_', false); again.

Start with the tools

Explore migration tools

See options, compare methods, and pick the path that fits your store.

Explore migration tools