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.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

All other Modules /

Discuss all other Modules here.

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

Preview: Event Calendar Module


Go to End


293 Posts   69200 Views

Avatar
UncleCheese

Forum Moderator, 4102 Posts

24 January 2009 at 6:47am

Set in your _config.php:

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

and let me know the error.

Avatar
jsirish

Community Member, 18 Posts

24 January 2009 at 7:01am

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

Forum Moderator, 4102 Posts

24 January 2009 at 7:18am

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

Avatar
jsirish

Community Member, 18 Posts

24 January 2009 at 7:21am

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

Forum Moderator, 4102 Posts

24 January 2009 at 7:32am

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

Avatar
Chucky2k

Community Member, 32 Posts

28 January 2009 at 11:25pm

Edited: 28/01/2009 11:28pm

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

Forum Moderator, 4102 Posts

29 January 2009 at 2:49am

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

Community Member, 32 Posts

29 January 2009 at 2:20pm

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