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:

Data Model Questions /

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

Object::add_extension for Member class kicks me out of the CMS!

Go to End

2 Posts   1299 Views


Community Member, 116 Posts

2 August 2011 at 10:52am

Hey Team,

I've got a couple of sites which require an extended Member class to allow for phone details etc.

In mysite/_config.php I have Object::add_extension("Member", "MyMember");

This is the code for MyMember.php:

For some reason when I put this code in to the site, it kicks me from the CMS and won't let me log in again.

I'm hoping someone has run in to this previously, If someone could paste a link to the answer on the forum if there is one :)



Forum Moderator, 1391 Posts

4 August 2011 at 7:00am

Hi there

Just to confirm that your code works fine in my testinstall 2.4.5 (quick copy/paste), so it must be something else... You did a /dev/build/?flush=1 I presume?