Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Archive /

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

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

Protected Property on Admin page


Go to End


2 Posts   2698 Views

Avatar
nark3d

Community Member, 1 Post

16 February 2007 at 4:41am

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:
http://www.silverstripe.com/bugs-and-features/
page, sorry about that.

Avatar
Hayden

Core Development Team, 19 Posts

16 February 2007 at 10:02am

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

You can change:

protected static $currentController;

to:

public static $currentController;

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