Title: [Plugin: WP Super Cache] PHP Fatal error:  Call to undefined function  get_supercache_dir()
Last modified: August 20, 2016

---

# [Plugin: WP Super Cache] PHP Fatal error: Call to undefined function get_supercache_dir()

 *  [actionPackedAndy](https://wordpress.org/support/users/actionpackedandy/)
 * (@actionpackedandy)
 * [14 years, 1 month ago](https://wordpress.org/support/topic/plugin-wp-super-cache-php-fatal-error-call-to-undefined-function-get_supercache_dir/)
 * Anybody know how to fix this? It’s calling to this line of code
    `$path = get_supercache_dir().
   preg_replace( '/:.*$/', '', $_GET[ 'path' ] );`
 * It seems to relate to when I try to delete the cache on a single page.
 * [http://wordpress.org/extend/plugins/wp-super-cache/](http://wordpress.org/extend/plugins/wp-super-cache/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [Donncha O Caoimh (a11n)](https://wordpress.org/support/users/donncha/)
 * (@donncha)
 * [14 years, 1 month ago](https://wordpress.org/support/topic/plugin-wp-super-cache-php-fatal-error-call-to-undefined-function-get_supercache_dir/#post-2933883)
 * Have you tried the development version?
 * [http://ocaoimh.ie/y/2o](http://ocaoimh.ie/y/2o)

Viewing 1 replies (of 1 total)

The topic ‘[Plugin: WP Super Cache] PHP Fatal error: Call to undefined function 
get_supercache_dir()’ is closed to new replies.

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

 * 1 reply
 * 2 participants
 * Last reply from: [Donncha O Caoimh (a11n)](https://wordpress.org/support/users/donncha/)
 * Last activity: [14 years, 1 month ago](https://wordpress.org/support/topic/plugin-wp-super-cache-php-fatal-error-call-to-undefined-function-get_supercache_dir/#post-2933883)
 * Status: not resolved