Jump to:

10994 Posts in 2728 Topics by 1819 members

All other Modules

SilverStripe Forums » All other Modules » event calendar error CalendarDateTime::set_time_format()

Discuss all other Modules here.

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

Page: 1
Go to End
Author Topic: 854 Views
  • Georgesvdh
    Avatar
    Community Member
    4 Posts

    event calendar error CalendarDateTime::set_time_format() Link to this post

    hy

    I upgraded my silverStripe version to v2.4.2
    the site I want to update uses the event calendar I have been reading on this forum that the latest version (modules-event_calendar-r116) would be stable under 2.4. I also installed (modules-dataobject_manager-r504) because the event calendar was asking for it. but after installing this and doing the flush of my site I get this error: Fatal error: Call to undefined method CalendarDateTime::set_time_format() in event_calendar/_config.php on line 22. I tried changing the 24 to 12 but that did not change anything?

    I don't know how to fix this one anybody that knows whats going wrong?

    Georges

  • UncleCheese
    Avatar
    4085 Posts

    Re: event calendar error CalendarDateTime::set_time_format() Link to this post

    Wow. I have no idea. CalendarDateTime.php should have that method defined on line 69..

       public static function set_time_format($f)
       {
        if(!in_array($f, array('24','12')))
        die("<strong>CalendarDateTime::set_time_format():</strong>"._t('CalendarDateTime.INVALIDTIME','Invalid time format. Must be either "24" or "12"'));
        self::set_param('time_format',$f);
       }

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

  • Georgesvdh
    Avatar
    Community Member
    4 Posts

    Re: event calendar error CalendarDateTime::set_time_format() Link to this post

    You are right that method is defined like you say on line 69 in the CalendarDateTime.php. So that can't be the problem.
    I will make a new test site and do a clean install of silverStripe v2.4.2. maybe the problem is in the initial setting.
    I will let you know if I find something out.

    G

    854 Views
Page: 1
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.