Jump to:

1131 Posts in 1965 Topics by 402 members

Upgrading SilverStripe

SilverStripe Forums » Upgrading SilverStripe » error after upgrading to 2.4.1

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: 889 Views
  • pjssms
    Community Member
    49 Posts

    error after upgrading to 2.4.1 Link to this post

    I am getting error

    Notice: DataObjectDecorator::extraDBFields() is deprecated. Please use extraStatics() instead. in /home/vendeopr/public_html/sapphire/core/model/DataObjectDecorator.php on line 60
    any suggestion ?

  • Willr
    Forum Moderator
    5462 Posts

    Re: error after upgrading to 2.4.1 Link to this post

    Its as the error says, don't use extraDBFields() use extraStatics(). This is probably coming from a module which will need to be upgraded to a newer version for 2.4.

    Check all your installed modules and custom code for extraDBFields(). All modules which have that will need to be updated to the latest version and your custom code changed from..

    function extraDBFields() {
    return array(....);

    Change that to...

    function extraStatics() {
    return array('db' => array(...);

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.