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, biapar, Willr, Ingo, swaiba, simon_w

silverstripe-memberprofiles with SS3


3 Posts   812 Views


12 June 2012 at 12:17am Community Member, 16 Posts

Hi All,

I am getting an error with SS3 with the silverstripe-memberprofiles module. I think it's a compatibility issue but I don't know what to update in the code.

Strict Standards: Declaration of MemberProfileExtension::extraStatics() should be compatible with that of DataExtension::extraStatics() in /Applications/MAMP/htdocs/xxxx/silverstripe-memberprofiles/code/extensions/MemberProfileExtension.php on line 8

Strict Standards: Declaration of MemberProfileExtension::updateCMSFields() should be compatible with that of DataExtension::updateCMSFields() in /Applications/MAMP/htdocs/xxxx/silverstripe-memberprofiles/code/extensions/MemberProfileExtension.php on line 8

here is the line

line 8: class MemberProfileExtension extends DataObjectDecorator {

   public function extraStatics() {


12 June 2012 at 12:37am Community Member, 16 Posts

I did replace DataObjectDecorator to DataExtension but I still got the same error


25 June 2012 at 1:28pm Community Member, 21 Posts

You don't need to set the extrastatics stuff any more, set $db directly.

Read here: