Jump to:

1160 Posts in 2621 Topics by 409 members

Upgrading SilverStripe

SilverStripe Forums » Upgrading SilverStripe » Event Calendar, upgrade/downgrade, URLSegment

Ask questions about upgrading SilverStripe to the latest version.

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

Page: 1
Go to End
Author Topic: 984 Views
  • Junglefish
    Avatar
    Community Member
    104 Posts

    Event Calendar, upgrade/downgrade, URLSegment Link to this post

    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\[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/

  • Junglefish
    Avatar
    Community Member
    104 Posts

    Re: Event Calendar, upgrade/downgrade, URLSegment Link to this post

    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.

  • fiona
    Avatar
    Community Member
    3 Posts

    Re: Event Calendar, upgrade/downgrade, URLSegment Link to this post

    Thanks for sharing this. This is great!

    ______________
    golf clubs for sale

    984 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.