silverstripe-event-calendar icon indicating copy to clipboard operation
silverstripe-event-calendar copied to clipboard

Silverstripe 3.0 compatible version unavailable via composer

Open tractorcow opened this issue 12 years ago • 3 comments

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.

tractorcow avatar May 15 '13 20:05 tractorcow

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.

tractorcow avatar Jun 19 '13 22:06 tractorcow

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?

surfjedi avatar Sep 12 '13 22:09 surfjedi

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.

tractorcow avatar Sep 12 '13 23:09 tractorcow