Title: Error in WP Statistics after update: cannot write into cache
Last modified: November 9, 2018

---

# Error in WP Statistics after update: cannot write into cache

 *  Resolved [hasev](https://wordpress.org/support/users/hasev/)
 * (@hasev)
 * [7 years, 7 months ago](https://wordpress.org/support/topic/error-in-wp-statistics-after-update-cannot-write-into-cache/)
 * After updating WordPress to 4.9.8 and WP Statistics to 12.4.3, the plugin causes
   the website to go completely blank. In a debugging mode I see the error message
   below. Note that I have not changed any permissions of the wp-content/uploads/
   wp-statistics directory, and it did work with the previous version. What can 
   I do?
 * Here is the error message:
    Fatal error: Uncaught exception ‘WurflCache\Adapter\
   Exception’ with message ‘Its not possible to write to the given cache path “/
   var/www/bayespop/htdocs/wp-content/uploads/wp-statistics”‘ in /var/www/bayespop/
   htdocs/wp-content/plugins/wp-statistics/includes/vendor/mimmi20/wurflcache/src/
   Adapter/File.php:231 Stack trace: #0 /var/www/bayespop/htdocs/wp-content/plugins/
   wp-statistics/includes/vendor/mimmi20/wurflcache/src/Adapter/File.php(190): WurflCache\
   Adapter\File->createRootDirIfNotExist() #1 /var/www/bayespop/htdocs/wp-content/
   plugins/wp-statistics/includes/vendor/mimmi20/wurflcache/src/Adapter/File.php(
   86): WurflCache\Adapter\File->initialize(Array) #2 /var/www/bayespop/htdocs/wp-
   content/plugins/wp-statistics/includes/classes/class-wp-statistics-hits.php(125):
   WurflCache\Adapter\File->__construct(Array) #3 /var/www/bayespop/htdocs/wp-content/
   plugins/wp-statistics/includes/classes/class-wp-statistics-geo-ip-hits.php(13):
   WP_Statistics_Hits->__construct() #4 /var/www/bayespop/htdocs/wp-content/plugins/
   wp-statistics/inclu in /var/www/bayespop/htdocs/wp-content/plugins/wp-statistics/
   includes/vendor/mimmi20/wurflcache/src/Adapter/File.php on line 231
 * Note that currently the plugin is deactivated.
    -  This topic was modified 7 years, 7 months ago by [hasev](https://wordpress.org/support/users/hasev/).
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Ferror-in-wp-statistics-after-update-cannot-write-into-cache%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Author [Mostafa Soufi](https://wordpress.org/support/users/mostafas1990/)
 * (@mostafas1990)
 * [7 years, 7 months ago](https://wordpress.org/support/topic/error-in-wp-statistics-after-update-cannot-write-into-cache/#post-10865948)
 * Hi,
 * This issue fixed in the [beta version](https://github.com/wp-statistics/wp-statistics/archive/development.zip)
   and will be released soon.
 *  [paula007](https://wordpress.org/support/users/paula007/)
 * (@paula007)
 * [7 years, 7 months ago](https://wordpress.org/support/topic/error-in-wp-statistics-after-update-cannot-write-into-cache/#post-10868698)
 * Hi, I have the same problem. I can´t find the plugin in the ftp and the site 
   is white with this note:
 * Fatal error: Uncaught Error: Call to undefined function getallheaders() in /www/
   htdocs/w012bf00/wp-content/plugins/wp-statistics/includes/classes/class-wp-statistics-
   rest.php:114 Stack trace: #0 /www/htdocs/w012bf00/wp-content/plugins/wp-statistics/
   includes/classes/class-wp-statistics.php(818): WP_Statistics_Rest::is_rest() #
   1 /www/htdocs/w012bf00/wp-content/plugins/wp-statistics/includes/classes/class-
   wp-statistics.php(191): WP_Statistics->get_IP() #2 /www/htdocs/w012bf00/wp-content/
   plugins/wp-statistics/wp-statistics.php(18): WP_Statistics->run() #3 /www/htdocs/
   w012bf00/wp-settings.php(305): include_once(‘/www/htdocs/w01…’) #4 /www/htdocs/
   w012bf00/wp-config.php(90): require_once(‘/www/htdocs/w01…’) #5 /www/htdocs/w012bf00/
   wp-load.php(37): require_once(‘/www/htdocs/w01…’) #6 /www/htdocs/w012bf00/wp-
   admin/admin.php(31): require_once(‘/www/htdocs/w01…’) #7 /www/htdocs/w012bf00/
   wp-admin/plugins.php(10): require_once(‘/www/htdocs/w01…’) #8 {main} thrown in/
   www/htdocs/w012bf00/wp-content/plugins/wp-statistics/includes/classes/class-wp-
   statistics-rest.php on line 114
 *  [paula007](https://wordpress.org/support/users/paula007/)
 * (@paula007)
 * [7 years, 7 months ago](https://wordpress.org/support/topic/error-in-wp-statistics-after-update-cannot-write-into-cache/#post-10868780)
 * Ok, solved the problem and deactivated the plugin.
 *  [dutadaniel](https://wordpress.org/support/users/dutadaniel/)
 * (@dutadaniel)
 * [7 years, 7 months ago](https://wordpress.org/support/topic/error-in-wp-statistics-after-update-cannot-write-into-cache/#post-10868838)
 * Why i can’t instal beta plugin?
 *  Plugin Author [Mostafa Soufi](https://wordpress.org/support/users/mostafas1990/)
 * (@mostafas1990)
 * [7 years, 7 months ago](https://wordpress.org/support/topic/error-in-wp-statistics-after-update-cannot-write-into-cache/#post-10868870)
 * This problem will be resolved in tomorrow and the new version will be released.

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

The topic ‘Error in WP Statistics after update: cannot write into cache’ is closed
to new replies.

 * ![](https://ps.w.org/wp-statistics/assets/icon.svg?rev=3081064)
 * [WP Statistics – Simple, privacy-friendly Google Analytics alternative](https://wordpress.org/plugins/wp-statistics/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-statistics/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-statistics/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-statistics/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-statistics/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-statistics/reviews/)

 * 5 replies
 * 4 participants
 * Last reply from: [Mostafa Soufi](https://wordpress.org/support/users/mostafas1990/)
 * Last activity: [7 years, 7 months ago](https://wordpress.org/support/topic/error-in-wp-statistics-after-update-cannot-write-into-cache/#post-10868870)
 * Status: resolved