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.

General Questions /

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

DataObjectDecorator error


Reply


2 Posts   607 Views

Avatar
pjssms

Community Member, 49 Posts

27 March 2012 at 2:15am

Hello,

I got an error on one of my sites that i can't get over.

Today i tried to upgrade it to version 2.4.7 but the problem remains.

I have deleted the fill sapphire directory and uploaded the new one but i still got this error :

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

The worst part is that it doesn´t allow to get into the administration area and as so the page is pretty useless.

What do you recommend to rebuild the page from scratch ?.
Wordpress has also a bug when the menus get more than a few dozen links.

Thank you,

Paulo Santos

Avatar
inCharge

Community Member, 102 Posts

28 March 2012 at 12:36am

I would think upgrading saphire without cms is going to cause problems. Try upgrading both saphire and cms, then do the usual /dev/build/flush=1, flush the cache, clear cookies

Haven't seen that error before though.