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.

All other Modules

Discuss all other Modules here.

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

Event Calendar: installaton


5 Posts   1155 Views


3 June 2010 at 2:42am (Last edited: 3 June 2010 3:15am), Community Member, 95 Posts

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?


3 June 2010 at 4:06am 4085 Posts

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.


3 June 2010 at 10:27pm (Last edited: 4 June 2010 1:37am), Community Member, 95 Posts

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

also using

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?


4 June 2010 at 2:28am 4085 Posts

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

EventCalendar 2.3:

DOM 2.3:

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


4 June 2010 at 11:09pm (Last edited: 5 June 2010 12:04am), Community Member, 95 Posts

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)
public function Link($action = null) ...etc


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