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've moved the forum!

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.

Upgrading SilverStripe /

Ask questions about upgrading SilverStripe to the latest version.

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

silverstripe-memberprofiles with SS3


Go to End


3 Posts   1888 Views

Avatar
vxd

Community Member, 19 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, 19 Posts

12 June 2012 at 12:37am

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

Avatar
Rob Clarkson

Community Member, 26 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