#442 [NEW]: Call to undefined function: getattributes()

From: Date: Tue, 16 Dec 2003 23:09:33 +0000
Subject: #442 [NEW]: Call to undefined function: getattributes()
Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-24474@lists.php.net to get a copy of this message
From: webmaster at detectomania dot com Operating system: Linux Debian 2.4 PHP version: 4.3.4 PHP Bug Type: Bug System Bug description: Call to undefined function: getattributes() 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(); -- Edit bug report at http://pear.php.net/bugs/bug.php?id=442&edit=1 --

« previous php.pear.dev (#24474) next »