PrestaShop and PHP compatibility
PrestaShop not working after a PHP change: what to check step by step.
A PHP change affects the whole runtime environment, not just the number shown in the hosting panel. The store may stop working because of an incompatible core, module, template, override, a missing extension or a different PHP version used by the site and by cron jobs.
Next step
Don’t make a series of changes without recording them. Collect the version before and after the change, the exact time, the PHP log and the list of active extensions.
01
Confirm which PHP serves the store
The hosting panel, web server, terminal and cron may use different PHP versions and different configuration files. Check the environment actually handling the web request and the automated tasks. Without that, a correct change in one place won’t fix the other processes.
02
Start with the first error in the log
Record the time of the failure and read the first critical error from the PHP or server log. A message about an unavailable function, class, type or extension usually points to the layer of the problem faster than a white screen or a 500 code alone.
03
Check extensions and PHP settings
The new version may run with a different set of extensions, limits, session configuration and OPcache. Compare the settings with the previous environment, but don’t copy the whole configuration file between PHP versions without assessing it.
04
Verify the core, modules and template
Core compatibility doesn’t mean compatibility for the whole store. An old module or template may call a removed function, and an override may change a class’s behaviour. Make a list of components and check them one at a time on a copy of the store.
05
Clear the cache in a controlled way
After the environment change, old cache files or OPcache contents may refer to the previous code. Clear only the relevant layers, keeping a backup and the order of actions. Deleting everything repeatedly won’t replace finding the cause.
06
A rollback should restore a known state
Going back to the previous PHP version is a sensible emergency measure if that version was supported and the store worked correctly. It shouldn’t close the matter, though: you need to find the incompatible element and plan an update before the host withdraws the old environment.
07
Prepare a proper update
On a copy, recreate the store, set the target PHP version, update or replace incompatible elements and run sales tests. Plan the production change only after the catalogue, cart, payments, orders, emails, admin panel and integrations have been accepted.
Related materials and sources
Store stopped working after a PHP change?
Give the PrestaShop version, the previous and current PHP versions, the host, the symptoms and the attempts already made. This lets us separate a quick restoration of service from a lasting update.
Only 3 required fields · reply within 1 business day · no obligation
