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

Failure after upgrade to 2.4.5


Go to End


2 Posts   1613 Views

Avatar
stuntmax

Community Member, 21 Posts

23 July 2011 at 11:57pm

I got this failure notice:

"Notice: DataObjectDecorator::extraDBFields() is deprecated. Please use extraStatics() instead. in /usr/www/users/getwas/lecellierdheino.com/sapphire/core/model/DataObjectDecorator.php on line 60"

does someone know, how I can repair it?

See also attached file.

Attached Files
Avatar
martimiz

Forum Moderator, 1391 Posts

5 August 2011 at 7:25am

hi there,

I guess you must have found out by now (I hope), seeing that it's been 12 days...

Anyway: it looks like somewhere in your code (outside SilverStripe core) there is a subclass of the DataObjectDecorator that still uses the deprecated extraDBFields() function.

Make sure you upgrade your external modules as well if possible. If that doesn't help, check your own code: this might help you: http://doc.silverstripe.org/sapphire/en/reference/dataobjectdecorator

also there are some threads here (mostly about the gallery module):
http://www.silverstripe.org/all-other-modules/show/12130
http://www.silverstripe.org/all-other-modules/show/12130
http://silverstripe.org/data-model-questions/show/14683