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


Reply


3 Posts   838 Views

Avatar
vxd

Community Member, 16 Posts

12 June 2012 at 12:17am

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() {

Avatar
vxd

Community Member, 16 Posts

12 June 2012 at 12:37am

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

Avatar
RobboDev

Community Member, 21 Posts

25 June 2012 at 1:28pm

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

Read here: http://doc.silverstripe.org/framework/en/trunk/changelogs/3.0.0