Jump to:

10929 Posts in 2613 Topics by 1809 members

All other Modules

SilverStripe Forums » All other Modules » Event Calendar - SS 2.4.3

Discuss all other Modules here.

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

Page: 1 2
Go to End
Author Topic: 2703 Views
  • Terry Apodaca
    Avatar
    Community Member
    109 Posts

    Event Calendar - SS 2.4.3 Link to this post

    I am not sure if something changed, or if I am just missing something when installing this module. I can't get the Event Calendar to work in SS version 2.4.3

    I had it working in 2.3 and even 2.4.0

    but when I upgraded the other day it stopped working. I loaded a new installation on my local machine to start testing out modules before I load them to sites, and I can't get Event Calendar to work on my local machine either (with SS 2.4.3).

    Anyone else seeing this or maybe have some tips for me to check out?

  • UncleCheese
    Avatar
    4085 Posts

    Re: Event Calendar - SS 2.4.3 Link to this post

    Yeah, there are major API changes in SS 2.4.3, and I'm still trying to get caught up.

    --------------------
    SilverStripe tips, tutorials, screencasts and more: http://www.leftandmain.com

  • Terry Apodaca
    Avatar
    Community Member
    109 Posts

    Re: Event Calendar - SS 2.4.3 Link to this post

    Thanks UncleCheese!

    I'll keep an eye out for an update...when you have time to get to it. It's not something thats too pressing at the moment.

  • hornergraphic
    Avatar
    Community Member
    4 Posts

    Re: Event Calendar - SS 2.4.3 Link to this post

    Hi UncleCheese,

    Is this true of SilverStripe 2.4.1 (running on a local MAMP installation for development) as well? I've installed the DataObjectManager, LegacyDateTimeFields and the EventCalendar but when I attempt to view a 'Calendar' page type in the CMS I get the following error with isDev enabled:

    http://localhost:8888 meldet:ERROR [User Error]: collateDataFields() I noticed that a field called 'Priority' appears twice in your form: 'Form_EditForm'. One is a 'DropdownField' and the other is a 'DropdownField'
    IN POST /ss241/admin/getitem?ID=5&ajax=1
    Line 140 in /Applications/MAMP/htdocs/ss241/sapphire/forms/CompositeField.php

    Source
    ======
    131:             if($saveableOnly) {
    132:                $isIncluded = ($field->hasData() && !$field->isReadonly() && !$field->isDisabled());
    133:             } else {
    134:                $isIncluded = ($field->hasData());
    135:             }
    136:             if($isIncluded) {
    137:                $name = $field->Name();
    138:                if($name) {
    139:                   $formName = (isset($this->form)) ? $this->form->FormName() : '(unknown form)';
    * 140:                   if(isset($list[$name])) user_error("collateDataFields() I noticed that a field called '$name'
    appears twice in your form: '{$formName}'. One is a '{$field->class}' and the other is a
    '{$list[$name]->class}'", E_USER_ERROR);
    141:                   $list[$name] = $field;
    142:                }
    143:             }
    144:          }
    145:       }
    146:    }

    <!-- I TRIMMED THE LONG TRACE STATEMENT DOWN TO THE PERTINENT CLASS -->

    Form->loadDataFrom(Calendar)
    line 493 of CMSMain.php

    If it is, I'm a long way from being a Silverstripe expert but would like to use this module on a project that is semi time critical. If you could put me in the right direction to solve these errors maybe I could progress some of the updates?

    My wild stab in the dark here is something is conflicting with the 'Priority' column in the SiteTree table used for Google Sitemaps, but from where I haven't the slightest idea.

    Thanks for all your awesome work at filling in all the blanks of the SS core dev team, DOM, Uploadify and ImageGallery are all awesome additions to every project!

  • blaise4714
    Avatar
    Community Member
    10 Posts

    Re: Event Calendar - SS 2.4.3 Link to this post

    Hi @ll
    Any news about SS 2.4.3 and Event Calendar? I install Event Calendar without errors, but i get error when i want to create a calandar page. I need it, since i want to add a page contains upcoming events and whole calandar of the year. is there another module or possibilities for this task working with SS 2.4.3?
    thank you

  • UncleCheese
    Avatar
    4085 Posts

    Re: Event Calendar - SS 2.4.3 Link to this post

    It looks like maybe SiteTree and Calendar are both calling updateCMSFields(), invoking the new GoogleSiteMaps field.

    I've checked in the change to SVN. Run an update, or simply change line 149 of Calendar.php to:

          $this->extend('updateCalendarFields',$f);

    Hopefully no one out there is decorating their calendar using updateCMSFields!!

    --------------------
    SilverStripe tips, tutorials, screencasts and more: http://www.leftandmain.com

  • Jeramie
    Avatar
    Community Member
    34 Posts

    Re: Event Calendar - SS 2.4.3 Link to this post

    As usual UncleCheese, you are a life saver. Thank you!

  • blaise4714
    Avatar
    Community Member
    10 Posts

    Re: Event Calendar - SS 2.4.3 Link to this post

    Thank you UncleCheese!! it works fine now. i was able to create a calendar page on the cms.
    I have some questions about the module:
    For the calender page, is it possible to put the calanderwidget in the side Navigation (on the left) of the Page, where children Page are (like a normal page)? and how?
    The event calendar come only with the languages german and english. If i want also french and spanish, should i only create the languages files?
    thank you for your answers

    2703 Views
Page: 1 2
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.