Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

Moderators can't view dashboard with this enabled on 2.1b

Since updating from 2.1a (from github) to 2.1b (from here), my moderators get a half-rendered "Permission Problem" page (looks like this) when attempting to log onto the site's dashboard to do moderator stuff. Disabling the Piwik plugin immediately fixes the problem.

I'll have to run with Piwik disabled for now, since I need my mod squad to be able to do their jobs. Is there any info I can supply to help get the problem corrected? Thanks!!

Comments

  • vrijvlindervrijvlinder Papillon-Sauvage MVP

    check the config.php that it has role permissions saved. It may not have been written to the config.php ,

  • I have the exact same problem. I do not see this issue being connected to config.php, there surely is something wrong with the code (incompatibility with 2.1b, something similar I have experienced with the Easy Memberlist plugin).

    As I still don't understand the code that well, I have now disabled this plugin and inserted the Piwik code manually into my theme's default.master.tpl.

    Is the original author of this plugin still arround?

  • MasterOneMasterOne ✭✭
    edited July 2013

    Is it because of $Sender->Permission('Garden.Plugins.Manage');?

    I can't see a Garden >> Plugins entry in User >> Roles & Permission >> Edit Role, and the Manage column only has checkboxes for Messages, Moderation and Settings.

    If that's what causing the problem, what would be the correct replacement for Garden.Plugins.Manage?

  • peregrineperegrine MVP
    edited July 2013
    change it from
    
          $Sender->Permission('Garden.Plugins.Manage');
    
        to
    
      $Sender->Permission('Garden.Settings.Manage');
    

    I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.

  • or you could use

    $Sender->Permission('Garden.Moderations.Manage');

    or

    $Sender->Permission('Garden.Curation.Manage');

    depending on what you want to do.

    I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.

  • I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.

  • AdrianAdrian Wandering Spirit Montreal MVP
    edited July 2013

    @peregrine thanks for the jumping in. I had a family emergency so I did not get a chance to get to this sooner. Sorry @MasterOne. I have now updated the add-on to be compatible with 2.1. It's a good reminder for me to also go back and review other add-ons I have with the older sender request

  • @adriansonline, Piwik also seem to have updated the tracking code in the meantime, nowadays it looks like this:

      <script type="text/javascript">
        var _paq = _paq || [];
        _paq.push(["trackPageView"]);
        _paq.push(["enableLinkTracking"]);
        (function() {
          var u=(("https:" == document.location.protocol) ? "https" : "http") + "://LINK.TO.YOUR.PIWIK.FOLDER/";
          _paq.push(["setTrackerUrl", u+"piwik.php"]);
          _paq.push(["setSiteId", "YOUR.SITE.ID"]);
          var d=document, g=d.createElement("script"), s=d.getElementsByTagName("script")[0]; g.type="text/javascript";
          g.defer=true; g.async=true; g.src=u+"piwik.js"; s.parentNode.insertBefore(g,s);
        })();
      </script><noscript><img src="http://LINK.TO.YOUR.PIWIK.FOLDER/piwik.php?idsite=YOUR.SITE.ID&amp;rec=1" style="border:0" alt="" /></noscript>
    
  • AdrianAdrian Wandering Spirit Montreal MVP
    edited July 2013

    @masterone, Yes I am aware. I will update to this in the future, but the "original" code still works 100%. I just wanted to make sure the functionality of the add-on works for the newer version of Vanilla before I update to the new Piwik code :)

  • AdrianAdrian Wandering Spirit Montreal MVP
    edited July 2013

    @Masterone, finally had a chance to test new Piwik code in Vanilla 2.1b. I have upgraded the add-on to use the latest Piwik default code (found in 1.12). Have fun and enjoy...

  • FYI, @adriansonline, I installed and enabled the updated Piwik plugin (on Vanilla 2.1b1) and immediately both of my mods were unable to access the dashboard with the same permission problem as before. I made sure that there are no caching issues (have cleared browser caches on my test moderator account which also exhibits the problem, and have also flushed the web server's Varnish cache & APC just in case).

    Are there any manual changes I need to make? Any additional info I can provide to you to assist in troubleshooting?

  • AdrianAdrian Wandering Spirit Montreal MVP

    @Leeh, sorry it seems your email to me went to spam--so sorry for the late reply. I too created a mod account, and I could not get in -- and it was an install not using my plugin! I know it works flawlessly in 2.01.8 and in 2.1b1 too if you are admin. What I did notice was if you allow your moderator to get "manage access" in garden permissions --which is the right to see the dashboard it works. But I am not sure it is intended to work like this. Actually I found it reported as an issue here:

    https://github.com/vanillaforums/Garden/issues/1583

    Moderator sees a dashboard icon when in fact they should not. If you still want to use the plugin and you really trust your mods, than I guess you can enable the permissions, but keep in mind this gives them full access to "manage your forum" too. I will mention it to the guys in the office to see if I am mistaken, but I think this is the issue.

    Sorry once again for not responding sooner.

  • vrijvlindervrijvlinder Papillon-Sauvage MVP

    hey @adriansonline what's with the blue background? you VIP now ? Top Gun ? thats cool...just don't forget us the little people ;)

  • TamaTama United Kingdom ✭✭✭

    @adriansonline said:
    Moderator sees a dashboard icon when in fact they should not. If you still want to use the plugin and you really trust your mods, than I guess you can enable the permissions, but keep in mind this gives them full access to "manage your forum" too. I will mention it to the guys in the office to see if I am mistaken, but I think this is the issue.

    This has since been fixed in 2.2 :)
    https://github.com/vanillaforums/Garden/commit/2ea50cae63fffc806856dbf1f3ba4051e2bb5ac3#applications/dashboard/views/modules/me.php

    There was an error rendering this rich post.

  • AdrianAdrian Wandering Spirit Montreal MVP

    @tama thanks I missed that :) yes 'tis true @vrijvlinder I am a member of Vanilla team. It's actually growing quite fast. I live in Montreal and there was a great opportunity to join their marketing team posted on Linkedin. I'm not really a developer, but like many here a hobbyist. What they needed was someone familiar with Vanilla and someone with a marketing background living in Montreal. It was a way to combine my two passions: Vanilka & marketing. I have used Vanilla since 2008, so it's a really my pleasure to help more people know how awesome Vanilla is.

    I can say, I have been with Vanilla two weeks and it certainly changes your perspective on everything. They are working damn hard on making Vanilla amazing. My job is soley marketing and spreading the word ( hence all those lovely social icons in my signature). I will be writing lots of good stuff on the blog and out there in social land. So I hope you follow and help spread the word --especially on Linkedin. Obviously the goal is to increase hosted subscribers, but it has benefit for everyone (including OSS) if we are successful. Hopefully you will all let me come here and chill because I still have a couple of self-hosted installs and treat me like a regular joe. I can't speak for the dev team here. I'm just a marketer ;) I certainly appreciate any feedback or ideas and won't forget where I can from :)

  • TamaTama United Kingdom ✭✭✭

    @adriansonline said:
    My job is soley marketing and spreading the word

    So this witchcraft is of your doing?

    There was an error rendering this rich post.

  • vrijvlindervrijvlinder Papillon-Sauvage MVP

    Well congratulations !!! raises sake le'chaim , to normal Joe !!! :))))

  • AdrianAdrian Wandering Spirit Montreal MVP

    @tama no that banner was done before I got here, it's not my witchcraft ;) Although I guess you can blame me if you see it around the web -- but that is the point of Adwords/Adsense isn't it :d

Sign In or Register to comment.