Why Is My PrestaShop Site Showing a 500 Error?

Category: PrestaShop & eCommerce ยท Updated 2026-11-07

A PrestaShop 500 error means the server hit an internal problem while generating the page and stopped before returning normal output, rather than meaning something a visitor did wrong. The most common causes are a corrupted .htaccess file, a PHP memory limit that is too low, a module conflict, or an incompatible PHP version after an update. Checking PrestaShop's own logs and enabling debug mode usually reveals the exact cause within minutes.

What a 500 error means here

HTTP status 500 is a generic "internal server error," meaning PHP or the web server crashed or stopped while building the page, instead of returning a normal response. It is not caused by anything the visitor typed or clicked. PrestaShop, built on PHP and Smarty templates with many modules, can throw a 500 error from several different layers: the PHP engine itself, a module's code, the database connection, or even a misconfigured .htaccess file the web server reads before PHP even runs.

Common causes

CauseTypical trigger
Corrupted or outdated .htaccess fileHappens after a PrestaShop update or a manual edit
PHP memory limit too lowLarge catalogs, heavy modules, or image-heavy themes
Module conflict or a broken module updateInstalling or updating a theme or third-party module
PHP version mismatchHosting provider upgrades PHP, but an older PrestaShop or module does not support it
Incorrect file permissionsManual file transfers or a failed update leaving files unwritable
Full disk spaceLogs, cache, or backups filling the available storage

Finding the actual cause

PrestaShop hides detailed errors from visitors by default for security, so the first step is turning on debug mode to see the real message instead of a blank 500 page.

// In config/defines.inc.php, temporarily set:
define('_PS_MODE_DEV_', true);

// Then check the store's own logs:
// var/logs/ (PrestaShop 1.7 and later)
// or the web server's own error log, often:
// /var/log/apache2/error.log or similar, depending on the host

Turn debug mode back off once the cause is found, since it can expose file paths and other details that are better kept private on a live store.

Step-by-step fix checklist

  1. Enable debug mode and reload the page to see the actual PHP error message.
  2. Check the exact PHP version against PrestaShop's and each installed module's supported range; roll back if a recent upgrade coincides with the error.
  3. Rename or restore .htaccess to a known-good version, then regenerate it from Shop Parameters > SEO and URLs in the back office.
  4. Raise the PHP memory_limit value, commonly to 256M or higher, in PHP settings or .htaccess if the host allows it there.
  5. Disable recently installed or updated modules one at a time via FTP by renaming their folder in modules/, then reload the page after each one.
  6. Confirm free disk space and correct file and folder permissions, typically 755 for folders and 644 for files on shared hosting.

Frequently asked questions

What causes a 500 error in PrestaShop?

The most frequent causes are a corrupted .htaccess file, too low a PHP memory limit, a conflicting or broken module, or a PHP version that a module or PrestaShop version does not support. Full disk space and wrong file permissions are less common but possible causes too.

How do I see the real error behind a PrestaShop 500 page?

Set _PS_MODE_DEV_ to true in config/defines.inc.php, then reload the page to see the detailed PHP error instead of a blank 500 page. Also check var/logs/ and the server's own PHP error log.

Does a PrestaShop update always cause a 500 error afterward?

No, most updates complete without issue, but a 500 error right after an update usually points to a module that has not been updated for the new PrestaShop version, or a .htaccess file that an update failed to regenerate correctly.

Can a low PHP memory limit really cause a full 500 error?

Yes. When PHP runs out of allowed memory mid-script, it fails and typically returns a 500 error rather than a graceful warning, especially with large product catalogs or heavy theme templates.

Should I regenerate .htaccess from the PrestaShop back office?

Yes, if the file appears corrupted or missing custom rules. Go to Shop Parameters > SEO and URLs and save the settings again, which rewrites .htaccess using PrestaShop's expected rules.

Is a PrestaShop 500 error something my hosting provider can fix?

A hosting provider can usually confirm PHP version, memory limit, disk space, and server-level error logs, which narrows down the cause, but fixing a module conflict or a corrupted .htaccess file is typically done inside PrestaShop itself.

Related topics