Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

All other Modules

Discuss all other Modules here.

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

Preview: Event Calendar Module


Reply

293 Posts   41906 Views

Avatar
UncleCheese

24 January 2009 at 6:47am 4085 Posts

Set in your _config.php:

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

and let me know the error.

Avatar
Dynamic

24 January 2009 at 7:01am Community Member, 16 Posts

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!

Avatar
UncleCheese

24 January 2009 at 7:18am 4085 Posts

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

Avatar
Dynamic

24 January 2009 at 7:21am Community Member, 16 Posts

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.

Avatar
UncleCheese

24 January 2009 at 7:32am 4085 Posts

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

Avatar
Chucky2k

28 January 2009 at 11:25pm (Last edited: 28 January 2009 11:28pm), Community Member, 32 Posts

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

Avatar
UncleCheese

29 January 2009 at 2:49am 4085 Posts

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.

Avatar
Chucky2k

29 January 2009 at 2:20pm Community Member, 32 Posts

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