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.

DataObjectManager Module /

Discuss the DataObjectManager module, and the related ImageGallery module.

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

DataObjectManager Code Examples


Go to End
Reply


84 Posts   22010 Views

Avatar
UncleCheese

Forum Moderator, 4096 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, 4096 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