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 DatePicker JQuery Error


Go to End
Reply

13 Posts   3232 Views

Avatar
3dgoo

16 April 2010 at 12:27pm Community Member, 133 Posts

Hello,

I have done a fresh install of Silverstripe 2.3.7, installed Data Object Manager r393, and installed Event Calendar r105.

When I add a new Calendar Event and Add a Date the datepicker does not work, and I am unable to edit the start and end dates.

It appears this is due to some javascript errors.

Some of the errors I get are:
In dataobjectmanager_popup.js, dom_jquery_ui.js, and datepicker_init.js the error is 'jquery' is undefined
In datepicker_init.js the error is $('.datepicker input').livequery is not a function

It seems as though jQuery is not loaded for this part of the admin.

Any help would be much appreciated.

Cheers

Avatar
UncleCheese

16 April 2010 at 1:07pm 4085 Posts

If you're on 2.3, you need to be running the 2.3 branch on /branches/2.3/event_calendar

Avatar
3dgoo

16 April 2010 at 3:39pm (Last edited: 16 April 2010 3:40pm), Community Member, 133 Posts

Ah, Thanks mate.

I downloaded the branch. It has this error in it:

Parse error: syntax error, unexpected T_PROTECTED, expecting ';' or '{' in [site-address]\event_calendar\code\CalendarUI.class.php on line 117

Which is:

public function setAnchorEnd($date)
protected


It has an unfinished setAnchorEnd function and a floating protected tag.

I'm guess this should be:

public function setAnchorEnd($date)
{
$this->anchor_end = new sfDate(CalendarUtil::getDateToString($date));
}

Now, even with this branch, the same errors are there. Do I need to get an older version of dataobjectmanager?

Avatar
UncleCheese

16 April 2010 at 3:58pm 4085 Posts

Yeah, make sure you're running the 2.3 branch of DOM, too.

Avatar
3dgoo

16 April 2010 at 5:08pm Community Member, 133 Posts

Awesome. All works now.

Thanks so much, not only for your quick replies and help, but for all the effort you have put into the modules you have created. They really turn Silverstripe into a powerful CMS.

Cheers mate!

Avatar
logiczero

20 April 2010 at 10:59am Community Member, 12 Posts

I have the same problem as ampedup, but I'm not sure how or where to get the branched versions. Are they available in the repository via the web (I couldn't find any 2.3 branches at http://svn.silverstripe.com), or do I have use SVN to get them? I installed the zipped/downloaded version of silverstripe, not a subversion checkout...

Avatar
UncleCheese

20 April 2010 at 11:24am 4085 Posts

Here's the SVN:

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

Avatar
logiczero

20 April 2010 at 11:55am Community Member, 12 Posts

Thanks for your reply UncleCheese. I downloaded the event_calendar code, but there doesn't seem to be a Data Object Manager (DOM) folder under http://bluehousegroup.svn.beanstalkapp.com/modules/branches/2.3
...

Go to Top