WordPress.org

Ready to get started?Download WordPress

Forums

WP-Piwik
[resolved] Tracking filter not displaying roles on tracking tab (6 posts)

  1. techman92
    Member
    Posted 1 year ago #

    User roles are not displayed for the tracking filter on the "Tracking" tab or the "Piwik Display to:" on the the "Statistics" page.

    It appears that in the wp-piwik/settings/tracking.php file the variable $wp_roles is an empty array.

    WP-Piwik 0.9.6.2

    http://wordpress.org/extend/plugins/wp-piwik/

  2. braekling
    Member
    Plugin Author

    Posted 1 year ago #

    Hm, looks fine here.

    Are you using a plugin which makes changes to your auth roles?

    Are you using another plugin which shows the configured roles? Does this one work?

  3. techman92
    Member
    Posted 1 year ago #

    I'm not using any plugins that modify user roles. None of my other plugins display roles, but bbpress does add some roles. The default users panel in wordpress displays the user roles just fine. I am using WP in multisite mode.

  4. braekling
    Member
    Plugin Author

    Posted 1 year ago #

    Sorry, I'm not able to reproduce this issue.

    Can you enable WordPress' debug mode (and PHP error messages) and look for messages?

  5. techman92
    Member
    Posted 1 year ago #

    I finally figured this one out, and it was a doozy. It turned out to be an issue with my DB and not this plugin. I will go ahead and outline my fix anyway just in case someone else runs into this issue.

    In the pre_options table for the main site in the network, there were entries for both pre_users_roles and wp_user_roles. wp_user_roles contained all the data and pre_user_roles was empty. I deleted pre_user_roles and renamed wp_user_roles to replace it and viola, everything worked.

    Note:for this example the custom wp table prefix is pre_

  6. braekling
    Member
    Plugin Author

    Posted 1 year ago #

    Great you got behind this :)

    Thank you for posting your solution!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.