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 and 2.4


Go to End


1688 Views

Avatar
briley

Community Member, 7 Posts

22 December 2009 at 10:43am

Edited: 22/12/2009 10:45am

So, I'm working on a site with Event Calendar and the 2.4 alpha, and I've just about got the admin part working correctly on my test server, but on the live server I'm getting a weird error when I try to create an event in a calendar:

The AJAX request:

/admin/getitem?ID=8&ajax=1

Nothing is printed to the browser, but this was in the server error log:

PHP Fatal error:  Call to a member function FormName() on a non-object in /var/www/vhosts/trainor.com/subdomains/mwp/httpdocs/sapphire/forms/DateField.php on line 54

I'm not really sure why this isn't an issue on my local dev server that (as far as I know) is using the same alpha build as the remote dev server, but I haven't been able to successfully trace through the code to figure out why this is triggering... any thoughts?

[Edit]
I have made a change to the module: I added support for an event to be in multiple calendars using a many-many relationship between CalendarEvents and Calendars and a CalendarHierarchy extension for the Calendar class, if that helps at all.