Jump to:

1156 Posts in 2568 Topics by 408 members

Upgrading SilverStripe

SilverStripe Forums » Upgrading SilverStripe » Can't edit article pages after upgrade to 2.4.5 HELP!

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: 792 Views
  • jfusco
    Avatar
    Community Member
    52 Posts

    Can't edit article pages after upgrade to 2.4.5 HELP! Link to this post

    I had some issues upgrading due to some information in my .htaccess file and upgraded from SS 2.3.2 yesterday afternoon. This was done via GoDaddy and it did incremental upgrades from what I could tell.

    In the process of updating or preparing to update I somehow rolled back my database a version and deleted a sponsored link from one of the pages. :O When I went to put the link back in, I clicked on the relevant article page and received the message, "Fatal error: Class 'CalendarDateField' not found in /home/content/u/n/c/unclebubby/html/wavs2/mysite/code/ArticlePage.php on line 19"

    Line 19 reads: $fields->addFieldToTab('Root.Content.Main', new CalendarDateField('Date'), 'Content');

    I removed the section "new CalendarDateField('Date')" from the statement and ended up with an error in FieldSet.php

    I started going down the rabbit hole and commenting out the lines it was balking about but each time I cleared one error, another would pop up. I really need to get this back up and running so I can get that link back up, not to mention just edit my site.

    HELP!

    Thanks,
    Joe

    Attached Files
  • jfusco
    Avatar
    Community Member
    52 Posts

    Re: Can't edit article pages after upgrade to 2.4.5 HELP! Link to this post

    I figured it out! I went back through the tutorials and noticed that in the ArticlePage.php code it was no longer CalendarDateField and was now just simply DateField. Once I changed that and ran a dev/rebuild, editing capabilities returned.

    -- Joe

    792 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.