Your PrestaShop store shows a completely blank page, with no message and no logo, right after an update, a module install or a PHP version change. That empty page almost always hides a PHP error that PrestaShop does not display by default, and a few checks are enough to bring it to light and fix it.
Why the page is blank
In production, PrestaShop hides technical errors so customers never see them. When a fatal error stops the page from loading, the browser receives an empty page, or a 500 code depending on how the server is set up. A blank page and a 500 error therefore often share the same origin, and the way to solve them is the same.
Step 1, write down what changed just before
Before you touch a single file, note the last thing done on the store, whether it was a module installed or updated, a theme edited, a PrestaShop update or a new PHP version selected at your host. In most cases the cause lies in that last change, and undoing it is the fastest way out.
Step 2, reveal the hidden error
Connect with FTP or through your host's file manager, open /config/defines.inc.php and set the debug mode constant to true.
define('_PS_MODE_DEV_', true);
Reload the blank page. The error message that now appears names the file involved, and its path tells you whether the problem comes from a module, the theme or the PrestaShop core. Our article on the PrestaShop 500 error explains how to read these messages and how to limit debug mode to your own IP address.
Step 3, check the PHP version
A PHP version change is one of the most common causes of a blank page. Each PrestaShop version works with a specific range of PHP versions, and PrestaShop 9 no longer accepts PHP 7, since it requires at least PHP 8.1 and supports up to PHP 8.4.
Modules are often the real problem. A module written for PHP 7.4 can cause a fatal error on PHP 8.1 or 8.2, even when PrestaShop itself is compatible. If the blank page appeared right after the PHP change, switch back to the previous version in your host's control panel for now, then find the incompatible module before switching again.
The official PrestaShop help center advises checking that your theme and modules support the new PHP version before you enable it, and testing on a copy of the store whenever you can.
Step 4, check available memory
If the message mentions Allowed memory size exhausted, the script ran out of memory. PrestaShop recommends allowing at least 256 MB per script with the memory_limit setting. Most hosts let you change this value in their control panel, and their support can do it for you if you cannot.
Step 5, clear the cache
After a PrestaShop or module update, the cache may still hold files compiled for the previous version. Delete the contents of the /var/cache/prod/ and /var/cache/dev/ folders, and PrestaShop will rebuild them on the next page load. If you can reach the back office, the clear cache button in Advanced Parameters > Performance does the same job.
Step 6, put the store back in normal mode
When the store displays again, set _PS_MODE_DEV_ back to false. Debug mode slows pages down and can expose technical details, so it should only stay on while you diagnose the problem.
Frequently asked questions
Only the back office is blank and the store works. Is it the same problem?
The method is the same. Turn on debug mode through defines.inc.php, reload the admin page and read the message. A module that hooks into back office pages is often the cause.
Debug mode still shows nothing. What now?
Check the store's /var/logs/prod.log file and the PHP error log provided by your host. If both are empty, the error happens before PrestaShop even starts, for example in the server configuration, and your host's support becomes the right contact.
Should I restore a backup?
Restoring works, but it wipes out everything done since the backup, orders included. Keep it as a last resort, after you have tried undoing the most recent change.
Is your store still blank after these checks? Send us a description of the problem and, if possible, the message you got in debug mode. The diagnosis is free and you know the estimated time and price before you decide anything.
Comments
Be the first to comment on this article.