Skip to content
FunnelGuard

Fix guide by FunnelsGuard

PHP upgrade breaking plugins and forms: how to find and fix it

OPS-078High impactDetectedBy FunnelGuardPublished Updated
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.

Where a PHP upgrade breaks the journey
  1. Ad clickVisitor lands on the page
  2. Page loadsLooks normal
  3. Form submitPlugin throws a fatal error
  4. Email to inboxNever sent
  5. Lead in CRMNever created

The landing page loads, but the form handler crashes on the new PHP version.

Leads before and after a silent breakExample numbers
Leads before and after a silent break (example)Week before upgrade: 40 leads per week; Week after upgrade: 3 leads per week01531403Week before upgradeWeek after upgradeleads per week

Example: illustrative numbers for a site whose form breaks after a PHP upgrade.

How to check if your site has it

Check for PHP upgrade damage
  1. 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.

  2. 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.

  3. 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.

  4. 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.

  5. Check the browser console and network tab

    A form that returns a 500 error on submit points to a server-side crash.

wp-config.php: log errors without showing themphp
define( 'WP_DEBUG', true );
define( 'WP_DEBUG_LOG', true );
define( 'WP_DEBUG_DISPLAY', false );

How to fix it

Fix a PHP upgrade that broke plugins or forms
  1. 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.

  2. Identify the culprit

    Use the error log to find the plugin, theme or script named in the fatal error.

  3. 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.

  4. Test on a staging copy

    Clone the site to staging, set the newer PHP version there and repeat your form and checkout tests.

  5. Upgrade the live site again

    Once staging passes, switch live PHP to the new version and test every journey straight away.

Where to change PHP and fix the code
  1. Change PHP version

    Use your host's panel (cPanel 'MultiPHP Manager' or 'Select PHP Version', or the host's own dashboard).

  2. 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.

  3. Update or replace

    Update from Plugins > Installed Plugins, or replace the plugin if it has not been updated in years.

Scan code for PHP 8 compatibilitybash
composer require --dev squizlabs/php_codesniffer phpcompatibility/php-compatibility
vendor/bin/phpcs -p --standard=PHPCompatibility --runtime-set testVersion 8.2- ./wp-content/plugins/your-plugin
Before and after a careful upgrade

Upgrade 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

After the fix
  • 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

Safer upgrade habits
  • 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
How a forced upgrade goes unnoticed
  1. Day 0

    Host moves the site to a newer PHP version.

  2. Day 0

    The form plugin starts failing on submit. Pages still load.

  3. Day 1-5

    Ads keep sending visitors. No leads arrive and nobody sees an alert.

  4. 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.

Does FunnelGuard catch this?

Detected

FunnelGuard checks for this today.

How: Journey breaks.

Stop finding out from your customers

FunnelGuard runs your real forms and checkouts on a schedule, checks the tracking and the leads behind them, and alerts you once, with a screenshot. Try any paid plan free for 3 days.