Title: [Plugin: WP-Piwik] Multisite Update Procedure
Last modified: August 19, 2016

---

# [Plugin: WP-Piwik] Multisite Update Procedure

 *  Resolved [kremalicious](https://wordpress.org/support/users/kremalicious/)
 * (@kremalicious)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/plugin-wp-piwik-multisite-update-procedure/)
 * Problem is, I upgraded via the Backend to 0.8.5 and changed wp-piwik_wpmu immediately
   to true. After that the plugin created new entries in Piwik for all sites in 
   the network again instead of picking up the existing entries created with 0.8.4.
   Users now aren’t able to see their statistics before the upgrade in the Backend
   and WP-Piwik puts in the tracking code for the newly created sites.
 * So are there any infos on the correct update procedure for a multisite installation
   so it picks up the already created sites instead of creating double entries?
 * Nevertheless a great plugin, thanks for the effort!
 * [http://wordpress.org/extend/plugins/wp-piwik/](http://wordpress.org/extend/plugins/wp-piwik/)

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

 *  Plugin Author [braekling](https://wordpress.org/support/users/braekling/)
 * (@braekling)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/plugin-wp-piwik-multisite-update-procedure/#post-1992087)
 * Hm, strange. I’ll try to reproduce this in my multisite test environment. Normally
   it should work as you did the update procedure.
 *  Thread Starter [kremalicious](https://wordpress.org/support/users/kremalicious/)
 * (@kremalicious)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/plugin-wp-piwik-multisite-update-procedure/#post-1992148)
 * Alright, thanks. In my other test environment the same happened. I think the 
   steps to reproduce are these:
    1. install & activate 0.8.4 of your plugin with multisite settings, visit some 
       sites to populate the entries in Piwik
    2. update to 0.8.5 in the Backend, afterwards change wp-piwik_wpmu via the Plugin
       editor
    3. visit some sites, in my environments this created the sites in Piwik again, 
       with new IDs and such
 * I started using the plugin beginning with 0.8.4 so I don’t know if this is a 
   problem with this update only or a general update problem. Just before the plugin
   update I updated Piwik itself too, from 1.1.1 to 1.2.1 but this didn’t double
   the entries.
 * While I guess there’s no way to combine all the double entries it would be nice
   to know this won’t be happening with the next update again. So I’m thankful for
   any hints on how to avoid this 🙂
 *  Plugin Author [braekling](https://wordpress.org/support/users/braekling/)
 * (@braekling)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/plugin-wp-piwik-multisite-update-procedure/#post-1992160)
 * 0.8.5 brought just some minor fixes which shouldn’t affect the multisite feature.
   Maybe it is a problem regarding to the new configuration handling since 0.8.4.
 * Currently I have no idea, my test environment works fine. But I’ll try to figure
   this out, of course.
 *  [gormer](https://wordpress.org/support/users/gormer/)
 * (@gormer)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/plugin-wp-piwik-multisite-update-procedure/#post-1992200)
 * I can also verify this issue. After doing an upgrade here all my sites are a 
   big mess now. I have some that constantly creates new instances of sites and 
   some that is not updated. I will see if I can find the source of the error.
 * What happens is that new instances of wp-piwik_settings gets generated even though
   there are already one present. M
 *  [gormer](https://wordpress.org/support/users/gormer/)
 * (@gormer)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/plugin-wp-piwik-multisite-update-procedure/#post-1992202)
 * So I tried to downgrade to 0.8.3 and I still get some duplicates when I delete
   the _settings option in the database: which I found weird. I don’t really get
   whats wrong and can’t do so much testing on the live site.
 *  Plugin Author [braekling](https://wordpress.org/support/users/braekling/)
 * (@braekling)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/plugin-wp-piwik-multisite-update-procedure/#post-1992205)
 * Can you try the current development version, please?
    [http://downloads.wordpress.org/plugin/wp-piwik.zip](http://downloads.wordpress.org/plugin/wp-piwik.zip)
 * I’m sure this will fix the issue.
 *  [UnPointZero](https://wordpress.org/support/users/unpointzero/)
 * (@unpointzero)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/plugin-wp-piwik-multisite-update-procedure/#post-1992210)
 * Hi !
 * Same problem here, I’ve updated to 0.8.5 and some sites get the same ID ( see
   [http://www.slchauffage.fr](http://www.slchauffage.fr) & [http://www.almec.fr](http://www.almec.fr)
   🙂 ).
    Development version doesn’t fix this problem…
 * Btw, nice plugin just waiting for debugging :).
 * Edit : Ok cleaned my WP database ( deleted all wpmu-piwik entry ) and it seems
   to be OK !
 * Reporting in few days to tell you if everything runs fine 🙂
 * C ya !
 *  Plugin Author [braekling](https://wordpress.org/support/users/braekling/)
 * (@braekling)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/plugin-wp-piwik-multisite-update-procedure/#post-1992213)
 * Some sites with same IDs? Sounds like another problem. Please tell me if this
   happens again.
 * But I hope the current dev version fixes the “multiple ID” problem.
 *  Thread Starter [kremalicious](https://wordpress.org/support/users/kremalicious/)
 * (@kremalicious)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/plugin-wp-piwik-multisite-update-procedure/#post-1992226)
 * > Can you try the current development version, please?
 * Tested, looks smooth and seeing no double entries being created after the update.
   Of course it now uses the newly created entries from the last update only. But
   I guess there’s no way to merge them back somehow, right?
 *  Plugin Author [braekling](https://wordpress.org/support/users/braekling/)
 * (@braekling)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/plugin-wp-piwik-multisite-update-procedure/#post-1992227)
 * Thank you very much. There will be an update on saturday.
 * But I don’t know how to merge the double entries… maybe it is easy to solve by
   a small script. I’ll check this soon.
 *  Plugin Author [braekling](https://wordpress.org/support/users/braekling/)
 * (@braekling)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/plugin-wp-piwik-multisite-update-procedure/#post-1992237)
 * Sorry for the delay caused by the devil of a toothache. I’ll try to finish the
   update this weekend.
 *  Plugin Author [braekling](https://wordpress.org/support/users/braekling/)
 * (@braekling)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/plugin-wp-piwik-multisite-update-procedure/#post-1992239)
 * Fixed in 0.8.6.

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

The topic ‘[Plugin: WP-Piwik] Multisite Update Procedure’ is closed to new replies.

 * ![](https://ps.w.org/wp-piwik/assets/icon-256x256.png?rev=3529668)
 * [Connect Matomo - Analytics Dashboard for WordPress](https://wordpress.org/plugins/wp-piwik/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-piwik/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-piwik/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-piwik/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-piwik/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-piwik/reviews/)

 * 12 replies
 * 4 participants
 * Last reply from: [braekling](https://wordpress.org/support/users/braekling/)
 * Last activity: [15 years, 2 months ago](https://wordpress.org/support/topic/plugin-wp-piwik-multisite-update-procedure/#post-1992239)
 * Status: resolved