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.

We're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

Upgrading SilverStripe /

Ask questions about upgrading SilverStripe to the latest version.

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

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

Go to End

2 Posts   1244 Views


Community Member, 53 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.



Attached Files

Community Member, 53 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