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're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

Upgrading SilverStripe /

Ask questions about upgrading SilverStripe to the latest version.

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

Public vs Private statics in 3.0 -> 3.1 Upgrade


Go to End


829 Views

Avatar
novaweb

Community Member, 116 Posts

20 May 2014 at 11:54am

Howdy Stripers. I am deploying a 3.0 to 3.1 upgrade. As per docs (3.1.0 changelogs) I have changed static $allowed_actions to private, but now I am getting Fatal error: Page_Controller::$allowed_actions must be public (as in class Page_Controller)

I am confused...

It works on Dev fine, but on production server this error is throwing, same code base, php versions vary but are 5.4+

Any ideas?