PHP · environment mismatch
The site stopped working after a PHP change: how to find incompatible code or a missing library.
A new PHP version changes the behaviour of the language, extensions and configuration. The site, admin panel, cron and CLI commands may use different runtimes and show different symptoms.
Next step
Give the version before and after the change, the message, the host and whether the error affects the site, the admin panel, crons or the CLI.
01
What this symptom really means
A version change can break the parser, a call to a removed function, a binary library, a database driver, a CMS extension or the configuration. No error in the browser doesn’t mean cron and the CLI work.
02
A safe first step
Record the full PHP version for web and CLI, the list of extensions and the message. If a reversible rollback is possible, don’t do it before securing the logs and new data.
03
The most common layers of the cause
Possible causes include removed functions, stricter typing, incompatible Composer libraries, a missing extension, a different php.ini, changed limits, an incompatible driver, opcache or a separate runtime for tasks.
04
What data to keep before making changes
You need the runtime versions, extensions, php.ini, logs, the dependency lockfile, the list of modules and the theme, the latest deployment and information about which paths and tasks still work.
05
What a responsible diagnosis looks like
You compare the environments, reproduce a specific request or command and identify the first incompatibility. The fix is tested together with forms, tasks and integrations.
06
What not to do blind
Don’t switch versions back and forth in production, and don’t install random extensions without a dependency list. Don’t hide all errors if that means losing your only diagnostic source.
07
When you need technical help
Help is needed when the host forces a new version, the system is old, there’s no staging, the code is custom or different components require conflicting PHP versions.
Related materials and sources
Is the new PHP blocking the whole site or just certain tasks?
We’ll compare runtimes, extensions, logs and code, and prepare a fix, a staged upgrade or a safe rollback.
Only 3 required fields · reply within 1 business day · no obligation
