You can find the debug log in the wp-content folder, named debug.log. Here’s what it will look like when done: wp-config.php debug.ĭebugging is now enabled on your site and errors will be written to the log. Step 3: Place the following code at the bottom of the document, just before the final message, then save and close the file:.Step 2: Find wp-config.php in the root folder and open it with a text editor or IDE.If you need to manually turn on debugging, or you need to access the debug log, follow these steps. Make sure to disable debugging when you’re done, as it’s visible to your visitors as well as you. You can then look around your site to find the cause of the issue or check the log. Just log in to the hosting dashboard, then go to Sites > Tools > WordPress debugging and click Enable. If you’re hosting with Kinsta, enabling debugging with MyKinsta is very easy. This will write all PHP errors to a file. With debug mode on, you’ll be able to see the various PHP errors occurring on your site, and you can use this to trace back to the root of the issue.Īs you may be unable to access your dashboard, you’ll also need to enable the debug log. If you’re having trouble with WordPress, one of the first things you should do is enable debugging. This guide on connecting to WordPress over FTP can help too. But as your entire site is likely down, you’ll very likely need to access it through FTP (or SFTP).Ĭontact your web host or look through your hosting dashboard to find your FTP login credentials, and make sure to install an FTP client like FileZilla. If you’re able to log in to your website’s backend, that will help immensely. Even with your site in a broken state, make sure to back it up before implementing any of these suggestions, as we don’t want to make it worse! Knowing that the cause is likely PHP-related, these may involve editing core WordPress files. You’re here to get your site up and running again, and to that end, we’ve collected several different potential ways to fix the issue. How to Fix the “There Has Been a Critical Error on Your Website” Error?
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |