Title: PHP Notice: Use of undefined constant WP_ROOT in Cli.php
Last modified: April 28, 2017

---

# PHP Notice: Use of undefined constant WP_ROOT in Cli.php

 *  [Rajesh Vasani](https://wordpress.org/support/users/vasanirajesh11/)
 * (@vasanirajesh11)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/wp_root-is-not-define-in-cli-php/)
 * when i am running cdn purge command getting this error
 * wp total-cache cdn_purge content/wp-content/themes/CurejoyMagazinly/js/cjadtagmanager.
   js –debug
 * PHP Notice: Use of undefined constant WP_ROOT – assumed ‘WP_ROOT’ in /var/www/
   html/content/wp-content/plugins/w3-total-cache/Cli.php on line 324
    -  This topic was modified 9 years, 1 month ago by [Rajesh Vasani](https://wordpress.org/support/users/vasanirajesh11/).

The topic ‘PHP Notice: Use of undefined constant WP_ROOT in Cli.php’ 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/)

 * 0 replies
 * 1 participant
 * Last reply from: [Rajesh Vasani](https://wordpress.org/support/users/vasanirajesh11/)
 * Last activity: [9 years, 1 month ago](https://wordpress.org/support/topic/wp_root-is-not-define-in-cli-php/)
 * Status: not resolved