Jump to:

7937 Posts in 1537 Topics by 944 members

DataObjectManager Module

SilverStripe Forums » DataObjectManager Module » DataObjectManager Code Examples

Discuss the DataObjectManager module, and the related ImageGallery module.

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

Page: 1 2 3 4 5 6 7 8 9 10 11
Go to End
Author Topic: 20548 Views
  • UncleCheese
    Avatar
    4085 Posts

    Re: DataObjectManager Code Examples Link to this post

    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

  • spankmaster79
    Avatar
    Community Member
    46 Posts

    Re: DataObjectManager Code Examples Link to this post

    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

  • UncleCheese
    Avatar
    4085 Posts

    Re: DataObjectManager Code Examples Link to this post

    Yeah, CalendarDateField is deprecated in 2.4. Use DatePickerField.

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

  • spankmaster79
    Avatar
    Community Member
    46 Posts

    Re: DataObjectManager Code Examples Link to this post

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

    20548 Views
Page: 1 2 3 4 5 6 7 8 9 10 11
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.