1043 Posts in 379 Topics by 373 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 871 Views |
-
Event Calendar, upgrade/downgrade, URLSegment

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
LegacydatetimefieldsI then re-installed my old 2.3.3 directories:
cms
googlesitemaps
sapphire
event_calendarI 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\[url=http://www\[path]\SilverStripe\event_calendar\code\CalendarUI.class.php"]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/
-
Re: Event Calendar, upgrade/downgrade, URLSegment

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.
-
Re: Event Calendar, upgrade/downgrade, URLSegment

26 June 2010 at 7:01pm
Thanks for sharing this. This is great!
______________
golf clubs for sale
| 871 Views | ||
|
Page:
1
|
Go to Top |


