{"id":5780141,"date":"2015-02-12T10:14:30","date_gmt":"2015-02-12T10:14:30","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/how-to-debug-issues-after-updates\/"},"modified":"2016-08-22T16:27:27","modified_gmt":"2016-08-22T16:27:27","slug":"how-to-debug-issues-after-updates","status":"closed","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/how-to-debug-issues-after-updates\/","title":{"rendered":"How To Debug Issues After Updates"},"content":{"rendered":"<p><strong>Before You Upgrade<\/strong><br \/>\nFirst and foremost, we always recommend testing updates in a staging environment prior to updating a live site, especially if running themes and plugins from 3rd parties. http:\/\/docs.woothemes.com\/document\/testing-updates-using-a-staging-environment\/<\/p>\n<p><strong>Debugging a <em>White Screen<\/em> or<em> Error 500<\/em><\/strong><br \/>\nIf you find a white screen or error 500 that usually means something has triggered a PHP error, but errors are hidden on your server. To find out the cause of the error you have two choices:<\/p>\n<ol>\n<li>Look at your server error logs and find the latest &#8216;fatal error&#8217;<\/li>\n<li>Enable <a href=\"https:\/\/codex.wordpress.org\/WP_DEBUG\">WP_DEBUG<\/a> mode and view the page again<\/li>\n<\/ol>\n<p>Enabling WP_DEBUG involves editing your wp-config.php file and changing, or adding if its not there:<\/p>\n<pre><code>define( &#039;WP_DEBUG&#039;, true );<\/code><\/pre>\n<p>When this is done, a more useful error message should be shown. Most of the time this contains the name of the plugin and the line number causing the issue allowing you to act.<\/p>\n<p><strong>Debugging Functionality Issues<\/strong><br \/>\nIf something is not working after an update, a likely cause is an outdated or non compatible plugin or theme. <strong>The best thing to do is to narrow down the cause.<\/strong> To do this you can temporarily:<\/p>\n<ul>\n<li>Switch to a default WordPress theme (Twenty Twelve) and test again<\/li>\n<li>Disable all other plugins except for WooCommerce itself, retest, and re-activate plugins until the issue occurs. This will help you find the culprit.<\/li>\n<\/ul>\n<p><strong>Memory Issues<\/strong><br \/>\nIf after doing the above steps you find that you are hitting the memory limit, you can increase WordPress&#8217; limit. <a href=\"http:\/\/docs.woothemes.com\/document\/increasing-the-wordpress-memory-limit\/\">See here<\/a>.<\/p>\n<p><strong>For More Help<\/strong><br \/>\nSee our <a href=\"http:\/\/docs.woothemes.com\/document\/woocommerce-self-service-guide\/\">self-service guide here<\/a>.<\/p>\n<p>https:\/\/wordpress.org\/plugins\/woocommerce\/<\/p>\n","protected":false},"template":"","class_list":["post-5780141","topic","type-topic","status-closed","hentry","topic-tag-error-500","topic-tag-fatal","topic-tag-white-screen"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/5780141","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/5780141\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=5780141"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}