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   4939 Views

Avatar
UncleCheese

Forum Moderator, 4102 Posts

20 April 2010 at 1:04pm

No, that's a different module. See the "2.3 branch" sticky in the DOM forum.

Avatar
logiczero

Community Member, 12 Posts

21 April 2010 at 4:42am

Edited: 21/04/2010 5:51am

OK, I've got the 2.3 versions of both event_calendar and dataobject_manager installed. I ran http://localhost/silverstripe/index.php/db/build?flush=1 and http://localhost/silverstripe/index.php/dev/build?flush=1. When I try to add a date to a new CalendarEvent, I get the following JavaScript errors:

Error: $(this).parents("div.datepicker:first").metadata is not a function
Source File: http://localhost/silverstripe/dataobject_manager/code/date_picker_field/datepicker_init.js
Line: 5

Error: setting a property that has only a getter

Error: $("a[rel=clear-btn]").live is not a function
Source File: http://localhost/silverstripe/dataobject_manager/code/date_picker_field/datepicker_init.js
Line: 9

Is there some incompatible jquery file cached somewhere that I need to flush?

Avatar
logiczero

Community Member, 12 Posts

21 April 2010 at 10:52am

Since a module I really want to try/use (Workflow) doesn't work with SS 2.3.7, I'm going to abandon it and try the 2.4 version. Looks like a lot of the Event Calendar stuff is different/updated/fixed for that version, so don't waste time looking at this issue.

Avatar
3dgoo

Community Member, 135 Posts

21 April 2010 at 1:37pm

Just so you know to rebuild the database you only need the following:

[siteaddress]/dev/build?flush=1

dev/build has replaced db/build, so you only need to do dev/build

Also, you shouldn't have the index.php in your address. So if you site address is http://localhost/silverstripe/ then your database rebuild call should be:

http://localhost/silverstripe/dev/build?flush=1

Avatar
audy

Community Member, 1 Post

1 June 2010 at 9:58pm

I got same error with @logiczero until now :(

Go to Top