Now I seem to have a better understanding of what an announcement is and an event page is. So, I have a calendar page and an event page for a class I will be teaching in the fall. I added the event date and told it to repeat every week (but I only need 3 weeks because that is how long the class lasts). However, how do I tell it when to stop?
Then when I click on the event page, I get the following. And this leads me to the question "do I need the dataobject manager?" as someone else asked. I don't have any other modules installed except the event calendar. Any help would be appreciated.
I got around the error below by adding each class date separately and it worked.
[Notice] Object of class CalendarDateTime could not be converted to int
GET /SilverStripe/wscc-introduction-to-web-design/
Line 1745 in D:\Program Files\xampp\htdocs\SilverStripe\sapphire\core\model\DataObject.php
Source
1736 } else {
1737 $defaults = $this->stat('defaults');
1738 // if a field is not existing or has strictly changed
1739 if(!isset($this->record[$fieldName]) || $this->record[$fieldName] !== $val) {
1740 // TODO Add check for php-level defaults which are not set in the db
1741 // TODO Add check for hidden input-fields (readonly) which are not set in the db
1742 // At the very least, the type has changed
1743 $this->changed[$fieldName] = 1;
1744
1745 if(!isset($this->record[$fieldName]) || $this->record[$fieldName] != $val) {
1746 // Value has changed as well, not just the type
1747 $this->changed[$fieldName] = 2;
1748 }
1749
1750 // value is always saved back when strict check succeeds
1751 $this->record[$fieldName] = $val;
Trace
* DataObject->setField(StartDate,Object id #290)
Line 126 of ViewableData.php
* ViewableData::__set(StartDate,Object id #290)
Line 279 of CalendarEvent.php
* CalendarEvent->OtherDates()
* call_user_func_array(Array,Array)
Line 111 of Object.php
* Object->__call(OtherDates,Array)
* CalendarEvent_Controller->OtherDates()
* call_user_func_array(Array,Array)
Line 551 of ViewableData.php
* ViewableData->cachedCall(OtherDates,,)
Line 592 of ViewableData.php
* ViewableData->hasValue(OtherDates)
Line 198 of .cacheD..Program Files.xampp.htdocs.SilverStripe.event_calendar.templates.Layout.CalendarEvent.ss
* include(C:\WINDOWS\Temp\silverstripe-cacheD--Program-Files-xampp-htdocs-SilverStripe\.cacheD..Program Files.xampp.htdocs.SilverStripe.event_calendar.templates.Layout.CalendarEvent.ss)
Line 354 of SSViewer.php
* SSViewer->process(Object id #267)
Line 346 of SSViewer.php
* SSViewer->process(Object id #267)
Line 175 of Controller.php
* Controller->handleAction(Object id #7)
Line 107 of RequestHandler.php
* RequestHandler->handleRequest(Object id #7)
Line 122 of Controller.php
* Controller->handleRequest(Object id #7)
Line 28 of ModelAsController.php
* ModelAsController->handleRequest(Object id #7)
Line 277 of Director.php
* Director::handleRequest(Object id #7,Session)
Line 121 of Director.php
* Director::direct(/wscc-introduction-to-web-design/)
Line 115 of main.php