Title: Error on multi-site
Last modified: August 22, 2016

---

# Error on multi-site

 *  Resolved [maxcsa](https://wordpress.org/support/users/maxcsa/)
 * (@maxcsa)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/error-on-multi-site/)
 * wp-statistics seems to generate the following error while editing a post on a
   multi-site installation (french):
    =============== [Mon Jan 12 12:02:03 2015][
   error] [client XXX.XXX.XXX.XXX] Erreur de la base de donn\xc3\xa9es WordPress
   Table ‘wordpress.wp_0_options’ doesn’t exist pour la requ\xc3\xaate SELECT option_value
   FROM wp_0_options WHERE option_name = ‘home’ LIMIT 1 faite par shutdown_action_hook,
   do_action(‘shutdown’), call_user_func_array, wp_statistics_shutdown_action, Hits-
   >__construct, get_home_url, get_option, referer: [http://mymultisitewp.com/dummysite/wp-admin/post.php?post=103&action=edit](http://mymultisitewp.com/dummysite/wp-admin/post.php?post=103&action=edit)
   =============== Any idea?
 * Thanks
 * [https://wordpress.org/plugins/wp-statistics/](https://wordpress.org/plugins/wp-statistics/)

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

 *  Plugin Contributor [Greg Ross](https://wordpress.org/support/users/gregross/)
 * (@gregross)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/error-on-multi-site/#post-5663429)
 * Try changing line 133 of wp-statitics/includes/classes/hits.class.php from:
 *     ```
       if( $ua_string == "WordPress/" . $wp_version . "; " . get_home_url("/") ) { $this->exclusion_match = TRUE; $this->exclusion_reason = "self referral"; }
       ```
   
 * to
 *     ```
       if( $ua_string == "WordPress/" . $wp_version . "; " . get_home_url(null, "/") ) { $this->exclusion_match = TRUE; $this->exclusion_reason = "self referral"; }
       ```
   
 *  Thread Starter [maxcsa](https://wordpress.org/support/users/maxcsa/)
 * (@maxcsa)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/error-on-multi-site/#post-5663440)
 * Hi Greg,
 * Thanks for answering so fast! Looks like it fixes my problem!
 * However, it seems like the database schema for you plugin is not up to date on
   all site using your plugin. I tried to disable and re-enable your plugin and 
   it fixes the problem. Is there another way to ensure that all tables (wp_XXX_statistics_visitors
   for exemple) are up to date?
 * Thanks
 *  Plugin Contributor [Greg Ross](https://wordpress.org/support/users/gregross/)
 * (@gregross)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/error-on-multi-site/#post-5663443)
 * No at this time, we don’t “officially” support multi-site so the database update
   code doesn’t look for anything but the current site.
 * The only option you have, instead of disabling/enabling, is to go each site and
   then to the optimization page, database tab and then re-run the install.
 * I’ll include the above fix in the next release.
 *  Thread Starter [maxcsa](https://wordpress.org/support/users/maxcsa/)
 * (@maxcsa)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/error-on-multi-site/#post-5663450)
 * Hi,
 * Sounds like a fair work-around for the moment.
 * Thanks for your support.
 * Regards
 *  Plugin Contributor [Greg Ross](https://wordpress.org/support/users/gregross/)
 * (@gregross)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/error-on-multi-site/#post-5663451)
 * No problem.

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

The topic ‘Error on multi-site’ 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/)

## Tags

 * [multi-site](https://wordpress.org/support/topic-tag/multi-site/)

 * 5 replies
 * 2 participants
 * Last reply from: [Greg Ross](https://wordpress.org/support/users/gregross/)
 * Last activity: [11 years, 6 months ago](https://wordpress.org/support/topic/error-on-multi-site/#post-5663451)
 * Status: resolved