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


Reply

5 Posts   1155 Views

Avatar
merrick_sd

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?

Avatar
UncleCheese

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.

Avatar
merrick_sd

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
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?

Avatar
UncleCheese

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:
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)

Avatar
merrick_sd

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)
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
*****************