Jump to:

23581 Posts in 19403 Topics by 2893 members

General Questions

SilverStripe Forums » General Questions » DataObjectDecorator extraStatics() error

General questions about getting started with SilverStripe that don't fit in any of the categories above.

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

Page: 1
Go to End
Author Topic: 1085 Views
  • BLU42 Media
    Community Member
    71 Posts

    DataObjectDecorator extraStatics() error Link to this post

    I had a new error recently with SS 2.4.4... has anyone else seen this one?

    Strict Standards: Non-static method MyModuleDecorator::extraStatics() cannot be called statically in /Applications/MAMP/htdocs/smartsuite/sapphire/core/model/DataObjectDecorator.php on line 69


    class MyModuleDecorator extends DataObjectDecorator {

       function extraStatics() {
          return array(
             'db'      => array(
                'NewField'   => 'Float'

  • Overt
    Community Member
    5 Posts

    Re: DataObjectDecorator extraStatics() error Link to this post

    You need to upgrade SilverStripe or make changes by yourself: make this method static.

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.