# There has been a critical error on this website

**URL:** <https://forum.infinityfree.com/t/there-has-been-a-critical-error-on-this-website/58419>\
**Category:** Hosting Support\
**Created:** [February 23, 2022, 10:48am UTC](https://forum.infinityfree.com/t/there-has-been-a-critical-error-on-this-website/58419 "2022-02-23T10:48:09Z")\
**Posts on this page:** 18\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jaguar](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/jaguar/32/20675_2.png) [@Jaguar](https://forum.infinityfree.com/u/Jaguar)\
**Post date:** [February 23, 2022, 10:48am UTC](https://forum.infinityfree.com/t/there-has-been-a-critical-error-on-this-website/58419/1 "2022-02-23T10:48:09Z")

</div>

### Username (e.g. epiz\_XXX) or Website URL

epiz\_30569901 [jaguar.lovestoblog.com](http://jaguar.lovestoblog.com)

### Error Message

There has been a critical error on this website.

### Other Information

NOT after upgrade - no changes made. Tried renaming Plugins folder to disable them but no change.

---

<div class="post-metadata">

**Author:** ![wackyblackie](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/wackyblackie/32/43350_2.png) [@wackyblackie](https://forum.infinityfree.com/u/wackyblackie)\
**Post date:** [February 23, 2022, 10:50am UTC](https://forum.infinityfree.com/t/there-has-been-a-critical-error-on-this-website/58419/2 "2022-02-23T10:50:50Z")

</div>

> [@Installation failed: There has been a critical error on your website](https://forum.infinityfree.com/t/installation-failed-there-has-been-a-critical-error-on-your-website/49361):
>
> WordPress supports installing and updating plugins and themes from the official store right through the WordPress admin interface. However, after trying to install or update a large plugin (like WooCommerce) or theme, you may encounter an error like this: Installation failed: There has been a critical error on your website. Please check your site admin email inbox for instructions. Learn more about debugging in WordPress. This error means that the installation process crashed, and may have l…

---

<div class="post-metadata">

**Author:** ![KangJL](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/kangjl/32/12130_2.png) [@KangJL](https://forum.infinityfree.com/u/KangJL)\
**Post date:** [February 23, 2022, 10:55am UTC](https://forum.infinityfree.com/t/there-has-been-a-critical-error-on-this-website/58419/3 "2022-02-23T10:55:15Z")

</div>

> [@Jaguar](#):
>
> There has been a critical error on this website.

Can also happen due to auto update/upgrade.  
Uploading WP installation files should restore your website

> [@How to fix a corrupted WordPress installation](https://forum.infinityfree.com/t/how-to-fix-a-corrupted-wordpress-installation/49359):
>
> WordPress frequently releases updates, which you can install through WordPress’ admin interface. Usually, this works without a hitch. But with some (big) upgrades, the upgrade fails half way and leaves you with a broken website. Fortunately, you can still fix your website without any data loss, and this article tells you how to do that. Download a fresh copy of WordPress First of all, you will need to download a fresh copy of WordPress. You can download this from the official WordPress website…

---

<div class="post-metadata">

**Author:** ![Jaguar](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/jaguar/32/20675_2.png) [@Jaguar](https://forum.infinityfree.com/u/Jaguar)\
**Post date:** [February 23, 2022, 11:02am UTC](https://forum.infinityfree.com/t/there-has-been-a-critical-error-on-this-website/58419/4 "2022-02-23T11:02:34Z")

</div>

Hmm… debug gives me this:

**Parse error** : syntax error, unexpected end of file in **/home/vol1\_3/epizy.com/epiz\_30569901/htdocs/wp-includes/deprecated.php** on line **3895**

**Notice** : is\_embed was called **incorrectly**. Conditional query tags do not work before the query is run. Before then, they always return false. Please see [Debugging in WordPress](https://wordpress.org/support/article/debugging-in-wordpress/) for more information. (This message was added in version 3.1.0.) in **/home/vol1\_3/epizy.com/epiz\_30569901/htdocs/wp-includes/functions.php** on line **5768**

**Notice** : is\_search was called **incorrectly**. Conditional query tags do not work before the query is run. Before then, they always return false. Please see [Debugging in WordPress](https://wordpress.org/support/article/debugging-in-wordpress/) for more information. (This message was added in version 3.1.0.) in **/home/vol1\_3/epizy.com/epiz\_30569901/htdocs/wp-includes/functions.php** on line **5768**

There has been a critical error on this website.

---

<div class="post-metadata">

**Author:** ![wackyblackie](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/wackyblackie/32/43350_2.png) [@wackyblackie](https://forum.infinityfree.com/u/wackyblackie)\
**Post date:** [February 23, 2022, 11:09am UTC](https://forum.infinityfree.com/t/there-has-been-a-critical-error-on-this-website/58419/5 "2022-02-23T11:09:51Z")

</div>

Maybe do as it says and follow the link.

> **[Debugging in WordPress](https://wordpress.org/documentation/article/debugging-in-wordpress/)**
>
> Debugging PHP code is part of any project, but WordPress comes with specific debug systems designed to simplify the process as well as standardize code across the core, plugins and themes. This page describes the various debugging tools in WordPress...

You may have to reinstall WP.

---

<div class="post-metadata">

**Author:** ![Jaguar](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/jaguar/32/20675_2.png) [@Jaguar](https://forum.infinityfree.com/u/Jaguar)\
**Post date:** [February 23, 2022, 11:11am UTC](https://forum.infinityfree.com/t/there-has-been-a-critical-error-on-this-website/58419/6 "2022-02-23T11:11:19Z")

</div>

deprecated does indeed terminate badly. line 3895 ends with " if ( e"

Can anyone tell me what is missing / point me to a working deprecated.php?

---

<div class="post-metadata">

**Author:** ![wackyblackie](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/wackyblackie/32/43350_2.png) [@wackyblackie](https://forum.infinityfree.com/u/wackyblackie)\
**Post date:** [February 23, 2022, 11:18am UTC](https://forum.infinityfree.com/t/there-has-been-a-critical-error-on-this-website/58419/7 "2022-02-23T11:18:35Z")

</div>

> <https://github.com/WordPress/WordPress/blob/master/wp-includes/deprecated.php#L3895>

May be easier/safer to just reinstall though.

---

<div class="post-metadata">

**Author:** ![Jaguar](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/jaguar/32/20675_2.png) [@Jaguar](https://forum.infinityfree.com/u/Jaguar)\
**Post date:** [February 23, 2022, 11:36am UTC](https://forum.infinityfree.com/t/there-has-been-a-critical-error-on-this-website/58419/8 "2022-02-23T11:36:00Z")

</div>

OK thanks for that. My file now matches yours, ending on 3905, but now the error has shifted to 3905, so deprecated.php must be corrupt somewhere. Is it possible to replace the entire file? Failing that it will have to be a reinstall I guess.

---

<div class="post-metadata">

**Author:** ![wackyblackie](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/wackyblackie/32/43350_2.png) [@wackyblackie](https://forum.infinityfree.com/u/wackyblackie)\
**Post date:** [February 23, 2022, 11:40am UTC](https://forum.infinityfree.com/t/there-has-been-a-critical-error-on-this-website/58419/9 "2022-02-23T11:40:10Z")

</div>

You can download the entire file, but you may have to do some correcting of credentials, etc.

Open and click Ctrl+s and save it locally then use FileZilla to upload.  
[https://github.com/WordPress/WordPress/raw/master/wp-includes/deprecated.php](https://github.com/WordPress/WordPress/raw/master/wp-includes/deprecated.php)

---

<div class="post-metadata">

**Author:** ![Admin](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/admin/32/36437_2.png) [@Admin](https://forum.infinityfree.com/u/Admin)\
**Post date:** [February 23, 2022, 12:24pm UTC](https://forum.infinityfree.com/t/there-has-been-a-critical-error-on-this-website/58419/10 "2022-02-23T12:24:21Z")

</div>

> [@Jaguar](#):
>
> Is it possible to replace the entire file? Failing that it will have to be a reinstall I guess.

Absolutely! Or better yet, follow the guide that @KangJL already shared, which ensures that all files in your WordPress installation are correct, without any data loss:

> [@There has been a critical error on this website](https://forum.infinityfree.com/t/there-has-been-a-critical-error-on-this-website/58419/3):
>
> Can also happen due to auto update/upgrade. Uploading WP installation files should restore your website

---

<div class="post-metadata">

**Author:** ![Jaguar](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/jaguar/32/20675_2.png) [@Jaguar](https://forum.infinityfree.com/u/Jaguar)\
**Post date:** [February 23, 2022, 1:15pm UTC](https://forum.infinityfree.com/t/there-has-been-a-critical-error-on-this-website/58419/11 "2022-02-23T13:15:36Z")

</div>

Thanks for all the help guys 🙂  
Trying to patch didn’t work, so I carried out a full reinstall successfully.  
It turns out that WP introduced an update overnight, which failed, so that is the root cause of the problem. Updating to 5.9 failed also, and caused corruption previously, so now I need to understand why these updates are failing regularly.

---

<div class="post-metadata">

**Author:** ![KangJL](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/kangjl/32/12130_2.png) [@KangJL](https://forum.infinityfree.com/u/KangJL)\
**Post date:** [February 23, 2022, 1:23pm UTC](https://forum.infinityfree.com/t/there-has-been-a-critical-error-on-this-website/58419/12 "2022-02-23T13:23:50Z")

</div>

> [@Jaguar](#):
>
> Trying to patch didn’t work,

Of course it will fail. You should upload the WP 5.9.1 installation files over your current installation. That should do the trick

---

<div class="post-metadata">

**Author:** ![Greenreader9](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/greenreader9/32/22847_2.png) [@Greenreader9](https://forum.infinityfree.com/u/Greenreader9)\
**Post date:** [February 23, 2022, 1:42pm UTC](https://forum.infinityfree.com/t/there-has-been-a-critical-error-on-this-website/58419/13 "2022-02-23T13:42:44Z")

</div>

Split this topic on February 23, 2022, 1:42pm UTC

A post was split to a new topic: [WordPress Help](https://forum.infinityfree.com/t/wordpress-help/58429)

---

<div class="post-metadata">

**Author:** ![Oxy](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/oxy/32/37989_2.png) [@Oxy](https://forum.infinityfree.com/u/Oxy)\
**Post date:** [February 23, 2022, 8:57pm UTC](https://forum.infinityfree.com/t/there-has-been-a-critical-error-on-this-website/58419/14 "2022-02-23T20:57:15Z")

</div>

Split this topic on February 23, 2022, 8:57pm UTC

12 posts were merged into an existing topic: [WordPress Help](https://forum.infinityfree.com/t/wordpress-help/58429/3)

---

<div class="post-metadata">

**Author:** ![Jaguar](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/jaguar/32/20675_2.png) [@Jaguar](https://forum.infinityfree.com/u/Jaguar)\
**Post date:** [February 23, 2022, 1:48pm UTC](https://forum.infinityfree.com/t/there-has-been-a-critical-error-on-this-website/58419/18 "2022-02-23T13:48:18Z")

</div>

Being unaware of the 5.9.1 update (until site was back up), I reinstalled from my saved 5.9 version. Once back up, I attempted the update from admin screen, but this also failed. I have now downloaded 5.9.1 and uploaded to site and all is now back at the new version.

My question is, why are manual ‘dashboard’ and auto updates routinely failing?

---

<div class="post-metadata">

**Author:** ![KangJL](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/kangjl/32/12130_2.png) [@KangJL](https://forum.infinityfree.com/u/KangJL)\
**Post date:** [February 23, 2022, 1:52pm UTC](https://forum.infinityfree.com/t/there-has-been-a-critical-error-on-this-website/58419/21 "2022-02-23T13:52:52Z")

</div>

> [@Jaguar](#):
>
> why are manual ‘dashboard’ and auto updates routinely failing?

Due to limits of free hosting.

You can add this

`define( ` `'WP_AUTO_UPDATE_CORE'` `, false );`

to the `wp-config.php` file to disable WP update

---

<div class="post-metadata">

**Author:** ![Jaguar](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/jaguar/32/20675_2.png) [@Jaguar](https://forum.infinityfree.com/u/Jaguar)\
**Post date:** [February 23, 2022, 1:54pm UTC](https://forum.infinityfree.com/t/there-has-been-a-critical-error-on-this-website/58419/22 "2022-02-23T13:54:32Z")

</div>

Ah-ha. No problem now I know what to expect 🙂  
I will add that code as suggested. Many thanks.

---

<div class="post-metadata">

**Author:** ![Oxy](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/oxy/32/37989_2.png) [@Oxy](https://forum.infinityfree.com/u/Oxy)\
**Post date:** [February 23, 2022, 8:57pm UTC](https://forum.infinityfree.com/t/there-has-been-a-critical-error-on-this-website/58419/23 "2022-02-23T20:57:28Z")

</div>

Closed on February 23, 2022, 8:57pm UTC


