A 500 error in PrestaShop means PHP failed while building the page and the server has nothing to show. The blank screen or the “500 Internal Server Error” does not say why, but the cause is almost always written down in a log: PrestaShop’s own or your hosting’s PHP log. What you should not do is what almost everyone does: switch on debug mode with the shop open to every customer, delete modules blindly or restore a backup without knowing what happened.
Below you have where to look, how to read the message, how to see the error without showing it to your customers and which fix goes with each message.
How to tell what is happening to you
1. See how far the failure reaches. The whole shop going down is not the same as a single page:
| What you see | Where the problem usually is |
|---|---|
| The whole shop and the back office return 500 | The server: PHP version, database, .htaccess, permissions |
| The shop works, but one specific page returns 500 | A module or an override that only acts on that page |
| Only the back office fails, or one back office screen | An admin module, or not enough memory on that screen |
| It fails at payment or when confirming the order | The payment or the shipping module |
| It only fails when importing or regenerating something | Execution time or memory |
2. Think about what changed in the last 24 hours. A module installed or updated, a PrestaShop upgrade, a PHP version change made by the hosting, an edited file. If something changed, it is the first suspect.
Where to read the error
3. Read the log. There are two, and it is worth checking both:
- PrestaShop’s log, in the shop’s
var/logsfolder. Sort by date and open the most recent file. It collects errors from the part of PrestaShop that runs on Symfony, mainly the back office. - The hosting’s PHP log. In cPanel there is usually an
error_logfile in the folder where the script failed, and an Errors section underMetrics. Other panels have it underLogs. If you cannot find it, ask your hosting for “the PHP error log for my domain over the last few hours”.
Look for lines with PHP Fatal error or CRITICAL at the time of the failure. The line tells you three things: the message, the file and the line number.

The file path tells you who failed. If the file is inside /modules/name/, it is that module. When it is in /override/, it is an override. And if it is in /themes/, it is the theme. If it is in /classes/, /src/ or /vendor/, the failure shows up in the core, but the cause is usually somewhere else: the PHP version, memory or a module passing it data it does not expect.
Is this happening to you right now?
Leave us the URL and what you are seeing. A technician will look at it today and tell you what it is before touching anything.
Received. We reply within 24 working hours.
No log? See the error without showing it to your customers
The usual advice is to change _PS_MODE_DEV_ to true in config/defines.inc.php. It works, but it shows the error to every visitor: server paths, database queries and sometimes table names. And Google can crawl those pages in the meantime.
There is a better way. PrestaShop loads config/defines_custom.inc.php before defines.inc.php, if it exists (PrestaShop 8.2 config.inc.php). And defines.inc.php only defines _PS_MODE_DEV_ if nobody has defined it already (defines.inc.php). So you can switch debugging on for your connection only:
<?php
// config/defines_custom.inc.php
// Turns debug mode on for this IP only. Delete the file when you are done.
if (isset($_SERVER['REMOTE_ADDR']) && $_SERVER['REMOTE_ADDR'] === '203.0.113.25') {
define('_PS_MODE_DEV_', true);
}
Replace 203.0.113.25 with your public IP (search Google for “what is my IP”). Every other visitor keeps seeing the shop as usual, and you see the full error on screen. Two warnings:
- If the shop is behind Cloudflare or another proxy,
REMOTE_ADDRis the proxy’s IP, not yours, and the condition is never met. In that case use the log, or ask whoever runs the server to do it. - Delete the file as soon as you have the message. Do not leave it there “just in case”.

If the back office works, you can also switch debugging on in Advanced Parameters > Performance > Debug mode. That switch rewrites the line in defines.inc.php (DebugMode, PrestaShop 8.2): it turns it on for everyone.
Why it happens: the message and its cause

| The message says | What it means | What to do |
|---|---|---|
Allowed memory size of ... bytes exhausted |
PHP has run out of memory | Raise memory_limit. PrestaShop recommends 512M in production (PrestaShop optimizations) |
Maximum execution time of ... seconds exceeded |
The script took longer than allowed | If it is an import, raise max_execution_time (PrestaShop suggests 300). If it is a normal page, something is wrong: check which module appears in the path |
syntax error, unexpected ... or Call to undefined function ... right after a change on the hosting |
The PHP version is not compatible with your PrestaShop or with a module | Go back to the previous PHP version from the hosting panel and check compatibility before upgrading |
Class "..." not found or Attempted to load class |
The class cache is out of date, usually after installing or updating a module | Clear the cache (see below) |
SQLSTATE[HY000] [1045] Access denied |
Wrong database user or password | Check app/config/parameters.php. If you did not change them yourself, tell your hosting |
SQLSTATE[HY000] [2002] |
The database server is not responding | That is the hosting’s job |
failed to open stream: Permission denied in var/cache |
Folder permissions | Folders at 755 and files at 644, with the right owner |
Path in /modules/name/ |
That module | Disable it (see below) |
Path in /override/ |
An override, almost always from an old module | Disable overrides (see below) |
| Nothing in the PHP log, error in the web server log | .htaccess |
Check the last thing added outside the PrestaShop block |
If it started when the PHP version changed
For PHP version changes, which version each PrestaShop supports is in the PHP compatibility table (in Spanish).
How to fix it
Before touching anything, back up the files and the database. Even if the shop is down. If the fix goes wrong, you need to be able to go back to where you started, not to last week’s backup.
Clearing the cache without the back office
Delete the contents of var/cache/prod and var/cache/dev (the folders can stay, empty). PrestaShop rebuilds them on the next visit, which will take a few seconds longer than usual. It is the first thing to try with a Class not found and the last thing to do after any other fix.
Disabling a module that locks you out
If the back office works: Modules > Module Manager, find the module and click Disable. Not Uninstall.
If the back office does not load, rename its folder over FTP, from /modules/name/ to /modules/name-off/, and clear the cache. It is reversible: to undo it, give the folder its name back.
Disabling overrides
Advanced Parameters > Performance, in the debug block, the option to disable all overrides. When you save, PrestaShop deletes the class index (DebugModeConfiguration, PrestaShop 8.2). If the error goes away, the problem is in one of the files in /override/.
When everything is working
Delete defines_custom.inc.php, check that _PS_MODE_DEV_ is set to false in defines.inc.php and open the shop in a private window: homepage, a category, a product page and a cart up to the payment step.
What happens while the error lasts, and when it is fixed

A 500 is not just a lost sale. Google slows down crawling when a site returns server errors, in proportion to how many URLs fail, and URLs that keep returning an error eventually drop out of the index (HTTP and network errors, Google). Google does not give a timeline. When the server responds properly again, crawling picks back up gradually. That is why a 500 lasting an hour barely leaves a trace, while one lasting three days can cost you rankings for weeks.
What breaks if you get it wrong
- Leaving debug mode on for everyone. You expose paths and queries, and any minor notice turns into a broken page for the customer.
- Uninstalling instead of disabling. Uninstalling a module can delete its tables and its configuration. If it was the payment or the shipping module, you will miss it.
- Restoring an old backup without thinking. You lose the orders, customers and changes made since the backup. Restoring is the last option, not the first.
- Upgrading PrestaShop “to see if it fixes it”. If the failure is an incompatible module, the upgrade makes it worse.
- Changing the PHP version again without looking. If the hosting raised it and that broke the shop, lowering it fixes the symptom, but your shop still needs a supported PHP version.
- Deleting the
var/cachefolders instead of their contents. If PrestaShop cannot create them again because of permissions, you are still stuck with the 500. Empty their contents and leave the permissions alone.
If the 500 error appears right when you log into the admin panel and you cannot reach the back office, the other reasons people get locked out are in PrestaShop admin login not working.
When you cannot do this yourself
You can sort it out yourself if the log points to a specific module, the cache or memory, and you have access to the back office or FTP. You need help if you cannot find any log, if the error is in the core and nothing has changed, if it is the database, if the shop is multistore or if the failure comes and goes with no pattern. That is what we solve in our PrestaShop maintenance service (in Spanish), including when the underlying problem is the server.
Is this happening to you right now?
Leave us the URL and what you are seeing. A technician will look at it today and tell you what it is before touching anything.
Received. We reply within 24 working hours.
Frequently asked questions
What does a 500 error mean in PrestaShop?
That the server hit an error while building the page and cannot display it. The real cause is in the server’s error log, or you can see it by switching on PrestaShop’s debug mode.
How do I see the real error behind a 500 error?
By checking the PHP error log on your hosting or by switching on debug mode. So as not to show the error to customers, limit it to your IP address or put the shop in maintenance mode while you check.
Can I fix a 500 error without getting into the back office?
In many cases, yes: by clearing the cache from the files, disabling the module causing it or disabling overrides from the configuration. Always with a backup first.
Why does a 500 error appear after upgrading?
Usually because a module or the theme is not compatible with the new version of PrestaShop or PHP, or because an old cache was left behind. The error log usually points to the exact file.