Jump to:

17452 Posts in 4473 Topics by 1971 members


SilverStripe Forums » Archive » Protected Property on Admin page

Our old forums are still available as a read-only archive.

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

Page: 1
Go to End
Author Topic: 1838 Views
  • nark3d
    Community Member
    1 Post

    Protected Property on Admin page Link to this post

    Hi guys,

    Great looking product, unable to get it to work just yet though. I've completed the installation sucessfully, but upon my attempt to access the admin area the page remains blank, the following appears when I put the php_flag display_errors On:

    Notice: Undefined index: trace in /var/www/vhosts/adamlewis.me.uk/httpdocs/silver/sapphire/main.php on line 17

    Notice: Undefined index: buildmanifest in /var/www/vhosts/adamlewis.me.uk/httpdocs/silver/sapphire/core/ManifestBuilder.php on line 30

    Notice: Undefined index: flush in /var/www/vhosts/adamlewis.me.uk/httpdocs/silver/sapphire/core/ManifestBuilder.php on line 30

    Fatal error: Cannot access protected property Controller::$currentController in /var/www/vhosts/adamlewis.me.uk/httpdocs/silver/sapphire/security/Security.php on line 104

    I've had a good look round the php.ini and I can't see away of preventing this there, any suggestions?

    Also, I accidentally posted a bug as a comment earlier on your:
    page, sorry about that.

  • Hayden
    Core Development Team
    19 Posts

    Re: Protected Property on Admin page Link to this post

    This issue seems to be related to certain versions of PHP.

    You can change:

    protected static $currentController;


    public static $currentController;

    in sapphire/core/control/Controller.php at about line 219

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.