Thanks Tama that worked for me as well.
Hi for those who were wondering the location of Controller.php is
sapphire/core/control/Controller.php
This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.
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.
Thanks Tama that worked for me as well.
Hi for those who were wondering the location of Controller.php is
sapphire/core/control/Controller.php
I've been having the same problem too. I'm using SS 2.4.10 and PHP 5.4.10 (MAMP). The solutions provided haven't worked for me.
I changed the PHP version in MAMP to 5.2.17, and the problem went away. Is there a better solution than downgrading MAMP?
Thanks.
The patch at http://open.silverstripe.org/ticket/7737 will fix it, or download the 'post-2.4' of SilverStripe from github.
In my case that happens moving from php 5.3 to 5.4 and fix the error replacing with the line suggested:
if(is_string($perm) && $this->hasMethod($methodName = 'can' . $perm)) {