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.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

All other Modules /

Discuss all other Modules here.

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

Event Calendar DatePicker JQuery Error


Go to End


13 Posts   4940 Views

Avatar
3dgoo

Community Member, 135 Posts

16 April 2010 at 12:27pm

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

Forum Moderator, 4102 Posts

16 April 2010 at 1:07pm

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

Avatar
3dgoo

Community Member, 135 Posts

16 April 2010 at 3:39pm

Edited: 16/04/2010 3:40pm

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

Forum Moderator, 4102 Posts

16 April 2010 at 3:58pm

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

Avatar
3dgoo

Community Member, 135 Posts

16 April 2010 at 5:08pm

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

Community Member, 12 Posts

20 April 2010 at 10:59am

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

Forum Moderator, 4102 Posts

20 April 2010 at 11:24am

Avatar
logiczero

Community Member, 12 Posts

20 April 2010 at 11:55am

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