Jump to:

23581 Posts in 19403 Topics by 2893 members

General Questions

SilverStripe Forums » General Questions » Report Admin vanished from menu

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1
Go to End
Author Topic: 303 Views
  • Mo
    Avatar
    Community Member
    509 Posts

    Report Admin vanished from menu Link to this post

    Hi All,

    Getting an odd error, on a site I am upgrading from 3.0 to 3.1, I have noticed the reports menu link has vanished. I can still access the reports controller through admin/reports so it is still there and working, but there is no link.

    It is a fairly standard install, with modules I have used on a multitude of different sites. The only major difference is that this site uses the latest version of subsites.

    Is there any way I can diagnose why this link is being removed? I even tried re-adding it using CMSMenu::add_menu_item(); but that didn't work either...

    Cheers,

    Mo

  • camfindlay
    Avatar
    Forum Moderator
    148 Posts

    Re: Report Admin vanished from menu Link to this post

    Just a thought, but do double check to ensure you are using the 3.1 branch of core code. I know that in master (the future 3.2) that reports are being split out into a separate module which could explain?

  • Mo
    Avatar
    Community Member
    509 Posts

    Re: Report Admin vanished from menu Link to this post

    Hi Camfindlay,

    Nope, definitely running 3.1.5 (checked out with composer) and I can see the ReportAdmin class inside the CMS module.

    Very confusing...

    Cheers,

    Mo

  • Fred C.
    Avatar
    Community Member
    18 Posts

    Re: Report Admin vanished from menu Link to this post

    FWIW, I can't reproduce this (that is, the Reports tab is present) on my 3.1.5 sites.

  • Mo
    Avatar
    Community Member
    509 Posts

    Re: Report Admin vanished from menu Link to this post

    Hmm, I have some other 3.1.5 sites with it appearing too. I assume it is a conflict, but not entirely sure how to diagnose what might be causing it...

  • swaiba
    Avatar
    Forum Moderator
    1796 Posts

    Re: Report Admin vanished from menu Link to this post

    I assume this is something with custom code and previously set permissions (i.e. not a straight install vanilla of 3.1.5)... in my experience with v3 the difference for custom admins made is that you need to implement the permission provider e.g.

    class MyAdmin extends LeftAndMain implements PermissionProvider {
    ...
    }

    Also maybe this...

    public function providePermissions() {
    return array(
    "CMS_ACCESS_MyAdmin" => array(
    'name' => 'My Admin',
    'category' => _t('Permission.CMS_ACCESS_CATEGORY', 'CMS Access'),
    'help' => 'MyAdmin',
    'sort' => -100
    )
    );
    }

    Hope this helps any!

    303 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.