Jump to:

10993 Posts in 2727 Topics by 1818 members

All other Modules

SilverStripe Forums » All other Modules » Preview: Event Calendar Module

Discuss all other Modules here.

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

Page: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37
Go to End
Author Topic: 41607 Views
  • UncleCheese
    Avatar
    4085 Posts

    Re: Preview: Event Calendar Module Link to this post

    Set in your _config.php:

    Debug::send_errors_to('your@email.com');

    and let me know the error.

  • Dynamic
    Avatar
    Community Member
    16 Posts

    Re: Preview: Event Calendar Module Link to this post

    Just tried it with a fresh install and it seems to work fine. Guessing it was something on my end.

    I'll be banging on this all afternoon, and will report back if I run into problems.

    Kudos again on the great module!

  • UncleCheese
    Avatar
    4085 Posts

    Re: Preview: Event Calendar Module Link to this post

    Great! That's what I like to hear. I appreciate you taking the time to look it over.

  • Dynamic
    Avatar
    Community Member
    16 Posts

    Re: Preview: Event Calendar Module Link to this post

    I just made one small tweak to the Calendar.ss template:

    Changed line 41 to:
    <dd>$_Times<% if Last %><% else %>, <% end_if %></dd>

    It wasn't closing the <dd> tag.

  • UncleCheese
    Avatar
    4085 Posts

    Re: Preview: Event Calendar Module Link to this post

    Thanks. I'll update the SVN. Keep 'em coming!

  • Chucky2k
    Avatar
    Community Member
    32 Posts

    Re: Preview: Event Calendar Module Link to this post

    Hi Uncle Cheese

    Finally got the chance to download and install to my install. Everything works great until I try to add an event. I get the following error in a popup. I am using 2.3 rc2.

    ERROR [Warning]: Missing argument 2 for LabelField::__construct(), called in /home/supporta/public_html/ss/event_calendar/code/CalendarEvent.php on line 164 and defined
    IN POST /ss/admin/getitem?ID=27&ajax=1
    Line 17 in /home/supporta/public_html/ss/sapphire/forms/LabelField.php

    Source
    ======
    8: class LabelField extends DatalessField {
    9:    
    10:    /**
    11:     * @param string $name
    12:     * @param string $title
    13:     * @param string $className (Deprecated: use addExtraClass())
    14:     * @param bool $allowHTML (Deprecated: use setAllowHTML())
    15:     * @param Form $form
    16:     */
    * 17:    function __construct($name, $title, $className = null, $allowHTML = false, $form = null) {
    18:       // legacy handling for old parameters: $title, $heading, ...
    19:       // instead of new handling: $name, $title, $heading, ...
    20:       $args = func_get_args();
    21:       if(!isset($args[1])) {
    22:          $title = (isset($args[0])) ? $args[0] : null;
    23:          $name = $title;

    <ul>LabelField->__construct(Every )
    line 164 of CalendarEvent.php

    CalendarEvent->getCMSFields(CMSMain)
    line 382 of CMSMain.php

    CMSMain->getEditForm(27)
    line 748 of LeftAndMain.php

    LeftAndMain->EditForm()
    line 250 of LeftAndMain.php

    LeftAndMain->getitem(HTTPRequest)
    line 162 of Controller.php

    Controller->handleAction(HTTPRequest)
    line 107 of RequestHandler.php

    RequestHandler->handleRequest(HTTPRequest)
    line 122 of Controller.php

    Controller->handleRequest(HTTPRequest)
    line 257 of Director.php

    Director::handleRequest(HTTPRequest,Session)
    line 106 of Director.php

    Director::direct(/admin/getitem)
    line 111 of main.php

    </ul>

    Any help would be greatly appreciated.

    David

  • UncleCheese
    Avatar
    4085 Posts

    Re: Preview: Event Calendar Module Link to this post

    2.3 changed the arguments for LabelField. The version at http://extensions.bluehousegroup.com should have 2.3 compliant code. Try that and let me know what happens.

  • Chucky2k
    Avatar
    Community Member
    32 Posts

    Re: Preview: Event Calendar Module Link to this post

    Hi UncleCheese,

    I have re-downloaded the module and installed but getting the same error. I have also tried on another RC2 install and get the same error.

    Thanks
    David

    41607 Views
Page: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37
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.