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.

DataObjectManager Module /

Discuss the DataObjectManager module, and the related ImageGallery module.

Moderators: martimiz, UncleCheese, Sean, Ed, biapar, Willr, Ingo, swaiba

DataObjectManager Code Examples


Go to End


84 Posts   40578 Views

Avatar
UncleCheese

Forum Moderator, 4102 Posts

17 November 2010 at 3:57am

Dev mode isn't enough.. you'll need to turn on error reporting in php.. Depending on your environment, you can use:

ini_set('display_errors','On');

or in your .htaccess:

php_value display_errors On

--------------------
SilverStripe tips, tutorials, screencasts and more: http://www.leftandmain.com

Avatar
spankmaster79

Community Member, 46 Posts

17 November 2010 at 4:14am

thx, but I thought in dev mode SilverStripe would output errors to the screen..... just like it does when Exceptions get thrown....

Ok, took a look in the webserver log and foung this:

PHP Fatal error: Class 'CalendarDateField' not found in ......

After googling I read that the module "legacydatetimefields" is needed for this. Installed that and now it works. Shouldn't this appear in the requirements for this module then?

Greetz
Spanky

Avatar
UncleCheese

Forum Moderator, 4102 Posts

17 November 2010 at 4:25am

Yeah, CalendarDateField is deprecated in 2.4. Use DatePickerField.

--------------------
SilverStripe tips, tutorials, screencasts and more: http://www.leftandmain.com

Avatar
spankmaster79

Community Member, 46 Posts

17 November 2010 at 4:42am

Ok, I'm using this now. But please change the examples. It's confusing otherwise.

Go to Top