Jump to:

10993 Posts in 2727 Topics by 1818 members

All other Modules

SilverStripe Forums » All other Modules » Event Calendar: installaton

Discuss all other Modules here.

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

Page: 1
Go to End
Author Topic: 1148 Views
  • merrick_sd
    Avatar
    Community Member
    95 Posts

    Event Calendar: installaton Link to this post

    when doing dev/build/?flush=1 i get a fatal error

    Fatal error: Class 'Database' not found in /home/jam/public_html/event_calendar/code/RecurringDayOfMonth.php on line 42

    which is this line

    Database::alteration_message("Recurring Days of Month added.","created");

    I commented that line out and the dev/build went all ok.

    but when i added a calendar in the SiteTree on the left of Admin i get the following error

    Class 'CalendarDateField' not found in /home/jam/public_html/event_calendar/code/CalendarDateTime.php on line 224

    which is this line
    new CalendarDateField('StartDate',_t('CalendarEvent.STARTDATE','Start Date')),

    Maybe I should be using Silverstripe version 2.3 and not 2.4?

  • UncleCheese
    Avatar
    4085 Posts

    Re: Event Calendar: installaton Link to this post

    Yeah, you're running incompatible versions. If you're running SS 2.4 make sure you're on the latest build of the EventCalendar module.

  • merrick_sd
    Avatar
    Community Member
    95 Posts

    Re: Event Calendar: installaton Link to this post

    Many Thanks
    I have ditched 2.4 for now and tried with 2.3.7.

    All OK so far.
    Setup is
    SS Version2.3.7
    modules-event_calendar-r110
    modules-dataobject_manager-r399
    swfupload3

    also using
    userforms-v0.2.1
    recaptcha-v0.4-rc1

    Questions:
    Q1. I don't have a popup for Date field when adding an event. (partly sorted)
    I updated jsparty folder that got me the date picker but its on a new page, should be just a popup. using firefox 3.5.7.

    Q2. Am i right in thinking it won't work for me in UK (GMT) any config help?

  • UncleCheese
    Avatar
    4085 Posts

    Re: Event Calendar: installaton Link to this post

    If you're going to downgrade to 2.3, you need to use the 2.3 branches of EventCalendar and DOM.

    EventCalendar 2.3:
    http://bluehousegroup.svn.beanstalkapp.com/modules/branches/2.3/event_calendar

    DOM 2.3:
    http://carlinowebdesign.svn.beanstalkapp.com/modules/branches/2.3/dataobject_manager

    (or see the "2.3 branch" sticky in the DOM forum)

  • merrick_sd
    Avatar
    Community Member
    95 Posts

    Re: Event Calendar: installaton Link to this post

    ok thanks.

    I dropped all my tables etc but unable to dev/build

    i got

    Parse error: syntax error, unexpected T_PROTECTED, expecting ';' or '{' in /home/testsd3/public_html/event_calendar/code/CalendarUI.class.php on line 117

    from the 2.3 branch version quoted

    I have changed from

    line 116 public function setAnchorEnd($date)
    protected
    public function Link($action = null) ...etc

    to

    line 116 public function setAnchorEnd($date)
    {
    $this->anchor_end = new sfDate(CalendarUtil::getDateFromString($date));
    }
    public function Link($action = null) ......etc

    done a few tests etc
    ******************
    Many thanks for all your help and advice

    all seems good
    *****************

    1148 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.