{"id":37105,"date":"2024-12-20T05:45:28","date_gmt":"2024-12-20T05:45:28","guid":{"rendered":"https:\/\/www.wpstaq.com\/?post_type=knowledgebase&#038;p=37105"},"modified":"2024-12-20T20:10:51","modified_gmt":"2024-12-20T20:10:51","slug":"how-to-use-staq-debug-for-troubleshooting-issues","status":"publish","type":"knowledgebase","link":"https:\/\/www.wpstaq.com\/gb\/knowledgebase\/how-to-use-staq-debug-for-troubleshooting-issues\/","title":{"rendered":"How to Use Staq Debug for Troubleshooting Issues"},"content":{"rendered":"<p>If you&#8217;re encountering issues on your WordPress site, such as:<\/p>\n<ul>\n<li>Critical errors<\/li>\n<li>Server 500 errors<\/li>\n<li>Page builders (like Elementor) not functioning correctly, e.g., the widget panel keeps spinning<\/li>\n<li>Other unexpected behavior like plugin conflicts or pages failing to load<\/li>\n<\/ul>\n<p>Staq Debug is a simple and effective tool to identify the root cause of the problem. Below is a step-by-step guide to using Staq Debug for troubleshooting.<\/p>\n<h2>Steps to Use Staq Debug<\/h2>\n<h3>Step 1: Open the Staq Debug Tool<\/h3>\n<p>1. Log in to your Staq account and navigate to the site in question.<br \/>\n2. Open the site\u2019s <strong>Staq Panel<\/strong>.<br \/>\n3. Click on <strong>Debug<\/strong><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-34462\" src=\"https:\/\/www.wpstaq.com\/wp-content\/uploads\/2023\/07\/Staq-Debug.png\" alt=\"\" width=\"1229\" height=\"542\" srcset=\"https:\/\/www.wpstaq.com\/wp-content\/uploads\/2023\/07\/Staq-Debug.png 1229w, https:\/\/www.wpstaq.com\/wp-content\/uploads\/2023\/07\/Staq-Debug-300x132.png 300w, https:\/\/www.wpstaq.com\/wp-content\/uploads\/2023\/07\/Staq-Debug-1024x452.png 1024w, https:\/\/www.wpstaq.com\/wp-content\/uploads\/2023\/07\/Staq-Debug-768x339.png 768w\" sizes=\"auto, (max-width: 1229px) 100vw, 1229px\" \/><\/p>\n<p>then enable the <strong>WP_DEBUG<\/strong> feature by clicking <strong>Enable WP_Debug<\/strong>.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-36927\" src=\"https:\/\/www.wpstaq.com\/wp-content\/uploads\/2024\/12\/enable-debug.png\" alt=\"\" width=\"762\" height=\"233\" srcset=\"https:\/\/www.wpstaq.com\/wp-content\/uploads\/2024\/12\/enable-debug.png 762w, https:\/\/www.wpstaq.com\/wp-content\/uploads\/2024\/12\/enable-debug-300x92.png 300w\" sizes=\"auto, (max-width: 762px) 100vw, 762px\" \/><\/p>\n<h3>Step 2: Use Your Browser Console<\/h3>\n<p>1. Open your browser (e.g., Chrome) and navigate to the page where the issue is occurring.<br \/>\n2. Right-click anywhere on the page and select <strong>Inspect<\/strong>.<br \/>\n3. Go to the <strong>Console<\/strong> tab and look for any errors, such as 500 errors or JavaScript-related issues.<br \/>\n4. Make a note of these errors as they often provide hints about the problem.<\/p>\n<p>&nbsp;<\/p>\n<h3>Step 3: View Debug Logs<\/h3>\n<p>1. Go to the page that has the issue i.e. critical error, widget forever spinning etc and refresh that page while the debug is now enabled<br \/>\n2. Go back to the Staq Debug section in the Staq Panel.<br \/>\n3. Click on the <strong>WordPress<\/strong> tab and hit the <strong>Refresh<\/strong> button.<br \/>\n4. Review the debug logs for error messages or warnings. These logs can reveal issues with plugins, themes, or database queries.<\/p>\n<p>&#8212;<\/p>\n<h2>Example Scenario: Elementor Loading Issue<\/h2>\n<p>Let\u2019s consider an example where Elementor widget panel keeps spinning. The loading icon gets stuck, making the page builder not accessible. To debug this, follow the steps below:<\/p>\n<p>1. Enable WP_Debug in the Staq Debug tool as described above.<br \/>\n2. Open a page in Elementor and simultaneously open the browser\u2019s Inspect Console.<br \/>\n3. Note the 500 error appearing in the Console.<br \/>\n4. Go back to the Staq Debug tool, refresh the logs, and look for errors related to Elementor or associated plugins.<br \/>\n5. In this case, the debug logs should show a plugin that is conflicting. <b>When in doubt, copy the error code and place into ChatGPT and ask it to explain it to you in plain English<\/b><br \/>\n6. Disable the conflicting plugin.<\/p>\n<h2>Another Example: Memory<\/h2>\n<p>It might not be a conflicting plugin issue but a memory issue. Staq Debug will tell you if it&#8217;s a memory issue. If you need to scale memory up, see this knowledge base article on <a href=\"https:\/\/www.wpstaq.com\/knowledgebase\/increasing-server-memory\/\">how to increase memory resources<\/a>.<\/p>\n<h2>Disable WP_Debug<\/h2>\n<p>Once you\u2019ve identified and resolved the issue, return to the Staq Panel and disable WP_Debug. Leaving debugging enabled for extended periods may slow down your site.<\/p>\n<h2>Additional Resources for Advanced Debugging<\/h2>\n<p>For more in-depth troubleshooting, consider the following guides:<\/p>\n<ul>\n<li><a href=\"https:\/\/www.wpstaq.com\/knowledgebase\/how-to-use-query-monitor-plugin\/\" target=\"_blank\" rel=\"noopener\">How to Use Query Monitor Plugin<\/a><\/li>\n<li><a href=\"https:\/\/www.wpstaq.com\/knowledgebase\/how-to-use-staq-query-tool\/\" target=\"_blank\" rel=\"noopener\">How to Use Staq Query Tool to Diagnose Database Queries<\/a><\/li>\n<\/ul>\n<h2>Important Notes<\/h2>\n<p>&#8211; Avoid adding custom debug snippets into your child theme. Instead, always use Staq Debug for better integration with server-side logging.<br \/>\n&#8211; Remember to clear any caching (e.g., via Staq Cache or other caching plugins) after making changes to ensure the issue is fully resolved.<\/p>\n<h2>Conclusion<\/h2>\n<p>Staq Debug is a powerful tool that simplifies the debugging process. By combining it with browser developer tools and the provided additional resources, you can quickly identify and resolve most issues on your site. Always disable WP_Debug after completing your debugging session to optimize site performance.<\/p>\n","protected":false},"featured_media":0,"parent":0,"template":"","class_list":["post-37105","knowledgebase","type-knowledgebase","status-publish","hentry","categories-debug-tool"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.8 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to Use Staq Debug for Troubleshooting Issues - Managed Hosting Platform for WordPress<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wpstaq.com\/knowledgebase\/how-to-use-staq-debug-for-troubleshooting-issues\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Use Staq Debug for Troubleshooting Issues - Managed Hosting Platform for WordPress\" \/>\n<meta property=\"og:description\" content=\"If you&#8217;re encountering issues on your WordPress site, such as: Critical errors Server 500 errors Page builders (like Elementor) not functioning correctly, e.g., the widget panel keeps spinning Other unexpected behavior like plugin conflicts or pages failing to load Staq Debug is a simple and effective tool to identify the root cause of the problem.&hellip;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wpstaq.com\/knowledgebase\/how-to-use-staq-debug-for-troubleshooting-issues\/\" \/>\n<meta property=\"og:site_name\" content=\"Managed Hosting Platform for WordPress\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/staqhosting\/\" \/>\n<meta property=\"article:modified_time\" content=\"2024-12-20T20:10:51+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wpstaq.com\/wp-content\/uploads\/2023\/07\/Staq-Debug.png\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.wpstaq.com\\\/knowledgebase\\\/how-to-use-staq-debug-for-troubleshooting-issues\\\/\",\"url\":\"https:\\\/\\\/www.wpstaq.com\\\/knowledgebase\\\/how-to-use-staq-debug-for-troubleshooting-issues\\\/\",\"name\":\"How to Use Staq Debug for Troubleshooting Issues - Managed Hosting Platform for WordPress\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.wpstaq.com\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.wpstaq.com\\\/knowledgebase\\\/how-to-use-staq-debug-for-troubleshooting-issues\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.wpstaq.com\\\/knowledgebase\\\/how-to-use-staq-debug-for-troubleshooting-issues\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.wpstaq.com\\\/wp-content\\\/uploads\\\/2023\\\/07\\\/Staq-Debug.png\",\"datePublished\":\"2024-12-20T05:45:28+00:00\",\"dateModified\":\"2024-12-20T20:10:51+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.wpstaq.com\\\/knowledgebase\\\/how-to-use-staq-debug-for-troubleshooting-issues\\\/#breadcrumb\"},\"inLanguage\":\"en-gb\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.wpstaq.com\\\/knowledgebase\\\/how-to-use-staq-debug-for-troubleshooting-issues\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-gb\",\"@id\":\"https:\\\/\\\/www.wpstaq.com\\\/knowledgebase\\\/how-to-use-staq-debug-for-troubleshooting-issues\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.wpstaq.com\\\/wp-content\\\/uploads\\\/2023\\\/07\\\/Staq-Debug.png\",\"contentUrl\":\"https:\\\/\\\/www.wpstaq.com\\\/wp-content\\\/uploads\\\/2023\\\/07\\\/Staq-Debug.png\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.wpstaq.com\\\/knowledgebase\\\/how-to-use-staq-debug-for-troubleshooting-issues\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.wpstaq.com\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Use Staq Debug for Troubleshooting Issues\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.wpstaq.com\\\/#website\",\"url\":\"https:\\\/\\\/www.wpstaq.com\\\/\",\"name\":\"Managed Hosting Platform for WordPress\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.wpstaq.com\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.wpstaq.com\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-gb\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.wpstaq.com\\\/#organization\",\"name\":\"Staq\",\"alternateName\":\"WPStaq\",\"url\":\"https:\\\/\\\/www.wpstaq.com\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-gb\",\"@id\":\"https:\\\/\\\/www.wpstaq.com\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.wpstaq.com\\\/wp-content\\\/uploads\\\/2023\\\/05\\\/cropped-LogoNoText.png\",\"contentUrl\":\"https:\\\/\\\/www.wpstaq.com\\\/wp-content\\\/uploads\\\/2023\\\/05\\\/cropped-LogoNoText.png\",\"width\":512,\"height\":512,\"caption\":\"Staq\"},\"image\":{\"@id\":\"https:\\\/\\\/www.wpstaq.com\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/staqhosting\\\/\",\"https:\\\/\\\/www.linkedin.com\\\/company\\\/wpstaq\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Use Staq Debug for Troubleshooting Issues - Managed Hosting Platform for WordPress","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wpstaq.com\/knowledgebase\/how-to-use-staq-debug-for-troubleshooting-issues\/","og_locale":"en_US","og_type":"article","og_title":"How to Use Staq Debug for Troubleshooting Issues - Managed Hosting Platform for WordPress","og_description":"If you&#8217;re encountering issues on your WordPress site, such as: Critical errors Server 500 errors Page builders (like Elementor) not functioning correctly, e.g., the widget panel keeps spinning Other unexpected behavior like plugin conflicts or pages failing to load Staq Debug is a simple and effective tool to identify the root cause of the problem.&hellip;","og_url":"https:\/\/www.wpstaq.com\/knowledgebase\/how-to-use-staq-debug-for-troubleshooting-issues\/","og_site_name":"Managed Hosting Platform for WordPress","article_publisher":"https:\/\/www.facebook.com\/staqhosting\/","article_modified_time":"2024-12-20T20:10:51+00:00","og_image":[{"url":"https:\/\/www.wpstaq.com\/wp-content\/uploads\/2023\/07\/Staq-Debug.png","type":"","width":"","height":""}],"twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wpstaq.com\/knowledgebase\/how-to-use-staq-debug-for-troubleshooting-issues\/","url":"https:\/\/www.wpstaq.com\/knowledgebase\/how-to-use-staq-debug-for-troubleshooting-issues\/","name":"How to Use Staq Debug for Troubleshooting Issues - Managed Hosting Platform for WordPress","isPartOf":{"@id":"https:\/\/www.wpstaq.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.wpstaq.com\/knowledgebase\/how-to-use-staq-debug-for-troubleshooting-issues\/#primaryimage"},"image":{"@id":"https:\/\/www.wpstaq.com\/knowledgebase\/how-to-use-staq-debug-for-troubleshooting-issues\/#primaryimage"},"thumbnailUrl":"https:\/\/www.wpstaq.com\/wp-content\/uploads\/2023\/07\/Staq-Debug.png","datePublished":"2024-12-20T05:45:28+00:00","dateModified":"2024-12-20T20:10:51+00:00","breadcrumb":{"@id":"https:\/\/www.wpstaq.com\/knowledgebase\/how-to-use-staq-debug-for-troubleshooting-issues\/#breadcrumb"},"inLanguage":"en-gb","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wpstaq.com\/knowledgebase\/how-to-use-staq-debug-for-troubleshooting-issues\/"]}]},{"@type":"ImageObject","inLanguage":"en-gb","@id":"https:\/\/www.wpstaq.com\/knowledgebase\/how-to-use-staq-debug-for-troubleshooting-issues\/#primaryimage","url":"https:\/\/www.wpstaq.com\/wp-content\/uploads\/2023\/07\/Staq-Debug.png","contentUrl":"https:\/\/www.wpstaq.com\/wp-content\/uploads\/2023\/07\/Staq-Debug.png"},{"@type":"BreadcrumbList","@id":"https:\/\/www.wpstaq.com\/knowledgebase\/how-to-use-staq-debug-for-troubleshooting-issues\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.wpstaq.com\/"},{"@type":"ListItem","position":2,"name":"How to Use Staq Debug for Troubleshooting Issues"}]},{"@type":"WebSite","@id":"https:\/\/www.wpstaq.com\/#website","url":"https:\/\/www.wpstaq.com\/","name":"Managed Hosting Platform for WordPress","description":"","publisher":{"@id":"https:\/\/www.wpstaq.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wpstaq.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-gb"},{"@type":"Organization","@id":"https:\/\/www.wpstaq.com\/#organization","name":"Staq","alternateName":"WPStaq","url":"https:\/\/www.wpstaq.com\/","logo":{"@type":"ImageObject","inLanguage":"en-gb","@id":"https:\/\/www.wpstaq.com\/#\/schema\/logo\/image\/","url":"https:\/\/www.wpstaq.com\/wp-content\/uploads\/2023\/05\/cropped-LogoNoText.png","contentUrl":"https:\/\/www.wpstaq.com\/wp-content\/uploads\/2023\/05\/cropped-LogoNoText.png","width":512,"height":512,"caption":"Staq"},"image":{"@id":"https:\/\/www.wpstaq.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/staqhosting\/","https:\/\/www.linkedin.com\/company\/wpstaq"]}]}},"_links":{"self":[{"href":"https:\/\/www.wpstaq.com\/gb\/wp-json\/wp\/v2\/knowledgebase\/37105","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wpstaq.com\/gb\/wp-json\/wp\/v2\/knowledgebase"}],"about":[{"href":"https:\/\/www.wpstaq.com\/gb\/wp-json\/wp\/v2\/types\/knowledgebase"}],"wp:attachment":[{"href":"https:\/\/www.wpstaq.com\/gb\/wp-json\/wp\/v2\/media?parent=37105"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}