Support » Plugin: SlimStat Analytics » [Plugin: WP SlimStat] Permissions problem – No one has access, not even specified admin

  • Resolved frikafrax

    (@frikafrax)


    After a successful upgrade to the latest version, Slimstat seemed to be working fine, no problems.

    I log in the next morning to find that I don’t have permissions to access any of the options.

    I went into phpMyAdmin and took a look at the user name specified for “slimstat_can_admin” and the user name is indeed correct; no typos.

    I removed “slimstat_can_admin” and “slimstat_can_view” from the database, deactivated and reactivated Slimstat, hoping it would default to its “all allowed” permissions state, but still no success. I’m denied administration permissions.

    I checked all the blogs on which I installed and upgraded Slimstats and it’s the same situation. They all had been working fine, but now I’m denied administration permissions on all of them.

    Your help would be greatly appreciated. 🙂

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

Viewing 15 replies - 1 through 15 (of 19 total)
  • Plugin Author Jason Crouse

    (@coolmann)

    Hi there,

    if I understand correctly your issue:

    1) you are the administrator
    2) all the fields under Settings > Slimstat > Permissions are empty, or in phpmyadmin slimstat_can_admin, slimstat_can_view and slimstat_capability_can_view are not initialized (or have their default values [a:0:{}, a:0:{}, ‘read’])
    3) You can view the stats but not access WP SlimStat admin panels

    Is this correct?

    Thread Starter frikafrax

    (@frikafrax)

    1) Correct, I’m the (sole) administrator.

    2) In the blog where I had Slimstat rebuild slimstat_can_admin, slimstat_can_view and slimstat_capability_can_view, they have been set to their default values. i.e. [a:0:{}, a:0:{}, 'read']

    In the blogs that have not been reverted to the Slimstat default settings, they appear as:

    [a:1:{i:0;s:11:"myadminname";},a:1:{i:0;s:11:"myadminname";},read]

    …with the correct admin account user name entered.

    3) Correct. I can view the stats but I do not have permission to access Views, Filters, Permissions, and Maintenance under the Options section.

    Plugin Author Jason Crouse

    (@coolmann)

    I see. One more question: does your “myadminname” contain any spaces or anything other than letters?

    Plugin Author Jason Crouse

    (@coolmann)

    Also, is this a network installation of WordPress? What version were you using before the upgrade?

    Camu

    Thread Starter frikafrax

    (@frikafrax)

    One more question: does your “myadminname” contain any spaces or anything other than letters?

    The admin name is purely alphanumeric with no spaces, punctuation or other characters.

    Also, is this a network installation of WordPress? What version were you using before the upgrade?

    All my blogs are currently “stand-alone” individual WordPress installations. I haven’t tried using the multisite features yet.

    I was using WordPress 3.1.1 and had recently upgraded to WordPress 3.1.2.

    Plugin Author Jason Crouse

    (@coolmann)

    Hm, I was able to reproduce the issue on a test environment, but for an “editor”, not the admin. I’ll review the source code and get back to you with a fix 🙂

    Just to confirm, could you try to create another admin account and see if this new one has access to the configuration panels?

    Camu

    Plugin Author Jason Crouse

    (@coolmann)

    Okay, I think I have a fix for your issue. As I said, it was a bug, but it should not be triggered if your user is an ‘administrator’. Anyway, you can contact me at

    http://www.duechiacchiere.it/contatto

    so that I can send you the new version for you to test. If it works, I will release an official update.

    Thank you for your feedback,
    Camu

    Thread Starter frikafrax

    (@frikafrax)

    Just to confirm, could you try to create another admin account and see if this new one has access to the configuration panels?

    I tried creating a second administrator level account and no luck. The new administrator account is also denied access to Slimstat’s options.

    Okay, I think I have a fix for your issue.

    Great! I’ve send you an email via your website’s contact form.

    Thanks!

    Plugin Author Jason Crouse

    (@coolmann)

    You got mail 🙂

    Camu

    Thread Starter frikafrax

    (@frikafrax)

    The fix worked. 🙂

    I installed the fix on a couple of my blogs and I’ve got permissions back on all of them.

    But I ran into another problem.

    When I enter strings under the Filters section for “Referers to ignore” nothing is saved and slimstat_ignore_referers in the database remains empty.

    The rest of the filter types seem to work, with all changes being reflected appropriately in the database.

    Plugin Author Jason Crouse

    (@coolmann)

    Awesome! I’m glad it worked. I’ll add some other bugfixes to 2.4.1 and I will release it to the public in about two weeks. As for the filter, it’s a bug, I can send you the updated version if you want 🙂

    Camu

    Thread Starter frikafrax

    (@frikafrax)

    Just installed the latest version of the fix and everything seems to be working perfectly.

    No permissions issues, all changes to filters are being saved. 🙂

    Thanks!

    Plugin Author Jason Crouse

    (@coolmann)

    A vote for my plugin would be a nice way to thank me 😉

    Camu

    Thread Starter frikafrax

    (@frikafrax)

    Done! 🙂

    Plugin Author Jason Crouse

    (@coolmann)

    Awesome! Please let me know if you find any other bugs 🙂

    Have a great day,
    Camu

Viewing 15 replies - 1 through 15 (of 19 total)
  • The topic ‘[Plugin: WP SlimStat] Permissions problem – No one has access, not even specified admin’ is closed to new replies.