Title: Plugin includes debug.php which can trigger custom debug code
Last modified: May 9, 2019

---

# Plugin includes debug.php which can trigger custom debug code

 *  [kirrus](https://wordpress.org/support/users/kirrus/)
 * (@kirrus)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/plugin-includes-debug-php-which-can-trigger-custom-debug-code/)
 * Line 1006 of varnish-http-purge.php has;
    `require_once 'debug.php';`
 * If a site has an existent debug.php in the webroot, that gets included by the
   plugin, and it initializes the plugin without all the pluggable functions being
   available. It broke a prod site when we installed this plugin! The devs were 
   using it to isolate a problem in the site at the time.

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

 *  Plugin Contributor [Ipstenu (Mika Epstein)](https://wordpress.org/support/users/ipstenu/)
 * (@ipstenu)
 * 🏳️‍🌈 Advisor and Activist
 * [7 years, 1 month ago](https://wordpress.org/support/topic/plugin-includes-debug-php-which-can-trigger-custom-debug-code/#post-11514810)
 * That shouldn’t happen. By default, paths are relative to the file that the request
   originated from. What version of PHP are you running? It’s possibly mis-configured.
 *  Thread Starter [kirrus](https://wordpress.org/support/users/kirrus/)
 * (@kirrus)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/plugin-includes-debug-php-which-can-trigger-custom-debug-code/#post-11516783)
 * 7.3, running almost-default config from Ondřej Surý’s repo (increased upload,
   post body and memory limits)

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

The topic ‘Plugin includes debug.php which can trigger custom debug code’ is closed
to new replies.

 * ![](https://ps.w.org/varnish-http-purge/assets/icon-256x256.png?rev=3027185)
 * [Proxy Cache Purge](https://wordpress.org/plugins/varnish-http-purge/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/varnish-http-purge/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/varnish-http-purge/)
 * [Active Topics](https://wordpress.org/support/plugin/varnish-http-purge/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/varnish-http-purge/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/varnish-http-purge/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [kirrus](https://wordpress.org/support/users/kirrus/)
 * Last activity: [7 years, 1 month ago](https://wordpress.org/support/topic/plugin-includes-debug-php-which-can-trigger-custom-debug-code/#post-11516783)
 * Status: not resolved