Set in your _config.php:
Debug::send_errors_to('your@email.com');
and let me know the error.
This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.
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.
Set in your _config.php:
Debug::send_errors_to('your@email.com');
and let me know the error.
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!
Great! That's what I like to hear. I appreciate you taking the time to look it over.
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.
Thanks. I'll update the SVN. Keep 'em coming!
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
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.
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