On this page
What this issue is
WordPress core is the software that runs your site. When it updates (a minor release such as 6.5.1 often installs automatically, a major release such as 6.6 usually needs a click), your theme and plugins must keep working with it. If the theme uses deprecated functions, overrides core templates, or bundles old scripts, the update can break it.
Why it costs you leads or sales
Updates, especially automatic ones, can happen overnight. A broken theme may hide the form, push the call to action off screen or throw a PHP error on key pages. Visitors from paid ads land on a broken page and leave, and you keep paying for the clicks.
Tracking can break too. If theme-injected scripts such as the GA4 or Meta pixel stop loading, your ad platforms stop receiving conversions and bidding gets worse, even after the visual problem is fixed.
02:00
WordPress installs a core update automatically.
02:01
The theme calls a function that no longer works and the lead form stops rendering.
09:00
Ad campaigns send visitors to the broken page. No one notices.
Day 3
Someone notices fewer enquiries and investigates.
Day 3
Theme is patched or core rolled back; leads return.
- Ad clickVisitor arrives on landing page
- Theme renders pageError or broken layout after core update
- Form or buttonHidden or not working
- Conversion tagNever fires
- Lead in inbox/CRMNothing arrives
The core update breaks the theme template, so every later step is lost.
How to check if your site has it
- Open Dashboard > Updates or Tools > Site Health > Info to see whether core updated recently.
- Load the home page, a landing page and a product or service page in a private window.
- Check the header, menu, footer and mobile layout.
- Submit your main lead form and confirm the email and CRM entry arrive.
- Open browser DevTools (F12) > Console and look for red JavaScript errors.
- Confirm your analytics and ad tags still fire (for example with Google Tag Assistant).
- Look at Tools > Site Health for critical issues and check the PHP error log or your host's log.
define( 'WP_DEBUG', true );
define( 'WP_DEBUG_LOG', true );
define( 'WP_DEBUG_DISPLAY', false );Errors are then written to wp-content/debug.log. Look for lines that name your theme folder under wp-content/themes/. Turn debugging off again when you are done.
How to fix it
Take a backup firstWordPress
Back up files and database with your host's tool or a backup plugin, even if the site is already broken.
Get the site back onlineWordPress
If you have a backup from before the update, restore it, ideally on staging first. If the admin is locked out by a critical error, use the recovery mode link WordPress emails to the admin address.
Switch to a default theme to confirm the causeWordPress
Under Appearance > Themes, activate a default theme such as Twenty Twenty-Four. If the errors go away, your theme is the cause. If you cannot reach the admin, rename the theme folder over SFTP so WordPress falls back.
Update the theme and its pluginsWordPress
Install the latest theme version. If you use a child theme, update the parent, then check your child theme's overrides against the new parent templates.
Fix or replace incompatible codeWordPress
Use debug.log to find the file and line. Ask the theme developer for a patch, fix deprecated calls in your child theme, or move to a maintained theme if support has stopped.
Roll back core only as a short-term measureWordPress
A rollback plugin or a manual reinstall of the previous core version can buy you time, but older versions may have security holes. Plan to fix the theme and return to the current version quickly.
Retest the whole journey
Test landing pages, forms, checkout and tracking, on desktop and mobile.
Use a staging site
Many hosts offer one-click staging. Apply the update there, test, then push to live.
Pause automatic core updates for major releases
Minor security releases are safest to keep automatic. To stop major releases installing on their own, add define( 'WP_AUTO_UPDATE_CORE', 'minor' ); to wp-config.php.
Fix deprecated functions
Search your theme for functions flagged in debug.log as deprecated and replace them with the documented alternatives from the WordPress developer reference.
Version control your theme
Keep the theme in Git so you can compare changes and revert a bad deploy.
Move tracking out of the theme
If the pixel code lived in theme files, add it as a tag in a GTM container loaded by a small plugin or snippet, so theme changes no longer remove it.
define( 'WP_AUTO_UPDATE_CORE', 'minor' );Broken
- Core updated overnight, theme not tested
- Form missing or page showing an error
- Conversions stop reaching ad platforms
- You find out from falling enquiries
Fixed
- Updates tested on staging first
- Theme updated or patched
- Forms and tags verified after each update
- Failures caught within a check cycle
How to confirm it's fixed
- Site Health shows no critical issues related to the theme.
- debug.log has no new fatal errors for your theme.
- Landing pages look right on desktop and mobile.
- A test form submission reaches the inbox and CRM.
- Conversion tags fire once per conversion in Tag Assistant or the platform's debug view.
- Checkout or booking flows complete up to the payment step.
How to prevent it happening again
Treat every major core update as a change that needs testing. Keep a staging site, keep backups that you have actually tested restoring, and choose themes from developers who publish regular compatibility updates.
Example: illustrative numbers showing leads dropping after an unnoticed breakage and recovering after the fix.
| Habit | Why it helps |
|---|---|
| Staging site for updates | You see breakage before visitors do |
| Tested backups | You can restore in minutes |
| Minor-only auto updates | Security fixes arrive, big changes wait for testing |
| Child theme for customisations | Your changes survive theme updates |
| Tracking in GTM | Theme problems do not remove tags |
| Scheduled journey monitoring | Breakage is found in hours, not days |
How FunnelGuard handles this
FunnelGuard detects the effects of a broken theme today. A robot visitor runs your real customer journeys on a schedule from the EU or the US, such as lead forms, checkouts and booking buttons. It checks each step, the tracking hits sent to platforms like GA4, Google Ads and Meta, and whether test leads reach your inbox and CRM.
If a core update breaks the theme so a form is missing, a button no longer works or a tag stops firing, the journey fails. FunnelGuard re-checks from a second region, then sends one alert (email, Slack, Teams, WhatsApp, webhook or PagerDuty) with a screenshot and a likely cause. It does not know that a core update was the trigger, but it tells you quickly that something on the journey broke. Test traffic is marked and never enters real card details.
Questions people ask
Why did my WordPress theme break after an update?
The theme probably uses code that no longer works with the new core version, such as a deprecated function, an old bundled script or an overridden template. Turn on WP_DEBUG_LOG and check debug.log for errors naming your theme folder.
How do I fix a WordPress site that broke after updating?
Restore a backup or switch to a default theme to get the site working, then update the theme and plugins. Fix or replace any incompatible code and retest forms, checkout and tracking before returning to normal.
Can I roll back a WordPress core update?
Yes, by restoring a pre-update backup or using a rollback plugin or manual reinstall of the earlier version. Use it only short term, since older versions may lack security fixes.
How do I stop WordPress updating automatically?
Minor security releases are worth keeping automatic. To limit core to minor releases, add define( 'WP_AUTO_UPDATE_CORE', 'minor' ); to wp-config.php, and update major versions manually after testing on staging.
How do I test a WordPress update before applying it to my live site?
Use a staging copy of your site, often one click at your host. Apply the update there, check pages, forms, checkout and tracking, and only then update the live site.
How can I tell if a WordPress update broke my contact form?
Submit a test enquiry and check that it arrives in your inbox and CRM, and look for JavaScript errors in the browser console. A scheduled monitor such as FunnelGuard can run this test for you and alert you if it fails.
Why do I see a critical error after a WordPress update?
A PHP fatal error in your theme or a plugin is the usual cause. WordPress emails a recovery mode link to the admin address, which lets you log in and deactivate the culprit.
Related issues
- OPS-235Theme update overwrites customisations / tracking codeFix guide
- OPS-241Plugin conflict causing white screenFix guide
- OPS-234Plugin auto-update breaks contact formFix guide
- OPS-236Page builder (Elementor/Divi) update breaks layout or formsFix guide
- OPS-243Pending updates piling up (security debt)Fix guide
- OPS-239Caching plugin conflict (WP Rocket, LiteSpeed) breaking JSFix guide