{"id":23032,"date":"2022-02-12T06:00:00","date_gmt":"2022-02-12T01:00:00","guid":{"rendered":"https:\/\/mcstarters.com\/blog\/?p=23032"},"modified":"2024-03-15T16:40:49","modified_gmt":"2024-03-15T11:40:49","slug":"there-has-been-a-critical-error-on-your-website","status":"publish","type":"post","link":"https:\/\/mcstarters.com\/blog\/there-has-been-a-critical-error-on-your-website\/","title":{"rendered":"How to Fix the \u201cThere Has Been a Critical Error on Your Website\u201d Error"},"content":{"rendered":"\n<p>&#8220;There Has Been a Critical Error on Your Website&#8221; is the most common error in WordPress. The full version of this error show like that when you open a WordPress website.<\/p>\n\n\n\n<p class=\"bg-light\"><em>\u201cThere has been a critical error on your website. Please check your site admin email inbox for instructions.<\/em> <em>Learn more about debugging in WordPress.\u201d<\/em><\/p>\n\n\n\n<p>We will show 4 methods of fixing this issue. I hope one of works for your Website but if still not fixed then comment below.<\/p>\n\n\n\n<p class=\"step bg-light\"><strong>Note: <\/strong>Please take a backup before working on the solution<\/p>\n\n\n\n<p class=\"bg-blue\">You Might Also Like <a href=\"https:\/\/mcstarters.com\/free-elementor-templates\/\" data-type=\"URL\" data-id=\"https:\/\/mcstarters.com\/free-elementor-templates\/\" target=\"_blank\" rel=\"noreferrer noopener\">Elementor Website Templates<\/a> for WordPress.<\/p>\n\n\n\n<p class=\"bg-light\">Want to Learn More About <a href=\"https:\/\/trk.elementor.com\/mcstartersblog\" target=\"_blank\" data-type=\"URL\" data-id=\"https:\/\/trk.elementor.com\/mcstartersblog\" rel=\"noreferrer noopener nofollow\">Elementor Page Builder.<\/a><\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"there-has-been-a-critical-error-on-your-website\">There Has Been a Critical Error on Your Website<\/h2>\n\n\n\n<p>Let&#8217;s start fixing, Please follow every step to get rid of this error.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"upgrade-your-php-version\">Upgrade Your PHP Version<\/h2>\n\n\n\n<p>Your site may break as a result of outdated PHP, and additional issues are almost certain to arise. You should generally run your site on the most recent version of PHP that WordPress supports, which is presently PHP 7.3 through 8.0.<\/p>\n\n\n\n<p>Some WordPress users prefer to stick to PHP 7.4 because of theme and plugin compatibility concerns. Normally, this isn&#8217;t a problem. However, if you&#8217;re using PHP 5. x, you should upgrade immediately because it can cause major problems.<\/p>\n\n\n\n<p>If you are not an expert then you need to contact hosting support they will help you to Upgrade Your PHP Version but if you are a developer then follow the below steps.<\/p>\n\n\n\n<p class=\"step\"><strong>Step 1: <\/strong>Open to Hosting Account &gt; Open Cpanel &gt; Search Php &gt; Click &#8220;Select PHP Version&#8221;.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"701\" height=\"294\" src=\"https:\/\/mcstarters.com\/blog\/wp-content\/uploads\/2022\/02\/Open-Cpanel-and-Php-version.webp\" alt=\"Open Cpanel and Php version\" class=\"wp-image-23323\" title=\"\"><\/figure>\n\n\n\n<p class=\"step\"><strong>Step 2:<\/strong>  Upgrade the PHP version by clicking on the current dropdown icon.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"699\" height=\"202\" src=\"https:\/\/mcstarters.com\/blog\/wp-content\/uploads\/2022\/02\/Upgrade-Your-PHP-Version.webp\" alt=\"Upgrade Your PHP Version\" class=\"wp-image-23322\" title=\"\"><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"Disable-All-Plugins\">Disable All Plugins<\/h2>\n\n\n\n<p>A plugin is frequently to blame when you&#8217;re experiencing a critical problem. Finding the plugin that&#8217;s causing the problem can be difficult if your site has many or even hundreds of plugins.<\/p>\n\n\n\n<p>But there&#8217;s a quick approach to figure out which plugin is causing the issue to turn them all plugins off and see whether that solves the problem. If it does, turn them on one at a time until your site stops working. And there you have it: the perpetrator!<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"learn-how-to-disable-all-plugins-or-disable-plugins-one-by-one\">Learn how to disable all plugins or disable plugins one by one.<\/h3>\n\n\n\n<p class=\"step\"><strong>Step 1:<\/strong> Open Cpanel &gt; File Manager<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"700\" height=\"235\" src=\"https:\/\/mcstarters.com\/blog\/wp-content\/uploads\/2022\/02\/File-Manager.webp\" alt=\"File Manager\" class=\"wp-image-23328\" title=\"\"><\/figure>\n\n\n\n<p class=\"step\"><strong>Step 2:<\/strong> Access WordPress wp-content folder \ud83d\udcc2. Here you see the plugins folder. please Rename this folder to plugins_old. It helps you to disable all plugins in one step.<\/p>\n\n\n\n<p class=\"step\"><strong>Step 3: <\/strong>Check website is working or not. If work then one of plugin cause of this problem.<\/p>\n\n\n\n<p class=\"step\"><strong>Step 4:<\/strong> Rename plugin_old to plugin and activate all plugins from the WordPress dashboard. Now you again see your website stop working.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"now-it-s-time-to-disable-plugins-one-by-one-to-get-rid-of-this-error\">Now it&#8217;s time to disable plugins one by one to get rid of this error.<\/h3>\n\n\n\n<p class=\"step\"><strong>Step 1<\/strong>: Again Open Cpanel &gt; File Manager &gt; wp-content &gt; plugins. Here you see all plugins.<\/p>\n\n\n\n<p class=\"step\"><strong>Step 2:<\/strong> Rename plugins one by one and check website work or not. if work then just disable this plugin and activate all other. if not, then move to the next plugins and do the same process again until you fix it.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"increase-the-max-upload-file-size\">Raise the PHP Memory Limit<\/h2>\n\n\n\n<p class=\"step\"><strong>Step 1:<\/strong> Open the <strong>wp-config.php<\/strong> file.<\/p>\n\n\n\n<p class=\"step\"><strong>Step 2:&nbsp;<\/strong>Insert the following code right before the final line and save.<\/p>\n\n\n\n<pre class=\"wp-block-code bg-code\"><code>define( 'WP_MEMORY_LIMIT', '128M' );<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"increase-the-max-upload-file-size\">Increase the Max Upload File Size<\/h2>\n\n\n\n<p class=\"step\"><strong>Step 1:<\/strong> Log into file manager and edit the&nbsp;<strong>wp-config.php&nbsp;<\/strong>file<\/p>\n\n\n\n<p class=\"step\"><strong>Step 2:<\/strong> Placing the below snippet right above the final line.<\/p>\n\n\n\n<pre class=\"wp-block-code bg-code\"><code>ini_set('upload_max_size' , '256M' );\nini_set('post_max_size','256M');<\/code><\/pre>\n\n\n\n<p>We hope you can fix the &#8220;There Has Been a Critical Error on Your Website&#8221; issue but if you are still facing the issue then comment below.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"frequently-asked-question\">Frequently Asked Question<\/h2>\n\n\n<div id=\"rank-math-faq\" class=\"rank-math-block\">\n<div class=\"rank-math-list \">\n<div id=\"faq-question-1644549126391\" class=\"rank-math-list-item\">\n<h3 class=\"rank-math-question \">How do I fix there has been a critical error on your website please check your site admin email inbox for instructions?<\/h3>\n<div class=\"rank-math-answer \">\n\n<p><strong>Step 1: <\/strong>Log in to File Manager<br \/><strong>Step 2:<\/strong> Access wp-content &gt; plugins <br \/><strong>Step 3: <\/strong>Remain plugin folder<br \/><strong>Step 4: <\/strong>Access website admin and now you successfully login.<\/p>\n\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n\n\n<p class=\"bg-blue\">You Might Also Like <a href=\"https:\/\/mcstarters.com\/services\/wordpress-web-design-services\/\" target=\"_blank\" data-type=\"URL\" data-id=\"https:\/\/mcstarters.com\/services\/wordpress-web-design-services\/\" rel=\"noreferrer noopener\">WordPress Website Services<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>&#8220;There Has Been a Critical Error on Your Website&#8221; is&#8230;<\/p>\n","protected":false},"author":5,"featured_media":23321,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_kad_post_transparent":"","_kad_post_title":"","_kad_post_layout":"","_kad_post_sidebar_id":"","_kad_post_content_style":"","_kad_post_vertical_padding":"","_kad_post_feature":"","_kad_post_feature_position":"","_kad_post_header":false,"_kad_post_footer":false,"_kad_post_classname":"","footnotes":""},"categories":[2],"tags":[],"class_list":["post-23032","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-wordpress"],"_links":{"self":[{"href":"https:\/\/mcstarters.com\/blog\/wp-json\/wp\/v2\/posts\/23032","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mcstarters.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mcstarters.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mcstarters.com\/blog\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/mcstarters.com\/blog\/wp-json\/wp\/v2\/comments?post=23032"}],"version-history":[{"count":0,"href":"https:\/\/mcstarters.com\/blog\/wp-json\/wp\/v2\/posts\/23032\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/mcstarters.com\/blog\/wp-json\/wp\/v2\/media\/23321"}],"wp:attachment":[{"href":"https:\/\/mcstarters.com\/blog\/wp-json\/wp\/v2\/media?parent=23032"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mcstarters.com\/blog\/wp-json\/wp\/v2\/categories?post=23032"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mcstarters.com\/blog\/wp-json\/wp\/v2\/tags?post=23032"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}