{"id":1078670,"date":"2023-05-02T09:32:17","date_gmt":"2023-05-02T09:32:17","guid":{"rendered":"https:\/\/rankmath.com\/?p=1078670"},"modified":"2024-03-05T07:20:55","modified_gmt":"2024-03-05T07:20:55","slug":"fix-wordpress-critical-error","status":"publish","type":"post","link":"https:\/\/rankmath.com\/de\/blog\/fix-wordpress-critical-error\/","title":{"rendered":"Auf dieser Website ist ein kritischer Fehler aufgetreten: 6 Schnellkorrekturen"},"content":{"rendered":"<p>WordPress ist eine der beliebtesten Plattformen zum Erstellen von Websites weltweit. Millionen von Menschen verwenden es, um alles zu erstellen, von einfachen Websites bis hin zu komplexen Unternehmensl\u00f6sungen. <\/p>\n\n\n\n<p>Trotz seiner Popularit\u00e4t ist WordPress nicht ohne Fehler!<\/p>\n\n\n\n<p>Eines der h\u00e4ufigsten Probleme, mit denen Sie m\u00f6glicherweise konfrontiert werden, ist eine alarmierende Nachricht wie: <strong>\u201eAuf dieser Website ist ein kritischer Fehler aufgetreten.<\/strong> <strong>Bitte \u00fcberpr\u00fcfen Sie den E-Mail-Posteingang Ihres Site-Administrators auf Anweisungen.<\/strong>&#8221;&nbsp;<\/p>\n\n\n\n<p>Dieser Beitrag zeigt Ihnen, wie Sie diesen kritischen Fehler in WordPress schnell beheben k\u00f6nnen. Wir werden auch besprechen, was diesen Fehler verursacht und wie man ihn vermeidet. Also, ohne weitere Umschweife, fangen wir an.<\/p>\n\n\n\n<!--more-->\n\n\n\n<div id=\"toc\">\n    <h2>Inhaltsverzeichnis<\/h2>\n    <ol>\n        <li><a href=\"#what\">What is a Critical Error in WordPress?<\/a><\/li>\n        <li><a href=\"#causes\">What Causes the &#8220;There has been a critical error on this website&#8221; Error?<\/a>\n        <\/li><li><a href=\"#how-to\">How to Fix the &#8220;There has been a critical error on this website&#8221; Error?<\/a>\n            <ul>\n                <li><a href=\"#error-logs\">Check Error Logs<\/a><\/li>\n                <li><a href=\"#debug\">Enable Debug in WordPress<\/a><\/li>\n                <li><a href=\"#default-theme\">Switch to a Default Theme<\/a><\/li>\n                <li><a href=\"#deactivate\">Deactivate All the Plugins<\/a><\/li>\n                <li><a href=\"#php-limit\">Raise the PHP Memory Limit <\/a><\/li>\n                <li><a href=\"#malware\">Check for Malware<\/a><\/li>\n            <\/ul>\n        <\/li>\n        <li><a href=\"#conclusion\">Fazit<\/a><\/li>\n    <\/ol>\n<\/div>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"what\"><span class=\"number\">1<\/span>  What is a Critical Error in WordPress?<\/h2>\n\n\n\n<p>WordPress&#8217;s critical error is an error that prevents it from loading all the scripts it requires to function properly.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img decoding=\"async\" width=\"1712\" height=\"472\" src=\"https:\/\/rankmath.com\/wp-content\/uploads\/2022\/09\/critical-error-message-1.jpg\" alt=\"there has been a critical error on this website message\" class=\"wp-image-1079607\" style=\"width:900px\" \/><\/figure>\n\n\n\n<p>Previously, this WordPress problem would display a <a href=\"https:\/\/rankmath.com\/kb\/fatal-error-after-1-0-49-update\/\">fatal error message<\/a> or a white screen of death. Most novices struggled to tackle the problem independently.<\/p>\n\n\n\n<p>To help its users, WordPress has a feature that detects when a plugin or a theme causes a critical error and sends a notification to the admin email address. Check your spam folder if you don\u2019t see any email notifications in your inbox. <\/p>\n\n\n\n<p>In the email, users receive more details about what is causing the issue. The email contains the error caused by a plugin or theme not working correctly. It may also be caused due to database corruption or insufficient memory. Further details, like which line has an error, are explained in the email.<\/p>\n\n\n\n<p>Also, the email consists of a recovery link to access your site in recovery mode. You can log into your WordPress dashboard using the recovery link to resolve the issue.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img decoding=\"async\" width=\"2284\" height=\"1138\" src=\"https:\/\/rankmath.com\/wp-content\/uploads\/2022\/09\/recovery-email-1.jpg\" alt=\"recovery email\" class=\"wp-image-1080058\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"causes\"><span class=\"number\">2<\/span>  What Causes the &#8220;There has been a critical error on this website&#8221; Error?<\/h2>\n\n\n\n<p>The error is generally caused by a malfunctioning plugin, script, or code that prevents WordPress from functioning properly.<\/p>\n\n\n\n<p>If you don&#8217;t fix this problem, WordPress won&#8217;t be able to load the other files it requires. <\/p>\n\n\n\n<p>Another cause of this error is if you have recently copied and pasted code snippets from some tutorial to your site; it might trigger a critical error when the code is incorrect or invalid for your site. A conflict with another WordPress plugin or custom code may also trigger the error.&nbsp;<\/p>\n\n\n\n<p>That said, let\u2019s look at how to fix the critical error in WordPress and get your website running again.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"how-to\"><span class=\"number\">3<\/span>  How to Fix the &#8220;There has been a critical error on this website&#8221; Error?<\/h2>\n\n\n\n<p>We&#8217;ll now show you six quick fixes to help you solve the &#8220;There has been a critical error on this website&#8221; error.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"error-logs\"><span class=\"number\">3.1<\/span>  Check Error Logs<\/h3>\n\n\n\n<p>First, you can check the error log file that stores PHP error details. <\/p>\n\n\n\n<p>To do so, use <a href=\"https:\/\/mythemeshop.com\/blog\/upload-files-on-wordpress-using-ftp\/\" target=\"_blank\" rel=\"noopener\">FTP<\/a>, and navigate to the <strong>public_html<\/strong> folder. Look for the&nbsp;<strong>error_log<\/strong> file as shown below.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img decoding=\"async\" width=\"1204\" height=\"892\" src=\"https:\/\/rankmath.com\/wp-content\/uploads\/2022\/11\/error-log-file.jpg\" alt=\"Open the error_log file\" class=\"wp-image-1100403\" \/><\/figure>\n\n\n\n<p>The latest error entry will be at the bottom, indicating the date and time. You can check this error log file to identify the cause of your site&#8217;s error.&nbsp;<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img decoding=\"async\" width=\"1402\" height=\"230\" src=\"https:\/\/rankmath.com\/wp-content\/uploads\/2022\/09\/error-log-file-1.jpg\" alt=\"error log file\" class=\"wp-image-1079836\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"debug\"><span class=\"number\">3.2<\/span>  Enable Debug in WordPress<\/h3>\n\n\n\n<p>WordPress has an integrated debugging system that locates coding flaws in the core software, themes, and plugins.<\/p>\n\n\n\n<p>When debug mode is enabled, you can notice the various PHP problems appearing on your site and identify their root cause. To activate the&nbsp;WordPress debug mode, open the<strong>&nbsp;wp-config.php<\/strong>&nbsp;file in your&nbsp;<strong>public_html<\/strong>&nbsp;directory. <\/p>\n\n\n\n<p>Click on View\/Edit wp-config.php file, as shown below.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img decoding=\"async\" width=\"1062\" height=\"1090\" src=\"https:\/\/rankmath.com\/wp-content\/uploads\/2022\/11\/view-edit-file-1.jpg\" alt=\"View\/Edit the file\" class=\"wp-image-1100435\" \/><\/figure>\n\n\n\n<p>Then add the following code lines at the document&#8217;s bottom, just before the message \/*That&#8217;s all, stop editing! Happy publishing.*\/ Once done, click on the <strong>Speichern<\/strong> button. Don&#8217;t forget to upload the file back to the server.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>define( 'WP_DEBUG', true );\ndefine( 'WP_DEBUG_DISPLAY', false );\ndefine( 'WP_DEBUG_LOG', true );<\/code><\/pre>\n\n\n\n<p>Here&#8217;s what it will look like:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img decoding=\"async\" width=\"1344\" height=\"808\" src=\"https:\/\/rankmath.com\/wp-content\/uploads\/2022\/11\/wp-config-file-add-code-1.jpg\" alt=\"Enable debug mode\" class=\"wp-image-1100436\" \/><\/figure>\n\n\n\n<p>Debugging is now enabled on your site, and errors will be written to the log. You can locate the debug log in the wp-content folder named debug.log.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"default-theme\"><span class=\"number\">3.3<\/span>  Switch to a Default Theme<\/h3>\n\n\n\n<p>The next step in troubleshooting the critical error is switching your WordPress theme to a default one. This will fix the critical error issue in your current WordPress theme if some code is the root cause of the error.<\/p>\n\n\n\n<p>Navigate to the WordPress.org themes directory and download a fresh copy of the Twenty Twenty-Four WordPress theme.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img decoding=\"async\" width=\"2098\" height=\"1208\" src=\"https:\/\/rankmath.com\/wp-content\/uploads\/2024\/03\/download-theme.jpeg\" alt=\"download theme\" class=\"wp-image-1300158\" \/><\/figure>\n\n\n\n<p>Once the theme is downloaded, unzip the theme file on your computer. Next, connect to your WordPress site using an FTP client or the File Manager in your hosting account. <\/p>\n\n\n\n<p>Sobald die Verbindung hergestellt ist, navigieren Sie zu<strong> \/wp-content\/themes <\/strong>folder<strong>,<\/strong> and you will notice a list of all the themes installed on your website. Download all the theme folders on your computer for backup, as shown below.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img decoding=\"async\" width=\"2236\" height=\"700\" src=\"https:\/\/rankmath.com\/wp-content\/uploads\/2024\/03\/download-theme-files.jpeg\" alt=\"download themes\" class=\"wp-image-1300161\" \/><\/figure>\n\n\n\n<p>Once downloaded, delete all the folders from your website by clicking the <strong>Delete<\/strong> Option, wie unten gezeigt. <\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img decoding=\"async\" width=\"1066\" height=\"764\" src=\"https:\/\/rankmath.com\/wp-content\/uploads\/2024\/03\/delete-files.jpeg\" alt=\"delete the theme folders\" class=\"wp-image-1300162\" \/><\/figure>\n\n\n\n<p>Now your WordPress site doesn&#8217;t have any theme installed. To fix this, upload the default theme folder you downloaded earlier.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img decoding=\"async\" width=\"1164\" height=\"1082\" src=\"https:\/\/rankmath.com\/wp-content\/uploads\/2024\/03\/upload-theme.jpeg\" alt=\"upload theme\" class=\"wp-image-1300165\" \/><\/figure>\n\n\n\n<p>Once the theme is uploaded to your site, you can try visiting your website.&nbsp;<\/p>\n\n\n\n<p>If your WordPress theme caused the &#8220;There has been a critical error on this website&#8221; error, it will disappear now, and you\u2019ll be able to access your website.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"deactivate\"><span class=\"number\">3.4<\/span>  Deactivate All the Plugins<\/h3>\n\n\n\n<p>A plugin is often to blame when you experience a critical error. Trying to locate the culprit may seem daunting if you have several or even dozens of plugins on your site.<\/p>\n\n\n\n<p>But there\u2019s an easy way to find the problematic plugin: disable them all and see if that fixes the error. If it does, enable them one by one until your site runs again. And you&#8217;ve found the culprit!<\/p>\n\n\n\n<p>Connect your website using FTP or the File Manager app in your WordPress hosting account. <\/p>\n\n\n\n<p>Sobald die Verbindung hergestellt ist, navigieren Sie zu&nbsp;<strong>\/wp-content\/<\/strong>&nbsp;folder. Locate the <strong>Plugins<\/strong> folder, right-click on it, and select the <strong>Rename<\/strong> Option, wie unten gezeigt.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img decoding=\"async\" width=\"958\" height=\"1146\" src=\"https:\/\/rankmath.com\/wp-content\/uploads\/2022\/09\/rename-plugins.jpg\" alt=\"rename the plugins folder\" class=\"wp-image-1079861\" \/><\/figure>\n\n\n\n<p>Next, change the plugin&#8217;s folder name to anything you like. In our example, we\u2019ll rename it as &#8216;plugins.old&#8217;.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img decoding=\"async\" width=\"1178\" height=\"532\" src=\"https:\/\/rankmath.com\/wp-content\/uploads\/2022\/09\/rename-plugins-folder-1.jpg\" alt=\"rename the plugins folder\" class=\"wp-image-1079862\" \/><\/figure>\n\n\n\n<p>Once done, all of your plugins will be deactivated.&nbsp;<\/p>\n\n\n\n<p>WordPress looks for the plugins folder to load the activated plugins on your website. When it cannot locate the plugins folder, it simply cannot activate them and automatically sets them as deactivated.<\/p>\n\n\n\n<p>You can now visit your website to check if the critical error message has disappeared.<\/p>\n\n\n\n<p class=\"takeaway yellow\"><strong>Notiz:<\/strong>&nbsp;Whether you&#8217;ve resolved the critical error or not, don\u2019t forget to rename the &#8216;plugins.old&#8217; folder back to &#8216;plugins.&#8217; WordPress will then recognize the folder, and you can reactivate them one by one from the WordPress dashboard to identify which one caused the critical error.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"php-limit\"><span class=\"number\">3.5<\/span>  Raise the PHP Memory Limit <\/h3>\n\n\n\n<p>Even if a plugin or theme is to blame for your website&#8217;s malfunction, the PHP memory limit is frequently the real offender of the &#8220;There has been a critical error on this website&#8221; error.<\/p>\n\n\n\n<p>What is PHP&#8217;s memory limitation? <\/p>\n\n\n\n<p>WordPress imposes a strict limit on the amount of RAM (also known as memory) that a single PHP script may occupy on your web server. The critical error or the white screen of death will appear when this limit is reached.<\/p>\n\n\n\n<p>To increase the PHP limit, access your site through FTP and open the <strong>wp-config.php<\/strong> file. Add the below code snippet before the final line. <\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>define( 'WP_MEMORY_LIMIT', '128M' );<\/code><\/pre>\n\n\n\n<p>Once you&#8217;ve added the code, click on the <strong>Speichern<\/strong> Taste.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img decoding=\"async\" width=\"1328\" height=\"754\" src=\"https:\/\/rankmath.com\/wp-content\/uploads\/2022\/11\/raise-php-limit.jpg\" alt=\"increase PHP limit\" class=\"wp-image-1100432\" style=\"width:900px\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"malware\"><span class=\"number\">3.6<\/span>  Check for Malware<\/h3>\n\n\n\n<p>Malware can occasionally be the root of the &#8220;There has been a critical error on this website&#8221; error, especially if you notice odd PHP scripts that you can&#8217;t attribute to your plugins or theme. It&#8217;s difficult to remove malware when you&#8217;re locked out of your website and unable to perform a scan.<\/p>\n\n\n\n<p>It can be challenging to distinguish between trustworthy and suspicious files that malware has added, and deleting random core files isn&#8217;t going to turn out well. Malware can also alter PHP files, hiding scripts in them; unless you&#8217;re a developer, you won&#8217;t be able to detect it. <\/p>\n\n\n\n<p>If malware is the root cause of the critical error, it may be best to turn to your web host for help.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"conclusion\"><span class=\"number\">4<\/span>  Fazit<\/h2>\n\n\n\n<p>There\u2019s no need to panic if you encounter the&nbsp;<strong>\u201eAuf dieser Website ist ein kritischer Fehler aufgetreten. <strong>Bitte \u00fcberpr\u00fcfen Sie den E-Mail-Posteingang Ihres Site-Administrators auf Anweisungen.<\/strong>&#8220;<\/strong>&nbsp;message.<\/p>\n\n\n\n<p>Fortunately, there are ways to diagnose even the vaguest error message. Simply check your email address and find an email from WordPress to locate the issue and quickly fix it. <\/p>\n\n\n\n<p>By running through a checklist of common fixes, you should be able to solve the critical error and get your site working properly again.<\/p>\n\n\n\n<p>We also recommend creating <a href=\"https:\/\/rankmath.com\/blog\/backup-wordpress-site\/\">backups<\/a> regularly. With a backup in hand, you\u2019ll be able to restore your site quickly if you get a WordPress error message like this.<\/p>\n\n\n\n<p>Have you ever come across a critical error on your site? How did you tackle it? Let us know by&nbsp;<strong><a href=\"https:\/\/twitter.com\/rankmathseo\" target=\"_blank\" rel=\"noopener\">@rankmathseo twittern.<\/a><\/strong>\ud83d\udcac<\/p>","protected":false},"excerpt":{"rendered":"<p>WordPress is one of the most popular website-building platforms in the world. Millions of people use it to create everything from simple websites to complex enterprise solutions. Despite its popularity, WordPress is not without its flaws! One of the most common problems you might face is an alarming message like, &#8220;There has been a critical [&hellip;]<\/p>","protected":false},"author":37,"featured_media":1151801,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[136],"tags":[],"class_list":{"0":"post-1078670","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-wp-tutorials"},"_links":{"self":[{"href":"https:\/\/rankmath.com\/de\/wp-json\/wp\/v2\/posts\/1078670","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/rankmath.com\/de\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/rankmath.com\/de\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/rankmath.com\/de\/wp-json\/wp\/v2\/users\/37"}],"replies":[{"embeddable":true,"href":"https:\/\/rankmath.com\/de\/wp-json\/wp\/v2\/comments?post=1078670"}],"version-history":[{"count":2,"href":"https:\/\/rankmath.com\/de\/wp-json\/wp\/v2\/posts\/1078670\/revisions"}],"predecessor-version":[{"id":1300167,"href":"https:\/\/rankmath.com\/de\/wp-json\/wp\/v2\/posts\/1078670\/revisions\/1300167"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/rankmath.com\/de\/wp-json\/wp\/v2\/media\/1151801"}],"wp:attachment":[{"href":"https:\/\/rankmath.com\/de\/wp-json\/wp\/v2\/media?parent=1078670"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/rankmath.com\/de\/wp-json\/wp\/v2\/categories?post=1078670"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/rankmath.com\/de\/wp-json\/wp\/v2\/tags?post=1078670"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}