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.

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

2 Posts   1104 Views


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?


Community Member, 107 Posts

21 May 2014 at 2:56pm

Hello there

If your dev code works fine, make sure to update the cms and framework folder with version 3.1 files