I upgraded to 2.4.0-rc1 last night and am having a couple problems with ArticlePages.
The fist issue is that I get the following message when I try to open ArticlePage files in the cms.
Fatal error: Class 'CalendarDateField' not found in /home/nhstylec/public_html/mysite/code/ArticlePage.php on line 18
I thought the problem was because the upgrade notes for 2.4.0-rc1 stated that the CalendarDateField was moved to the legacydatetimefields module. It wasn't explicit about whether this was an informational statement or if it meant that I had to actually do something, so I checked the tutorial for adding a date to an article to see if it had been updated. To my surprise, it had been updated on March 31st and was still suggesting the use of the CalendarDateField format for adding the publish date to an ArticlePage.
Since I couldn't open any pages containing a CalendarDateField and I couldn't figure out if the legacydatetimefields module mentioned in the upgrade notes was something built into sapphire or if it was something that I needed to add I simply deleted the line from the ArticlePage.php file. This solved the problem of being able to open ArticlePages in the cms, but didn't help with how to get the system to publish a post date.
I am also having a problem saving or publishing an ArticlePage after removing the CalendarDateField. When I click on save or save and publish I get an error message that "This field should save into a HTMLText or HTMLVarchar field"
I assume that it is referring to the author field which is defined as a TextField in the ArticlePage.php file. I did not see anything about this field type being deprecated or relegated elsewhere in the upgrade notes and the tutorial still shows the author box defined as a TextField, so I don't know what to do. I tried changing the field type to HTMLTextField then I tried HtmlTextField, but both options caused another fatal error when I tried to open the file in the cms.
Fatal error: Class 'HTMLTextField' not found in /home/nhstylec/public_html/mysite/code/ArticlePage.php on line 19
Can anyone tell me how to fix either of these problems? I realize that there are always challenges in an upgrade, especially when it's not the final version, but I didn't think I would hit any problems with something as basic as adding a date field.
Thanks!
HB