On this page
What this issue is
PHP is the language many websites run on, including WordPress, WooCommerce and most custom form handlers. Your host lets you choose the PHP version. Newer versions (for example 8.x) remove old functions, turn some warnings into fatal errors and change how types are handled.
Plugins, themes and custom scripts written years ago may depend on the old behaviour. After the upgrade, they can throw a fatal error, show a white screen, or fail quietly. Often only one part breaks, such as a form submit, a payment step or a tracking snippet, while the rest of the site looks fine.
Why it costs you leads or sales
The pages still load, so you may not notice. But the form that sends leads, the add-to-cart call or the checkout can fail on submit. Visitors click, see an error or nothing happens, and leave. Meanwhile your ad spend keeps sending traffic to a journey that cannot complete.
- Ad clickVisitor lands on the page
- Page loadsLooks normal
- Form submitPlugin throws a fatal error
- Email to inboxNever sent
- Lead in CRMNever created
The landing page loads, but the form handler crashes on the new PHP version.
Example: illustrative numbers for a site whose form breaks after a PHP upgrade.
How to check if your site has it
Confirm your PHP version and when it changed
Look in your hosting panel (for example the PHP selector or PHP settings page). In WordPress, open Tools > Site Health > Info > Server to see the version.
Submit your own forms
Fill in every lead form, booking form and checkout test as a real visitor would. Check the confirmation message and that the email arrives.
Read the PHP error log
Find error_log in your hosting file manager or the logs section of the panel. Look for lines such as 'Fatal error', 'Uncaught Error' or 'Call to undefined function' with a plugin path.
Turn on safe loggingWordPress
On WordPress, set WP_DEBUG_LOG to true and WP_DEBUG_DISPLAY to false so errors go to wp-content/debug.log and are not shown to visitors.
Check the browser console and network tab
A form that returns a 500 error on submit points to a server-side crash.
define( 'WP_DEBUG', true );
define( 'WP_DEBUG_LOG', true );
define( 'WP_DEBUG_DISPLAY', false );How to fix it
Roll back to the previous PHP version
In your hosting panel, pick the last version that worked. This restores leads quickly while you fix the cause. If the old version is end of life, treat this as temporary only.
Identify the culprit
Use the error log to find the plugin, theme or script named in the fatal error.
Update or replace it
Update the plugin or theme to the latest version and check its page for supported PHP versions. If it is abandoned, replace it with a maintained alternative.
Test on a staging copy
Clone the site to staging, set the newer PHP version there and repeat your form and checkout tests.
Upgrade the live site again
Once staging passes, switch live PHP to the new version and test every journey straight away.
Change PHP version
Use your host's panel (cPanel 'MultiPHP Manager' or 'Select PHP Version', or the host's own dashboard).
Find the broken plugin
If the admin is locked out, rename the plugin folder in wp-content/plugins via FTP or file manager to disable it, then reload.
Update or replace
Update from Plugins > Installed Plugins, or replace the plugin if it has not been updated in years.
Run a compatibility scan
Use PHP_CodeSniffer with the PHPCompatibility ruleset against your code to list removed functions.
Fix flagged code
Replace removed functions and fix type errors such as passing null to string functions.
Test the handler
Post to the form handler and confirm it returns success and sends the email.
Nothing to change
Shopify does not run your own PHP, so this issue does not apply to the store itself. Check any self-hosted apps or form services you connect to it.
Nothing to change
Wix manages the server for you. Check only external self-hosted scripts you embed.
composer require --dev squizlabs/php_codesniffer phpcompatibility/php-compatibility
vendor/bin/phpcs -p --standard=PHPCompatibility --runtime-set testVersion 8.2- ./wp-content/plugins/your-pluginUpgrade without testing
- PHP changed on the live site
- Form plugin crashes on submit
- Leads lost for days before anyone notices
Staged upgrade
- Plugins updated and tested on staging first
- Live switch followed by journey tests
- Problems caught within minutes
How to confirm it's fixed
- Every lead form submits and shows the thank-you message
- The test email reaches the inbox and the CRM
- Add to cart and checkout reach the payment step
- Ad and analytics tracking hits still fire on the thank-you page
- The PHP error log shows no new fatal errors
- Site Health shows the expected PHP version
How to prevent it happening again
- Keep plugins and themes updated so they support current PHP
- Remove plugins you no longer use
- Test every PHP change on staging first
- Take a backup before changing the version
- Check your host's notices for forced upgrades and end-of-life dates
- Re-test forms and checkout right after any server change
Day 0
Host moves the site to a newer PHP version.
Day 0
The form plugin starts failing on submit. Pages still load.
Day 1-5
Ads keep sending visitors. No leads arrive and nobody sees an alert.
Day 6
Someone notices the quiet inbox, rolls back PHP and fixes the plugin.
How FunnelGuard handles this
FunnelGuard detects this today, through the effect rather than the PHP version itself. A robot visitor runs your real journeys on a schedule, such as a lead form or checkout. When an upgrade breaks a plugin, the journey fails at that step.
The failure is re-checked from a second region, then one alert goes out by email, Slack, Teams, WhatsApp, webhook or PagerDuty, with a screenshot and a likely cause. FunnelGuard also checks whether test leads reach the inbox and CRM. It does not read your PHP logs or tell you which plugin is at fault with certainty, so use the screenshot and your error log together. The Free plan covers 1 site and 2 journeys with daily checks and no card.
Questions people ask
Why did my contact form stop working after a PHP upgrade?
The form plugin or handler probably uses code that the new PHP version removed or treats as an error. The submit then crashes on the server. Check the PHP error log for a fatal error naming the plugin, then roll back or update it.
How do I roll back a PHP version?
Open your hosting panel and find the PHP version setting, such as MultiPHP Manager or Select PHP Version in cPanel. Choose the previous version and save. The change usually applies within seconds, then retest your forms.
Why is my WordPress site showing a critical error after a PHP update?
A plugin or theme is likely incompatible with the new PHP version. Check the email WordPress sends about the error, or the PHP error log. Rename the plugin's folder to disable it, or roll back PHP, then update or replace it.
How can I test a PHP upgrade safely?
Create a staging copy of your site, set the new PHP version there and run through every form, checkout and login. Check the error log too. Only change the live site once staging is clean, and take a backup first.
Is it safe to stay on an old PHP version?
Only briefly. Old versions stop receiving security fixes once they reach end of life. Use a rollback to restore leads, then fix or replace the incompatible plugin and move up as soon as you can.
How do I know which plugin broke after a PHP upgrade?
Read the PHP error log or the WordPress debug.log. Fatal errors include a file path such as wp-content/plugins/plugin-name, which names the culprit. You can also disable plugins one by one on staging.
Can a PHP upgrade break tracking as well as forms?
Yes. If a plugin that outputs your tracking code fails, the tags may stop loading on the thank-you page. Test the conversion tracking after any upgrade, not only the form itself.
Related issues
- OPS-077PHP version end of lifeFix guide
- OPS-073Memory / PHP memory_limit exhausted (white screen)Fix guide
- OPS-084Error display on (PHP warnings shown to visitors)Fix guide
- OPS-085Debug mode on in production (stack traces)Fix guide
- OPS-081Form handler mail() blocked by hostFix guide
- OPS-079Server software outdated (Apache/Nginx/IIS CVEs)Fix guide