Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 3.2.16

Bug #442 Call to undefined function: getattributes()
Submitted: 2003-12-16 23:09 UTC
From: webmaster at detectomania dot com Assigned: mansion
Status: Closed Package: HTML_QuickForm
PHP Version: 4.3.4 OS: Linux Debian 2.4
Roadmaps: (Not assigned)    
Subscription  


 [2003-12-16 23:09 UTC] webmaster at detectomania dot com
Description: ------------ With the default instalation HTML_QuickForm class when I try to display the form ($form->display();), it crash with next message. [16-Dec-2003 23:52:15] PHP Fatal error: Call to undefined function: getattributes() in /usr/local/lib/php/HTML/QuickForm/Renderer/Default.php on line 180 Installed packages: =================== Package Version State Archive_Tar 1.1 stable Console_Getopt 1.2 stable DB 1.5.0RC2 stable HTML_QuickForm 3.2 stable HTML_QuickForm_Contr 1.0.1 stable oller HTTP 1.2.2 stable Mail 1.1.2 stable Net_SMTP 1.2.3 stable Net_Socket 1.0.1 stable PEAR 1.1 stable XML_Parser 1.0.1 stable XML_RPC 1.0.4 stable Reproduce code: --------------- require_once 'HTML/QuickForm.php'; // Instantiate the HTML_QuickForm object $form = new HTML_QuickForm('firstForm'); // Set defaults for the form elements $form->setDefaults(array( 'name' => 'Joe User' )); // Add some elements to the form $form->addElement('header', null, 'QuickForm tutorial example'); $form->addElement('text', 'name', 'Enter your name:', array('size' => 50, 'maxlength' => 255)); $form->addElement('submit', null, 'Send'); // Define filters and validation rules $form->applyFilter('name', 'trim'); $form->addRule('name', 'Please enter your name', 'required', null, 'client'); // Try to validate a form if ($form->validate()) { echo '<h1>Hello, ' . htmlspecialchars($form->exportValue('name')) . '!</h1>'; exit; } // Output the form $form->display();

Comments

 [2003-12-17 00:31 UTC] webmaster at detectomania dot com
HTML_QuickForm requiere HTML_Common, althought it is said no by pear package-dependencies pear package-dependencies HTML_QuickForm This package does not have any dependencies.