OpenCart and PHP
OpenCart not working after a PHP change: what not to change blind in production.
A PHP change affects core, the template library, modules, ionCube, the database driver, crons and integrations. Comparing the runtime before and after the change, and the first error in the log, is the fastest route to the cause.
Next step
Record the old and new PHP versions, the time of the change, the scope of the outage and the first error. The hosting panel may change only the web runtime, while cron and the CLI still use a different one.
01
Confirm the actual runtime
Check the PHP used separately for the website, the admin panel, the terminal, cron and workers. A simple test file succeeding doesn’t confirm that the whole store and asynchronous processes use the same configuration.
02
Keep the first error
Read the PHP-FPM, web server and application logs matching the time of the failure. The first fatal error usually points to a missing function, an incompatible signature, an extension or a file loaded by a module.
03
Core and libraries
An older branch may use libraries that don’t support the new PHP. Don’t replace individual library files from a random source, as that creates a state that can’t be reproduced and is hard to update.
04
Journal, modules and ionCube
Extension code has its own requirements. Check the versions of Journal, modules and the ionCube loader, and the compatibility of encoded packages; a correct core doesn’t fix an incompatible add-on.
05
PHP extensions and the database
Compare active extensions, the database driver, limits, time zone, sessions and ini configuration. A missing mbstring, intl, curl, gd or the right driver may show up only in a specific process.
06
Crons and integrations
Imports, synchronisation, email and queues may still use the old binary or the new configuration without the required modules. Go through the processes separately from the home page.
07
A safe repair plan
Reproduce the state on a copy, confirm the smallest change and go through a full order. A temporary PHP rollback is justified only if it restores sales without breaking the host’s security requirements.
Related materials and sources
Has a PHP change stopped the store?
Give the PHP and OpenCart versions, the time of the change, the first error and information about Journal, ionCube and crons.
Only 3 required fields · reply within 1 business day · no obligation
