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.

Upgrading SilverStripe /

Ask questions about upgrading SilverStripe to the latest version.

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

Event Calendar, upgrade/downgrade, URLSegment


Reply


3 Posts   1041 Views

Avatar
Junglefish

Community Member, 109 Posts

21 May 2010 at 9:18pm

Hi

Having a problem with the Event Calendar.

Background:
I was running SS 2.3.3 and attempted to upgrade to SS 2.4.0. This gave me an incompatibility with the Event Calendar module.
To cut a long story short, I decided to revert back to 2.3.3 for now and look at another issue.

I deleted the following directories that I had installed in order to upgrade to 2.4.0:
cms
googlesitemaps
sapphire
event_calendar
dataobject_manager
Legacydatetimefields

I then re-installed my old 2.3.3 directories:
cms
googlesitemaps
sapphire
event_calendar

I ran /dev/build/ and all looks good.

However, I am now hitting a persistent error that wasn't there before:
"[Notice] Trying to get property of non-object
GET /communications/?flush=1
Line 17 in C:\wamp\www\[path]\SilverStripe\event_calendar\code\CalendarUI.class.php"

Line 17 is this:
var controller_url_segment = '" . $controller->URLSegment . "';

Can anyone tell help me figure out why it hasn't rolled-back correctly?

jf/

Avatar
Junglefish

Community Member, 109 Posts

8 June 2010 at 3:25am

For the record...

It all went wrong because at some point during the upgrade, the database records for Calendars and CalendarEvents got corrupted, ie. the value in the ClassName column was set to NULL.

To fix it, I ran this query directly on the database:

SELECT *
FROM SiteTree_live
WHERE ClassName is null or ClassName = ''

...to identify which records were corrupt and manually inserted the values "Calendar" or "CalendarEvent" against each record as appropriate.

Avatar
fiona

Community Member, 3 Posts

26 June 2010 at 7:01pm

Thanks for sharing this. This is great!

______________
[url=http://www.hotsalegolf.com/]golf clubs for sale[/url]