Support » Plugin: WP-Matomo (WP-Piwik) » [Plugin: WP-Piwik] As simple plugin with multisite – fills auth with last used token

  • Resolved donty


    I noticed if I activate the plugin on a new or pre-existing site, the token and server URL field are automatically filled in with the most recent one saved on any other site.

    This is using the plugin on a network install as a simple site plugin not as a multisite network plugin.

    As I have dug deeper, it seems the settings are stored only once in the DB under wp-piwik_global-settings in wp_sitemeta table. Each new site overwrites this and there doesn’t seem to be per blog/site storage. Presume normally it is stored in wp_XX_options in a multisite?

    Seems odd that no one could store details to allow any other piwik install and need to use a single auth token for the whole network?

    Is this by design or is it a problem in the plugin or my install?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author braekling


    Oh, you’re right. This is a plugin bug… and maybe this also causes that different users complain about not supporting the simple plugin mode with multisite anymore.

    You should be able to configure each blog on its own if you don’t use network activation, of course.

    I’ll have a look at this and will provide an update.

    Plugin Author braekling


    Please have a look at 0.9.1. This should fix this bug.

    That seems to have done it for me. Although one of the sites tried last time doesnt seem to have the dashboard piwik showing but others are working fine.

    I removed, deleted references in the DB tables and then reinstalled, activated it per site and the token and url is now set properly.

    Thanks very much for the prompt attention, we will be donating, love OSS!

    Plugin Author braekling


    Thank you very much!

    I’ll add a reset button to 0.9.2 to rebuild settings after such an issue; but hopefully we won’t need such a button in future 😉

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Plugin: WP-Piwik] As simple plugin with multisite – fills auth with last used token’ is closed to new replies.