Title: Problem after updating plugin
Last modified: August 22, 2016

---

# Problem after updating plugin

 *  Resolved [teachnv](https://wordpress.org/support/users/teachnv/)
 * (@teachnv)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/problem-after-updating-plugin/)
 * After I updated this plugin, my site is no longer working…
 * [https://wordpress.org/plugins/wp-statistics/](https://wordpress.org/plugins/wp-statistics/)

Viewing 15 replies - 1 through 15 (of 26 total)

1 [2](https://wordpress.org/support/topic/problem-after-updating-plugin/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/problem-after-updating-plugin/page/2/?output_format=md)

 *  Thread Starter [teachnv](https://wordpress.org/support/users/teachnv/)
 * (@teachnv)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/problem-after-updating-plugin/#post-5893065)
 * The website I am referring to is nvteach.org
 *  Plugin Contributor [Greg Ross](https://wordpress.org/support/users/gregross/)
 * (@gregross)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/problem-after-updating-plugin/#post-5893088)
 * Check your PHP log for errors.
 * You can remove the plugin by connecting to your site through the backend and 
   deleting the wordpress/wp-content/plugins/wp-statistics
 * Once you have access to your admin area, try re-installing wp statistics.
 *  [maxsupport](https://wordpress.org/support/users/maxsupport/)
 * (@maxsupport)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/problem-after-updating-plugin/#post-5893148)
 * Bonjour,
 * error msg after upadting WP Statisitics plugin :
 * > Warning: preg_replace_callback(): Modifier /e cannot be used with replacement
   > callback in C:\wamp\www\24photos\wp-content\plugins\wp-statistics\wps-install.
   > php on line 223
 *  [ktinka](https://wordpress.org/support/users/ktinka/)
 * (@ktinka)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/problem-after-updating-plugin/#post-5893161)
 * I have the same problem. Deleted a row of wp_statistics tables, but the website
   or admin area are still not back. Can you please help me with this? I am not 
   a tech geek, but just a wordpress user whose blog just broke by your update –
   how can that be? 🙁
 * [http://katrinhuth.de/blog/](http://katrinhuth.de/blog/)
 *  [ktinka](https://wordpress.org/support/users/ktinka/)
 * (@ktinka)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/problem-after-updating-plugin/#post-5893162)
 * Fixed it. Will not reinstall plugin however. Too risky.
 *  Plugin Contributor [Greg Ross](https://wordpress.org/support/users/gregross/)
 * (@gregross)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/problem-after-updating-plugin/#post-5893226)
 * Try removing and re-installing WP Statistics, that warnings shouldn’t cause any
   problems.
 *  [gbonvehi](https://wordpress.org/support/users/gbonvehi/)
 * (@gbonvehi)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/problem-after-updating-plugin/#post-5893239)
 * Hi there,
    Greg, the warning they’re receiving is because of the preg_replace_callback
   line in wps-install.php, line 223: `$final_report = preg_replace_callback('/%(.*?)%/
   ime', function($m) { return $template_vars[$m[1]]; }, $report_content);` you 
   should remove the e modifier (/im instead of /ime) to prevent it.
 * Cheers,
    Guillermo
 *  Plugin Contributor [Greg Ross](https://wordpress.org/support/users/gregross/)
 * (@gregross)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/problem-after-updating-plugin/#post-5893240)
 * Thanks gbonvehi, I’ve already committed that change for the next release, but
   it looks like they’re having a different problem was well. The above change will
   fix the warning, but the warning won’t stop the site from being displayed.
 *  [jrgn](https://wordpress.org/support/users/jrgn/)
 * (@jrgn)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/problem-after-updating-plugin/#post-5893242)
 * warning, same thing here…better make a hotfix or you will lose users
 *  [maxsupport](https://wordpress.org/support/users/maxsupport/)
 * (@maxsupport)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/problem-after-updating-plugin/#post-5893245)
 * [@greg](https://wordpress.org/support/users/greg/), indeed the warning didn’t
   alter site displaying.
    MSg came only right after updating.
 *  Plugin Contributor [Greg Ross](https://wordpress.org/support/users/gregross/)
 * (@gregross)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/problem-after-updating-plugin/#post-5893246)
 * jrgn: can you check your PHP log for errors?
 * Anyone who is having this issue please do the same, look for anything with a “
   Fatal Error” in it.
 * I’ve been unable to reproduce the issue and it seems to be limited to very few
   users so it is probably something specific to the WordPress installs you have.
 *  [karlharshman](https://wordpress.org/support/users/karlharshman/)
 * (@karlharshman)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/problem-after-updating-plugin/#post-5893267)
 * Here is the error message I got. WP Statistics Version = 9.0
 * Fatal error: Call to a member function get_option() on a non-object in $HOME/
   wp-content/plugins/wp-statistics/wp-statistics.php on line 25
 *  [WraithKenny](https://wordpress.org/support/users/wraithkenny/)
 * (@wraithkenny)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/problem-after-updating-plugin/#post-5893268)
 * `Fatal error: Call to a member function get_option() on a non-object in $HOME/
   wp-content/plugins/wp-statistics/wp-statistics.php on line 25`
 * Same…whitescreen’d my site.
 *  [WraithKenny](https://wordpress.org/support/users/wraithkenny/)
 * (@wraithkenny)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/problem-after-updating-plugin/#post-5893269)
 * (If you rename the plugin file, and reload the site/admin, the plugin will deactivate,
   and your site will come back.)
 *  [gbonvehi](https://wordpress.org/support/users/gbonvehi/)
 * (@gbonvehi)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/problem-after-updating-plugin/#post-5893271)
 * [@greg](https://wordpress.org/support/users/greg/) I think that load_plugin_textdomain
   should not be hooked into init but plugins_loaded according to [https://codex.wordpress.org/Function_Reference/load_plugin_textdomain](https://codex.wordpress.org/Function_Reference/load_plugin_textdomain)
 * Ken or karlharshman, try replacing in wp-statistics.php line 33 where it says
   `
   add_action('init', 'wp_statistics_init');` with `add_action('plugins_loaded','
   wp_statistics_init');`
 * Cheers,
    Guillermo
 * PS: This is untested as I’m not having the problem neither.

Viewing 15 replies - 1 through 15 (of 26 total)

1 [2](https://wordpress.org/support/topic/problem-after-updating-plugin/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/problem-after-updating-plugin/page/2/?output_format=md)

The topic ‘Problem after updating plugin’ 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/)

 * 26 replies
 * 11 participants
 * Last reply from: [Greg Ross](https://wordpress.org/support/users/gregross/)
 * Last activity: [11 years, 2 months ago](https://wordpress.org/support/topic/problem-after-updating-plugin/page/2/#post-5893331)
 * Status: resolved