WhatsApp Us

WordPress emergency repair · India and abroad

WordPress critical error fix: how to get your site back when it says “There has been a critical error”

A WordPress critical error fix starts with one fact: the message hides a PHP fatal error, usually from a plugin, a theme or a PHP version the code was never written for. Find that error line and the fix is often minutes away. This guide walks through the recovery mode email, the debug log, disabling plugins without admin access and PHP mismatches. If the site earns money and you would rather not experiment, BtechWaleTech's three freelance developers can take it from here; ongoing WordPress maintenance keeps it from happening again.

  • Real causeA PHP fatal error, hidden from visitors
  • First place to lookAdmin email: recovery mode link
  • Second placewp-content/debug.log with WP_DEBUG_LOG
  • Most common triggerPlugin or theme update, or PHP change
  • PreventionCare plans from ₹8,000/mo
  • Your accessHosting, FTP and admin stay yours
  • Recovery mode email
  • Debug log reading
  • Plugin conflicts
  • Theme failures
  • PHP version mismatch
  • WooCommerce stores
  • Prevention plan

Three freelance developers in India · replies on WhatsApp, 7 days a week

  • 2WordPress tools built for this: recovery mode and the debug log
  • 3Developers who can step in on a broken site
  • 2Months of free maintenance on sites we build
  • 7Days a week we reply on WhatsApp

The short answer

How do I fix “There has been a critical error on this website” in WordPress?

For a WordPress critical error fix, open the recovery mode link WordPress emails to the admin address and deactivate the plugin or theme it names. No email? Enable WP_DEBUG_LOG in wp-config.php, reload the page, and read wp-content/debug.log for the fatal error. Then disable that plugin, switch theme or change PHP version. Maintenance to prevent repeats starts at ₹8,000/mo.

If the site shows spam or redirects as well as the error, treat it as a hack and see hacked website repair. Other odd bugs are covered by our bug fixing work.

Last updated

WordPress critical error, in brief
What the message meansPHP stopped with a fatal error; WordPress shows a generic notice
Built-in helpRecovery mode email to the site admin (since WordPress 5.2)
Where the real error iswp-content/debug.log once WP_DEBUG_LOG is on
Usual culpritsPlugin, theme, PHP version, memory limit, broken core files
No admin access?Rename folders by FTP or the hosting file manager
Ongoing careFrom ₹8,000/mo, with tested updates and backups
PaymentUPI or bank transfer in India; Wise, wire or PayPal abroad

Why choose us

Hosting support, restoring a backup, or a proper fix

All three can bring a site back online. They differ in whether the underlying cause is still waiting for the next update.

Hosting support, restoring a backup, or a proper fix
What matters Hosting support chat Restore yesterday's backup BtechWaleTech fix
Speed to get the site up Fast if they spot it Fast, if a clean backup exists Usually quick once access is shared
Finds the actual cause Sometimes names the plugin No Yes, from the log and code
Keeps today's orders and posts Yes No, anything after the backup is lost Yes
Fixes PHP compatibility May change the version back No Updates code or plans the upgrade
Handles custom theme code Rarely No Yes
Stops it happening again No No Staging, tested updates, monitoring
Explains what happened Brief ticket reply No Written note on WhatsApp
Cost Included in hosting Free if backups exist Quoted after diagnosis; care from ₹8,000/mo

If your host has a clear backup from before the failure and nothing important changed since, restoring it is a sensible first move; just find the cause before running updates again.

Pricing

What a WordPress critical error fix costs

A one-off repair is quoted after we see the error, because a single deactivated plugin and a custom theme rewritten for PHP 8 are very different jobs. What pushes the price up: no admin or FTP access, custom code written by someone else, a WooCommerce store that needs checkout testing, a hack hiding behind the error, or several versions of PHP and plugins to catch up. To stop repeats, our maintenance plans start at ₹8,000/mo with tested updates and backups. Sites too old to save can be rebuilt, starting at ₹10,000. Nothing is billed before you approve an itemised quote in writing.

Starting prices in INR and USD
ServiceIndia (INR)Worldwide (USD)Typical timelineWhat is included
Static website from ₹10,000 from US$150 1 to 2 weeks Up to 100 pages, Responsive design, Contact form and enquiry setup, Basic SEO tags and sitemap
SEO website (299+ pages) from ₹20,000 from US$300 3 to 5 weeks 299+ SEO pages, Keyword and page planning, Schema, sitemap, and internal linking, Design to deployment included
Ecommerce store from ₹50,000 from US$750 4 to 8 weeks Product and category pages, Payment gateway setup, Order and inventory basics, Performance tuning
Android & iOS app from ₹40,000 from US$600 6 to 10 weeks Android and iOS app (Flutter or React Native), Login, forms and push notifications, Admin panel and API connection, Google Play and App Store publishing
Custom web app or software from ₹60,000 from US$900 6 to 12 weeks Custom features and APIs, User accounts and roles, Admin panel, Deployment and handover
AI automation from ₹40,000 from US$600 2 to 4 weeks Workflow mapping, Tool and CRM integrations, AI agent or automation build, Testing and handover
Monthly SEO from ₹10,000/mo from US$150/mo Ongoing, monthly Technical fixes, On-page and content work, Local SEO and listings, Search Console reporting
Maintenance and support from ₹8,000/mo from US$120/mo Ongoing, monthly Content updates, Bug fixes, Backups and security checks, Speed and uptime checks

All prices are starting points, quoted in INR for India and USD for international clients, not fixed quotes. Final cost depends on the number of pages, features, integrations, content, and timelines. Share your requirement and you get an itemised estimate with nothing hidden. See full pricing.

What does “There has been a critical error on this website” mean?

It means PHP hit a fatal error while building the page and WordPress stopped. Rather than dump technical details on visitors, WordPress shows a short, generic notice and, where it can, emails the site administrator.

Before WordPress 5.2, the same failure usually produced a blank white page, the so-called white screen of death. The WordPress core team's announcement of fatal error recovery mode in 5.2 explains the change: when a fatal error happens, WordPress sends the admin email a secret link into recovery mode, where the plugin or theme responsible is paused so you can log in and deal with it.

So the message is not the problem itself. It is a cover over a specific error in a specific file, and a WordPress critical error fix is really about uncovering that line. Once you know which file failed and why, the repair is usually straightforward. Guessing without the log is how people end up deleting the wrong plugin or reinstalling WordPress for no reason.

  • Front end, admin or both can show the message
  • Visitors see only the notice; details are hidden for safety
  • WordPress tries to email the admin address with a recovery link
  • The underlying cause is logged if debugging is enabled

Step one: check the recovery mode email

Check the inbox of the site's admin email address, including spam, for a message from your WordPress site about a technical issue. It usually names the plugin or theme that caused the failure and contains a link into recovery mode.

Clicking the link places a cookie in your browser and lets you log in to the dashboard with the faulty extension paused for you only. From there you can deactivate it, roll back to an earlier version, or contact its developer. The core announcement notes there is a button in the admin bar to exit recovery mode when you are done.

Problems with this step are common in practice. The admin address may belong to a developer who left years ago. The site's mail may not be delivered because it uses PHP mail without proper authentication. Developers can redirect these alerts using the RECOVERY_MODE_EMAIL constant, which is worth setting to a shared inbox as part of prevention.

If mail from your site never arrives, the same authentication gaps probably affect contact form emails too; see why business emails land in spam. When no email appears within a few minutes, move on to the debug log.

How to enable the WordPress debug log to find the real error

Turn on logging in wp-config.php, reload the broken page once, and read the new log file. This is the single most useful step in any WordPress critical error fix without a recovery email.

WordPress's developer documentation describes three constants. WP_DEBUG switches debug mode on across WordPress. WP_DEBUG_LOG, when true, saves messages to debug.log in the content directory, usually wp-content/debug.log. WP_DEBUG_DISPLAY controls whether messages are printed inside the page HTML. On a live site you want logging on and display off, so visitors never see file paths.

Add the lines above the comment that says to stop editing, using your hosting file manager or FTP. Then load the page that fails. Open debug.log and look for lines that start with “PHP Fatal error”. The line names a file path and line number; the folder in that path, such as wp-content/plugins/some-plugin, tells you what to disable.

The same documentation warns that debug tools are meant for local testing and staging, not live sites. So switch WP_DEBUG back to false when finished and delete the log, which can reveal server paths if left publicly reachable.

  • define( 'WP_DEBUG', true );
  • define( 'WP_DEBUG_LOG', true );
  • define( 'WP_DEBUG_DISPLAY', false );

Reading the fatal error line: what common messages tell you

Every fatal error line has three useful parts: the type of error, the file and the line number. The type tells you what kind of fix you need; the file tells you who wrote the code.

“Allowed memory size … exhausted”

PHP ran out of memory. The file named is often innocent; the real issue is a heavy plugin or a low limit. Raise WP_MEMORY_LIMIT or the host's PHP memory, then find what is consuming it.

“Call to undefined function”

Code relies on a function that is not loaded: a missing PHP extension, a deactivated companion plugin, or a function removed in a newer PHP version.

“Uncaught Error: Class … not found”

An autoloader or dependency is missing, often after an incomplete plugin update. Reinstalling that plugin cleanly usually resolves it.

“syntax error, unexpected …”

Someone edited a PHP file by hand, commonly functions.php, and left a typo. Undo that edit or restore the file.

“Cannot redeclare …”

Two plugins, or a plugin and theme, define the same function. Deactivate one of them.

“Uncaught TypeError” or “ArgumentCountError”

Old code meeting stricter rules in newer PHP. Update the plugin or theme, or fix the code.

If the path points into wp-admin or wp-includes rather than plugins or themes, core files may be damaged; that case is covered below.

WordPress critical error from a plugin: how to disable it without admin access

Rename the plugin's folder over FTP or in the hosting file manager, and WordPress deactivates it on the next load. You do not need the dashboard for this.

If the log names one plugin, rename only that folder, for example by adding “-off” to the end. Reload the site. If it comes back, you have your culprit. If the log is empty or confusing, rename the whole plugins folder to deactivate everything, confirm the site loads, then rename it back and reactivate plugins one at a time from the dashboard until the error returns.

Conflicts rather than single bad plugins are common. Two optimisation plugins both trying to rewrite the same output, a page builder add-on that expects a newer version of the builder, or a security plugin blocking another plugin's file access can each produce a fatal error only when both are active.

Once found, do not just leave it off. Check for an update, roll back to the version that worked, or replace the plugin. And note what happened, because the same plugin will update again next month. Help with choosing replacements is part of what a freelance WordPress developer does.

When the theme causes the critical error

If the fatal error points into wp-content/themes, the active theme is the cause. Rename its folder and WordPress falls back to a default theme if one is installed, which brings the site up in a plain design so you can work.

Check wp-content/themes first for a default theme such as a recent Twenty-something theme. If none is there, upload one before renaming, or WordPress will have nothing to fall back to.

Theme failures usually come from three places. Custom code pasted into functions.php, often from a tutorial, with a missing bracket. A commercial theme several years out of date that breaks on newer PHP. Or a child theme that calls functions its parent no longer provides after an update. The debug line tells you which.

Custom or heavily edited themes deserve extra care. Restoring a clean copy may wipe changes someone paid for. We compare the broken file with the original from the vendor before replacing anything, and if the theme is abandoned we discuss whether updating it or moving to a maintained theme makes more sense. Bigger rebuilds are covered on custom WordPress theme development.

WordPress critical error after a PHP update: fixing version mismatches

If the error appeared when your host changed the PHP version, older code is failing on the newer version. The short-term fix is to select the previous version in the hosting panel; the real fix is updating the code so the site runs on a supported release.

Why hosts push upgrades: the PHP project's supported-versions page says each release branch receives two years of active support and then two years of security fixes only, after which it reaches end of life. It lists PHP 8.2's security support ending on 31 December 2026, for example. WordPress.org's requirements page recommends PHP 8.3 or greater.

Rolling back PHP buys time but leaves the site on a version that will stop getting security fixes. So use the rollback to get the site up, then update or replace the plugins and theme that failed, test on a staging copy with the newer PHP, and switch again once the log is clean.

Many Indian shared hosting panels have a “Select PHP version” or “MultiPHP Manager” tool that sets the version per domain. Change only the affected site, and note the old value before touching it. For older custom PHP code rather than WordPress plugins, see PHP version upgrade.

Memory limits, corrupted core files and failed updates

Not every critical error comes from a plugin or theme. Memory exhaustion, a half-finished core update and damaged files can all produce the same message.

Memory errors show the “Allowed memory size exhausted” line. Raising WP_MEMORY_LIMIT in wp-config.php, or the PHP memory limit in the hosting panel, often brings the site back. But treat it as a clue: a site that suddenly needs far more memory usually has a plugin doing something expensive, such as loading huge product lists into one page.

A core update interrupted by a timeout can leave a mix of old and new files. Signs include errors pointing into wp-admin or wp-includes and a leftover .maintenance file in the site root that keeps showing a maintenance message. The fix is to replace wp-admin and wp-includes with fresh copies of the same WordPress version, without touching wp-content or wp-config.php, and delete the .maintenance file.

Damaged database tables are rarer but real after server crashes. WordPress has a built-in repair script enabled through a wp-config constant; use it briefly, then turn it off again.

WordPress critical error on a WooCommerce store

On a store the same steps apply, but the stakes and the order change: get checkout working first, then investigate the rest. Every hour down means lost orders and customers who may not come back.

WooCommerce sites run more extensions than most, and those extensions often depend on a minimum WooCommerce version. An automatic update to WooCommerce itself can leave a payment, shipping or invoicing extension calling functions that moved. The log names it; roll that extension back or update it.

After recovery, test properly. Place orders through UPI, card and cash on delivery if you offer them, confirm that order emails go out, that stock reduces, and that invoices with GST details generate correctly. A store that loads but cannot take payment is still broken.

Stores benefit most from a staging copy where updates are tried first. If yours needs deeper work, see our WooCommerce development page; if you are considering a move off WooCommerce, Shopify maintenance explains what upkeep looks like there.

Can't log in to WordPress admin? Fixing the critical error from the hosting panel

You can fix almost every critical error without the dashboard, as long as you can reach the files. The hosting control panel's file manager or an FTP/SFTP account is all you need.

Decide what access you actually have. With a hosting login, open the file manager, go to the site's folder and you can edit wp-config.php, rename plugin and theme folders and download the debug log. Without a hosting login but with FTP details, the same is possible using an FTP client. With neither, your first task is recovering access from the hosting company using the account email.

This is where Indian sites often stall. The developer who built the site registered hosting under their own email and cannot be reached. Hosting companies can usually restore access to the verified account owner, which is why hosting should always be in the business's name. Our guide for when a developer leaves a project midway covers the recovery steps.

Have hosting panel access

Everything in this guide is possible: edit wp-config.php, rename folders, change PHP version, read logs.

Have FTP only

Edit files and rename folders; ask the host to change PHP version if needed.

Have nothing

Recover the hosting account first. Do not pay anyone claiming they can fix it without access.

What not to do while fixing a WordPress critical error

The most expensive mistakes happen in the first panicked hour. Slow down enough to avoid making the problem bigger.

Do not delete plugins when renaming will do; deleting can remove settings and data. Do not reinstall WordPress over the whole folder, which risks overwriting wp-content. Do not restore an old backup on a store without checking what orders came in since. Do not leave WP_DEBUG_DISPLAY on, which shows file paths to visitors and attackers. And do not paste random code from forums into functions.php on the live site.

Most of all, take a backup of the broken site before changing anything, files and database both. It sounds odd to back up something that does not work, but it preserves recent content and gives you a way back if a fix goes wrong.

  • Back up the broken site first
  • Rename folders instead of deleting plugins
  • Keep debug display off on live sites
  • Check order history before restoring a store backup
  • Do not reinstall over wp-content
  • Write down every change you make

Should you attempt a WordPress critical error fix yourself?

Try it yourself if you have hosting access, the recovery email or log names one plugin, and the site is not a busy store. Call someone when the log points to custom code, core files or PHP compatibility, or when the site makes money every hour it is down.

A reasonable rule: give yourself thirty minutes with the steps above. If the site is not back by then, or you are no longer sure which change did what, stop and get help rather than stacking more changes on top.

When you hire, share the error line and any recovery email up front, along with hosting access. It saves time and money. Ask the person fixing it to tell you the cause in writing and what should change so it does not recur. Anyone who fixes it without explaining is setting you up for the same call next month. Help is available through hiring a WordPress developer or directly from us on WhatsApp.

How much does a WordPress critical error fix cost in India?

It depends on the cause, so an honest price comes after the diagnosis. A single plugin conflict on a small site is a short job. A custom theme that needs rewriting for current PHP, or a store with several broken extensions, takes longer.

Across the market, quotes for emergency WordPress fixes vary widely. The differences come from access (ready logins versus recovery), whether the cause is found or merely hidden, how much testing follows, and whether the person can work with custom code. Compare what each offer includes rather than only the number.

For prevention, our maintenance plans start at ₹8,000/mo (US$120/mo abroad), with updates tested on a copy, off-server backups and monitoring. General pricing for upkeep is explained on website maintenance charges. When a site is too far gone, rebuilding as a static site from ₹10,000 or a store from ₹50,000 can be cheaper than repeated rescues.

  • Access: hosting and FTP ready, or recovery needed first
  • Cause: one plugin, theme code, PHP compatibility or core damage
  • Custom code written by someone else
  • Store testing needed after recovery
  • Any sign of malware behind the error

How to prevent the WordPress critical error next time

Most critical errors come from updates applied straight to the live site. Put a buffer between an update and your visitors and the problem mostly goes away.

  • Keep a staging copy and apply updates there first
  • Automatic off-server backups, with a restore tested occasionally
  • Fewer plugins: remove anything unused or duplicated
  • Avoid nulled or pirated themes and plugins entirely
  • Plan PHP upgrades before the host forces them
  • Set RECOVERY_MODE_EMAIL to a shared inbox someone reads
  • Uptime monitoring that alerts you within minutes
  • A written list of custom code and where it lives
  • Turn off automatic updates for critical plugins on stores, and update them deliberately

Monitoring is covered on website uptime monitoring. If a second problem appears alongside the error, such as a missing padlock, see website showing not secure.

Worked example: a hotel site down after an overnight update

This is a hypothetical case to show the sequence. Say a family-run hotel in Shimla uses WordPress with a booking plugin, a page builder and a commercial theme bought years ago. One morning the site shows “There has been a critical error on this website”, the admin area shows the same, and the recovery email went to a developer's old address.

With hosting access shared, the first step is a backup of files and database as they stand. Next, WP_DEBUG_LOG goes on with display off. One reload later, debug.log shows a fatal “Uncaught TypeError” inside the theme's functions file. The host had moved the account to a newer PHP version overnight.

Short term, the PHP version is set back to the previous one for that domain in the panel, and the site returns within minutes. Bookings are checked: the calendar loads and a test enquiry arrives. RECOVERY_MODE_EMAIL is set to the hotel's shared inbox.

Longer term, the theme vendor's latest version is tested on a staging copy running the newer PHP. It fixes the error, but two custom sections need reapplying. Once the log is clean on staging, the change goes live and PHP is upgraded again, this time on purpose. Debug mode is switched off and the log deleted.

WordPress critical error fixes for sites across India

We fix WordPress sites remotely, so location does not change the method. It does change the kind of site we tend to see broken.

Hotels and homestays in Shimla, Rishikesh and Puri run booking plugins that must be up during season. Educational institutions in Warangal, Gwalior and Jabalpur publish results and admission pages on WordPress that see heavy traffic on specific days. Manufacturers and suppliers in Jamshedpur, Belagavi and Solapur often run older sites built years ago that break when hosts upgrade PHP. Retailers in Kozhikode and Mangaluru increasingly sell through WooCommerce, where downtime costs orders directly.

Read the log

Common fatal errors behind the critical error message

Match the first words of the “PHP Fatal error” line in debug.log to find the likely fix.

Common fatal errors behind the critical error message
Error text begins withWhat it usually meansFirst fix to tryRisk if ignored
Allowed memory size exhausted PHP memory limit reachedRaise the limit, then find the heavy pluginReturns under traffic
Call to undefined function Missing extension, plugin or removed PHP functionReinstall dependency or update codeOther features break too
Class not found Incomplete plugin updateReinstall that plugin cleanlySettings pages fail
syntax error, unexpected Hand edit with a typoUndo the edit or restore the fileSite stays down
Cannot redeclare Two extensions define the same functionDeactivate oneRecurs on updates
Uncaught TypeError Old code on newer PHPUpdate plugin or theme; roll PHP back brieflySecurity exposure on old PHP
Path inside wp-admin or wp-includes Damaged or partial core filesReplace core folders with the same versionUnpredictable failures

PHP lifecycle

Supported PHP versions and what they mean for WordPress

Dates from the PHP project's supported-versions page. WordPress.org recommends PHP 8.3 or greater.

Supported PHP versions and what they mean for WordPress
PHP branchActive support untilSecurity fixes untilWhat to do
8.2 31 Dec 2024 (ended)31 Dec 2026Plan the move now
8.3 31 Dec 2025 (ended)31 Dec 2027Good target for older sites
8.4 31 Dec 202631 Dec 2028Test plugins on staging first
8.5 31 Dec 202731 Dec 2029Newest; check theme compatibility
Older than 8.2 EndedEndedUpgrade; no security fixes

Costs and paths

Fix, maintain or rebuild: starting points

One-off repairs are quoted after the error is read. See all starting prices.

Fix, maintain or rebuild: starting points
SituationWhat we doStarting priceTypical time
One plugin or theme conflict Identify, disable, update or replaceQuoted after diagnosisOften same day with access
PHP compatibility failure Temporary rollback, then code or theme updateQuoted after diagnosisA few working days for the full fix
Ongoing prevention Staging, tested updates, backups, monitoringFrom ₹8,000/moMonthly
Site too old to rescue Rebuild as a fast static websiteFrom ₹10,0001–2 weeks
Store rebuilt cleanly New ecommerce site with UPI and card checkoutFrom ₹50,0004–8 weeks
Clients outside India Same scopes quoted in USDCare from US$120/moMonthly

Across India

WordPress sites we rescue in these cities

All repairs are remote. The notes explain what kind of WordPress sites businesses in each city tend to run.

  • WordPress fixes for Shimla hotels

    Hotels and homestays with booking plugins cannot afford downtime in peak tourist months, when a critical error means guests book elsewhere.

  • WordPress repair in Rishikesh

    Yoga schools and retreats with course calendars and international enquiries often run plugin-heavy sites that break after updates.

  • WordPress error fixes in Puri

    Beach hotels and pilgrimage travel services rely on enquiry forms that must work during festival seasons and holiday rushes.

  • WordPress support in Tirupati

    Hotels, travel desks and educational institutions near the temple town see steady traffic and need sites that stay up.

  • Site rescue for Warangal colleges

    Engineering and degree colleges publish notices and results on WordPress, with heavy traffic on specific days when failures hurt most.

  • WordPress repair in Gwalior

    Schools, coaching institutes and hospitals often inherit sites from developers who moved on, leaving no one to fix errors.

  • WordPress fixes in Jabalpur

    Educational institutions and local retailers run older sites that break when hosts move accounts to newer PHP versions.

  • Critical error repair in Jamshedpur

    Suppliers and engineering firms around the steel industry often have product sites built years ago with outdated themes.

  • WordPress support in Dhanbad

    Mining suppliers, coaching centres and hospitals need enquiry forms working and someone who can read an error log quickly.

  • Site rescue for Belagavi businesses

    Foundries, sugar and engineering businesses near the Karnataka–Maharashtra border run catalogue sites that need careful updates.

  • WordPress repair in Solapur

    Textile and terry-towel manufacturers with product catalogues depend on older sites that fail after automatic updates.

  • WordPress fixes in Kozhikode

    Retailers, hospitals and spice traders increasingly sell through WooCommerce, where a critical error stops orders immediately.

  • WordPress support in Mangaluru

    Colleges, hospitals and cashew exporters run WordPress sites that need quick fixes and tested updates to stay online.

  • Site rescue in Meerut

    Sports goods makers and publishers selling online need plugin conflicts fixed without losing product data or orders.

  • WordPress repair in Jammu

    Tour operators, hotels and dry-fruit sellers depend on booking and order pages that must work for customers across India.

  • WordPress fixes in Hubli-Dharwad

    Educational institutions and trading businesses in the twin cities run content sites that need safe updates and backups.

How it works

How we fix a WordPress critical error

  1. Send the details

    Share your site address on WhatsApp with a screenshot, any recovery email you received and what changed recently, such as an update or a hosting notice.

  2. Share access safely

    Give us a hosting or FTP user and, if possible, an admin login. If access is lost, we guide you through recovering it in your own name first.

  3. Back up, then diagnose

    We back up files and database as they are, enable logging with display off, and read the fatal error to find the file and cause.

  4. Quote and approve

    You get the cause and an itemised price. Nothing is billed until you approve it in writing, and urgent stores are prioritised.

  5. Fix and test

    The faulty plugin, theme, PHP setting or core file is dealt with, then pages, forms and checkout are tested on phones and desktop.

  6. Clean up and prevent

    Debug mode goes off, the log is deleted, recovery emails go to your inbox, and we recommend the changes that stop a repeat.

Questions

WordPress critical error fix: common questions

What causes “There has been a critical error on this website”?

The message appears when PHP hits a fatal error and WordPress stops building the page. The most common triggers are a plugin or theme update with a bug, two plugins that conflict, a PHP version the code does not support, running out of PHP memory, or damaged core files after an interrupted update.

How do I fix a WordPress critical error quickly?

Check the admin email inbox for WordPress's recovery mode message, open the link, and deactivate the plugin or theme it names. If there is no email, enable WP_DEBUG_LOG in wp-config.php, reload the page, read wp-content/debug.log for the fatal error, and rename the folder of the plugin or theme it points to.

How do I fix a WordPress critical error without admin access?

Use the hosting file manager or FTP. Enable logging in wp-config.php to find the error, then rename the faulty plugin's folder in wp-content/plugins, or the theme's folder in wp-content/themes, which deactivates it. If you cannot tell which plugin, rename the whole plugins folder, confirm the site loads, then reactivate plugins one at a time.

I didn't get the WordPress recovery mode email. What now?

The email goes to the site's admin address, which may be old or unmonitored, and mail from WordPress often lands in spam or fails without proper authentication. Check spam first. Otherwise, skip the email and use the debug log. Afterwards, set RECOVERY_MODE_EMAIL to an inbox someone reads and fix the site's email sending.

How do I enable the debug log in WordPress?

Edit wp-config.php and add define('WP_DEBUG', true), define('WP_DEBUG_LOG', true) and define('WP_DEBUG_DISPLAY', false) above the line saying to stop editing. Reload the broken page and open wp-content/debug.log. WordPress documentation advises against leaving debug tools on live sites, so turn them off and delete the log afterwards.

Can a plugin update cause a WordPress critical error?

Yes, it is the most common cause. An update can contain a bug, require a newer PHP or WordPress version, or clash with another plugin. Roll back to the previous version or disable the plugin to restore the site, then check the developer's support forum or changelog before updating again, ideally on a staging copy first.

Why did my site show a critical error after a PHP upgrade?

Older plugin or theme code may use features that newer PHP versions removed or treat more strictly. Temporarily selecting the previous PHP version in your hosting panel brings the site back, but update the failing code soon, because PHP branches stop receiving security fixes four years after release according to the PHP project.

Which PHP version should WordPress use?

WordPress.org recommends PHP 8.3 or greater, along with MySQL 8.0 or MariaDB 10.11 or newer. The PHP project lists PHP 8.2's security support ending on 31 December 2026, so sites on 8.2 or older should plan an upgrade, testing plugins and theme on a staging copy before switching the live site.

Will fixing the critical error delete my content?

Not if it is done carefully. Posts, pages, products and orders live in the database, which a normal fix does not touch. Renaming plugin folders keeps their settings. Risks come from deleting plugins, reinstalling WordPress over wp-content or restoring an old backup, so back up the broken site before changing anything.

How long does a WordPress critical error fix take?

A single plugin conflict with access ready is often fixed in under an hour. PHP compatibility work on a custom theme, a store with several broken extensions, or a site where hosting access must be recovered first can take longer. The longest delays usually come from missing logins, not the fix itself.

How much does it cost to fix a WordPress critical error?

BtechWaleTech quotes after reading the error, because causes differ so much. You get an itemised price before any work is billed. To avoid repeats, maintenance plans with tested updates and backups start at ₹8,000/mo. If the site is very old, rebuilding from ₹10,000 can cost less than repeated emergency repairs.

Is the critical error a sign my WordPress site was hacked?

Usually not; most are plugin, theme or PHP problems. But injected malicious code can also cause fatal errors. If the log points to strange file names, you see unknown admin users, or the site redirects to spam, treat it as a hack: clean the site, change passwords and close the entry point rather than just hiding the error.

What is WordPress recovery mode?

Recovery mode, added in WordPress 5.2, lets an administrator log in after a fatal error with the faulty plugin or theme paused for them. WordPress emails a secret link to the admin address; clicking it sets a cookie so you can access the dashboard, deactivate or fix the extension, and exit recovery mode from the admin bar.

Should I restore a backup to fix the critical error?

It can be a quick route if you have a clean backup from before the failure and nothing important has changed since. On a store or busy blog, restoring loses new orders, posts and comments added after the backup. Either way, find the cause before updating again, or the same error will return.

Can increasing the memory limit fix the critical error?

If the log says “Allowed memory size exhausted”, raising WP_MEMORY_LIMIT or the PHP memory limit in the hosting panel often brings the site back. Treat it as a clue, though: a sudden need for more memory usually means a plugin is doing something heavy. Find it, or the error returns when traffic rises.

How do I stop WordPress critical errors happening again?

Test updates on a staging copy first, keep automatic off-server backups, remove unused plugins, avoid nulled themes and plugins, plan PHP upgrades before your host forces them, send recovery emails to a shared inbox and set up uptime monitoring. A maintenance plan can handle all of this if you prefer not to.

Can you fix WooCommerce critical errors?

Yes. Stores follow the same diagnosis, with checkout restored first. After the fix we test orders through each payment method you offer, including UPI, card and cash on delivery, and confirm that order emails, stock updates and invoices work. Extension version mismatches after a WooCommerce update are a frequent cause.

Do you fix WordPress critical errors for clients outside India?

Yes. The work is fully remote. International clients are quoted in USD and pay by Wise, bank wire or PayPal, with ongoing care from US$120/mo. We work in your hosting account with access you control, and send a written summary of the cause and every change made.

WordPress site par critical error aa raha hai, kya karein?

Pehle admin email check karein, WordPress ek recovery mode link bhejta hai jo batata hai kaunsa plugin ya theme problem hai. Email nahi aaya to wp-config.php mein WP_DEBUG_LOG on karke wp-content/debug.log padhein. Us plugin ka folder rename karne se site wapas aa jaati hai. Mushkil ho to URL WhatsApp par bhejein.

What details should I send when asking for help?

Send the site address, a screenshot of the error, any recovery mode email, what changed just before it broke (plugin update, PHP change, new theme), and whether you have hosting, FTP and admin access. With those details the cause is often clear within minutes of looking at the log.

Next step

WordPress showing a critical error? Send it to us

Message your site address and a screenshot on WhatsApp. We read the error, tell you the cause and quote the fix before any work is billed, with your hosting and logins staying in your name.