{"id":17904,"date":"2019-08-23T18:14:15","date_gmt":"2019-08-23T22:14:15","guid":{"rendered":"https:\/\/www.boldgrid.com\/support\/?p=17904"},"modified":"2021-04-28T11:14:30","modified_gmt":"2021-04-28T15:14:30","slug":"how-to-interpret-wordpress-errors","status":"publish","type":"post","link":"https:\/\/www.boldgrid.com\/support\/wordpress-tutorials\/how-to-interpret-wordpress-errors\/","title":{"rendered":"How to Interpret WordPress Errors"},"content":{"rendered":"<!DOCTYPE html PUBLIC \"-\/\/W3C\/\/DTD HTML 4.0 Transitional\/\/EN\" \"http:\/\/www.w3.org\/TR\/REC-html40\/loose.dtd\">\n<?xml encoding=\"utf-8\" ?><html><body><p>If you&rsquo;re encountering a WordPress error or a White Screen of Death, you should <a href=\"\/support\/boldgrid-cloud-wordpress-product-guide\/how-to-enable-debugging-in-cloud-wordpress\/\">enable WordPress debugging<\/a> and <a href=\"\/support\/boldgrid-cloud-wordpress-product-guide\/how-to-view-the-debug-log-in-cloud-wordpress\/\">examine your error logs.<\/a> Learning more about <a href=\"\/support\/troubleshooting\/php-troubleshooting-for-boldgrid\/\">how to troubleshoot PHP errors<\/a> will also help you recover from these errors and get your website back online.<\/p>\n<p>Once you see errors in your log, follow these steps to interpret the error.<\/p>\n<h2 id=\"anatomy-of-a-wordpress-error-message\">Anatomy of a WordPress Error message<\/h2>\n<p>Most WordPress error messages follow a pattern similar to the following:<\/p>\n<pre><strong>ERROR TYPE<\/strong>: specific error, [the issue causing the error] in file&nbsp;\r\n<strong>\/home\/username\/public_directory\/wp-content\/[plugins | themes]\/[theme-name | plugin-name]\/directory\/filename.php<\/strong> on line&nbsp;<strong>[line number]<\/strong><\/pre>\n<p>Let&rsquo;s break this down bit-by-bit.<\/p>\n<ul>\n<li>\n<pre><strong>ERROR TYPE:\r\n<\/strong><\/pre>\n<p>At the beginning of each error message, you&rsquo;ll see the error type. Common examples include&nbsp;<strong>Fatal error, Parse error,&nbsp;<\/strong>and&nbsp;<strong>Warning.<\/strong><\/p>\n<ul>\n<li>If the error type is a <strong>warning<\/strong>, this can&nbsp;<em>usually<\/em> be disregarded without affecting visitors to your website, but it is still important for the long-term health of your website.<\/li>\n<li>If the error type is a&nbsp;<strong>fatal error&nbsp;<\/strong>or&nbsp;<strong>parse error,<\/strong> it is most likely either completely breaking your website, or causing significant issues for your visitors.<\/li>\n<\/ul>\n<\/li>\n<li>\n<pre>Specific error, [the issue causing the error]<\/pre>\n<p>This part will be important to skilled developers who know the jargon that websites use to communicate errors. It will describe the specific issue, for example, <strong>unexpected T_STRING<\/strong> or&nbsp;<strong>unexpected end of file<\/strong>.<\/p>\n<ul>\n<li>It&rsquo;s OK if you don&rsquo;t understand exactly what this part means. Move on to the next step and you&rsquo;ll be able to get some more information.<\/li>\n<\/ul>\n<\/li>\n<li>\n<pre>in file&nbsp; <strong>\/home\/username\/public_directory\/wp-content\/[plugins | themes]\/[theme-name | plugin-name]\/directory\/filename.php<\/strong> on line&nbsp;<strong>[line number]<\/strong><\/pre>\n<p>This is the most important part for most WordPress web developers. It will give you the name of the Theme or Plugin that is experiencing the error.<\/p>\n<ul>\n<li>Check specifically for the part that comes immediately after&nbsp;<strong>wp-content<\/strong>, because the next two sections will specify if it is a Theme or Plugin, and then its name.<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h2 id=\"next-steps\">Next Steps<\/h2>\n<p>Now that you know which Plugin or Theme is causing WordPress errors on your website, you may want to learn how to <a href=\"\/support\/wordpress-tutorials\/disabling-a-plugin-with-ftp-or-file-manager\/\">disable a plugin via FTP<\/a>, <a href=\"\/support\/wordpress-tutorials\/disabling-a-plugin-with-wp-cli\/\">disable a plugin via WP-CLI<\/a>, <a href=\"\/support\/wordpress-tutorials\/switching-your-theme-via-wp-cli\/\">switch themes with WP-CLI<\/a>, <a href=\"\/support\/wordpress-tutorials\/switching-your-theme-via-phpmyadmin\/\">switch themes using phpMyAdmin<\/a>, or <a href=\"\/support\/wordpress-tutorials\/checking-your-wordpress-core-files-with-wp-cli\/\">check WordPress core files with WP-CLI<\/a>.<\/p>\n<\/body><\/html>\n","protected":false},"excerpt":{"rendered":"<p>If you&rsquo;re encountering a WordPress error or a White Screen of Death, you should enable WordPress debugging and examine your error logs. Learning more about how to troubleshoot PHP errors will also help you recover from these errors and get your website back online. Once you see errors in your log, follow these steps to [&hellip;]<\/p>\n","protected":false},"author":1294,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0,"bgseo_title":"How to Interpret WordPress Errors","bgseo_description":"If you're encountering WordPress errors or a White Screen of Death, you should enable WordPress debugging and examine your error logs. Once you see errors in your log, follow these steps to interpret the error.","bgseo_robots_index":"index","bgseo_robots_follow":"follow","footnotes":""},"categories":[151],"tags":[649],"class_list":["post-17904","post","type-post","status-publish","format-standard","hentry","category-wordpress-tutorials","tag-troubleshooting","experience-level-advanced"],"acf":[],"_links":{"self":[{"href":"https:\/\/www.boldgrid.com\/support\/wp-json\/wp\/v2\/posts\/17904","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.boldgrid.com\/support\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.boldgrid.com\/support\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.boldgrid.com\/support\/wp-json\/wp\/v2\/users\/1294"}],"replies":[{"embeddable":true,"href":"https:\/\/www.boldgrid.com\/support\/wp-json\/wp\/v2\/comments?post=17904"}],"version-history":[{"count":7,"href":"https:\/\/www.boldgrid.com\/support\/wp-json\/wp\/v2\/posts\/17904\/revisions"}],"predecessor-version":[{"id":36934,"href":"https:\/\/www.boldgrid.com\/support\/wp-json\/wp\/v2\/posts\/17904\/revisions\/36934"}],"wp:attachment":[{"href":"https:\/\/www.boldgrid.com\/support\/wp-json\/wp\/v2\/media?parent=17904"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.boldgrid.com\/support\/wp-json\/wp\/v2\/categories?post=17904"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.boldgrid.com\/support\/wp-json\/wp\/v2\/tags?post=17904"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}