silverstripe-event-calendar
silverstripe-event-calendar copied to clipboard
Silverstripe 3.0 compatible version unavailable via composer
This can be resolved by branching https://github.com/unclecheese/silverstripe-event-calendar/pull/7 into a new version, 3.0.
You could also create a 3.1 branch, but we may as well keep it at root until 3.2 is out.
Hi @unclecheese , I've created a branch you can pull into your repository. https://github.com/tractorcow/silverstripe-event-calendar/tree/3.0
I don't know how many people are relying on a 3.0 compatible version of this module, but just in case, this should help them out.
Hi Tractor cow - I have tried your 3.0 version in ss 3.0.5 but getting php error - [12-Sep-2013 22:35:25 UTC] PHP Fatal error: Access level to Calendar::$db must be public (as in class Page) in /Applications/MAMP/htdocs/ssnz3/event_calendar/code/Calendar.php on line 3
Isnt this an error from modules for 3.1 being used in 3.0?
Hi @surfjedi , are you sure you have the right version
Does your Calendar.php look like the below:
<?php
class Calendar extends Page {
static $db = array(
'DefaultDateHeader' => 'Varchar(50)',
'OtherDatesCount' => 'Int',
'RSSTitle' => 'Varchar(255)',
'DefaultFutureMonths' => 'Int',
'EventsPerPage' => 'Int',
'DefaultView' => "Enum('today,week,,month,weekend,upcoming','upcoming')"
);
// ...
}
The static without a modifier should be public by default.