I have a mysterious error generated from a QuickForm script that seems to be generated by a small bit of code create a checkbox group.
Here's the error:
Fatal error: Call to a member function on a non-object in /usr/share/pear/HTML/QuickForm/group.php on line 386
Here's the culprit code:
// Checkboxes to select items to request
$boxes[] = &HTML_QuickForm::createElement('checkbox', 'catalogue', null, 'request catalogue');
$boxes[] = &HTML_QuickForm::createElement('checkbox', 'colorchips', null, 'request color chips');
$form->addGroup($boxes, 'boxes', null, ' ');
$form->addGroupRule('boxes', 'Please select one or more items to request', 'required', null, 1);
Can anyone give me an idea what's causing the problem?