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

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


Reply


2 Posts   822 Views

Avatar
jfusco

Community Member, 52 Posts

11 June 2011 at 2:59pm

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
Avatar
jfusco

Community Member, 52 Posts

12 June 2011 at 2:24pm

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