Jump to:

1160 Posts in 2621 Topics by 409 members

Upgrading SilverStripe

SilverStripe Forums » Upgrading SilverStripe » silverstripe-memberprofiles with SS3

Ask questions about upgrading SilverStripe to the latest version.

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

Page: 1
Go to End
Author Topic: 798 Views
  • vxd
    Avatar
    Community Member
    16 Posts

    silverstripe-memberprofiles with SS3 Link to this post

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

  • vxd
    Avatar
    Community Member
    16 Posts

    Re: silverstripe-memberprofiles with SS3 Link to this post

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

  • RobboDev
    Avatar
    Community Member
    20 Posts

    Re: silverstripe-memberprofiles with SS3 Link to this post

    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

    798 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.