Title: Debug breaks site
Last modified: November 27, 2019

---

# Debug breaks site

 *  Resolved [MarkJ](https://wordpress.org/support/users/forusak/)
 * (@forusak)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/debug-breaks-site/)
 * I just tried debuging for a while, and when I turned it off the site was working
   only until I hit reload or hard reload. After that my hosting shows the error
   page. Noncached site (when logged in) is still working. I turned debuging back
   on and everything is working, but I can’t keep it on…

Viewing 5 replies - 1 through 5 (of 5 total)

 *  Plugin Contributor [Marko Vasiljevic](https://wordpress.org/support/users/vmarko/)
 * (@vmarko)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/debug-breaks-site/#post-12184498)
 * Hello [@forusak](https://wordpress.org/support/users/forusak/)
 * I am sorry about the issue you are experiencing with debugging and I am happy
   to assist you with this.
    Have added `define( 'WP_DEBUG', false );` to your wp-
   config.php? Also make sure to add `define( 'WP_DEBUG_DISPLAY', false );` and 
   purge all cache as there is a possibility that the page was cached after you 
   enabled debugging. I hope this helps!
 *  Thread Starter [MarkJ](https://wordpress.org/support/users/forusak/)
 * (@forusak)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/debug-breaks-site/#post-12187012)
 * Debug was true, now is all false and no difference. For nonlogged visitors it
   gives error.
 * > 500 Internal Server Error
   >  The server encountered an internal error and was
   > unable to complete your request. Either the website is misconfigured or there
   > was an error in a CGI script.
 * I have cleared cache many times, turned off cloudflare.
    Site is only working
   when I turn on page caching + its debuging or when I deactivate plugin. Other
   combinations doesn’t work.
 *  Plugin Contributor [Marko Vasiljevic](https://wordpress.org/support/users/vmarko/)
 * (@vmarko)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/debug-breaks-site/#post-12187061)
 * Hello [@forusak](https://wordpress.org/support/users/forusak/)
 * Can you please completely remove and re-install W3 Total Cache with following
   instructions:
 * 1. Purge Cache
    2. Deactivate and Delete Plugin 3. Check .htaccess File (make
   backup) W3TC will create many directives in the .htaccess file to control caching
   behavior. Each section will start and end with comments like “#BEGIN W3TC Page
   Cache core” and “#END W3TC Page Cache core”. Ensure that no residual entries 
   are leftover in your .htaccess file after deleting the plugin. 4. Delete wp-content
   files and folders – cache folder – w3tc-config folder – object-cache.php (if 
   exists) – advanced-cache.php (if exists) – dbcache.php (if exists) – upgrade 
   folder – delete the wp-content/plugins/w3-total-cache folder (if exists) 5. Delete
   Cached Files from CDN (if using CDN) Besides deleting all the relevant files,
   if you use CDN then ensure to purge the cached content from your CDN. This is
   necessary when you enabled the minify option in W3TC settings. You should delete
   the minified and combined scripts and CSS files from your CDN server to avoid
   the site breaking on the browser.
 * 6. Go to your wp dashboard and re-install W3 Total Cache
    Thank you!
 *  Thread Starter [MarkJ](https://wordpress.org/support/users/forusak/)
 * (@forusak)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/debug-breaks-site/#post-12189034)
 * Fixed.
    I tried turn on debuging again and turn off and no problem. Thanks for
   help!
 *  Plugin Contributor [Marko Vasiljevic](https://wordpress.org/support/users/vmarko/)
 * (@vmarko)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/debug-breaks-site/#post-12196540)
 * Hello [@forusak](https://wordpress.org/support/users/forusak/)
 * You are most welcome!
    We would really appreciate it if you could take a minute
   and post a review [here](https://wordpress.org/support/plugin/w3-total-cache/reviews/).
   This will help us to continue offering a top-notch product to users. Thank you
   for your help!

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Debug breaks site’ is closed to new replies.

 * ![](https://ps.w.org/w3-total-cache/assets/icon-256x256.png?rev=1041806)
 * [W3 Total Cache](https://wordpress.org/plugins/w3-total-cache/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/w3-total-cache/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/w3-total-cache/)
 * [Active Topics](https://wordpress.org/support/plugin/w3-total-cache/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/w3-total-cache/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/w3-total-cache/reviews/)

## Tags

 * [breaks](https://wordpress.org/support/topic-tag/breaks/)
 * [site](https://wordpress.org/support/topic-tag/site/)

 * 5 replies
 * 2 participants
 * Last reply from: [Marko Vasiljevic](https://wordpress.org/support/users/vmarko/)
 * Last activity: [6 years, 6 months ago](https://wordpress.org/support/topic/debug-breaks-site/#post-12196540)
 * Status: resolved