[resolved] As simple plugin with multisite - fills auth with last used token (5 posts)

  1. donty
    Posted 3 years ago #

    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?


  2. braekling
    Plugin Author

    Posted 3 years ago #

    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.

  3. braekling
    Plugin Author

    Posted 3 years ago #

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

  4. donty
    Posted 3 years ago #

    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!

  5. braekling
    Plugin Author

    Posted 3 years ago #

    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 ;)

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WP-Piwik
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic