Great Problem with PEAR::QuickForm Group elements.
| From: | webmaster@lindworm.de | Date: | Sat, 21 Aug 2004 10:33:50 +0000 |
| Subject: | Great Problem with PEAR::QuickForm Group elements. | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-14208@lists.php.net to get a copy of this message | ||
Hello,
I have a strange Problem with Quickform Groups.
On my Windows dev mashine, everything works fine. But on different Server
(Linux) it does the following errors.
First of all my code :-)
$form->addElement('header','myHeader','Sponsor
anlegen',$classhead);
$form->addElement('hidden','id',$id);
$c1=array("class"=>"form","size"=>"9");
$plzort[0] = &HTML_QuickForm::createElement('text', 'plz', 'a1',
$c1);
$c2=array("class"=>"form","size"=>"30");
$plzort[1] = &HTML_QuickForm::createElement('text', 'ort', 'a2',
$c2);
$form->addGroup($plzort, 'plzort', 'PLZ / Ort');
if($form->validate())
{processing}
$form->display();
When I start the Form, everything is displayed fine, but after sending I get
the following error:
Fatal error: Call to a member function on a non-object in /
HTML/QuickForm/group.php on line 386
I cant identify why. Especially, because it works with windows, but not on
different Linux servers (I have no possibility to admin this servers).
Here some output of var_dump($plzort); before I add the group.
//First start
array(2) { [0]=> &object(html_quickform_text)(9) { ["_attributes"]=>
array(4) { ["class"]=> string(4) "form" ["size"]=> string(1)
"9" ["name"]=>
string(3) "plz" ["type"]=> string(4) "text" }
["_tabOffset"]=> int(0)
["_tab"]=> string(1) " " ["_lineEnd"]=> string(1) " "
["_comment"]=>
string(0) "" ["_label"]=> string(2) "a1" ["_type"]=>
string(4) "text"
["_flagFrozen"]=> bool(false) ["_persistantFreeze"]=> bool(true) }
[1]=>
&object(html_quickform_text)(9) { ["_attributes"]=> array(4) {
["class"]=>
string(4) "form" ["size"]=> string(2) "30" ["name"]=>
string(3) "ort"
["type"]=> string(4) "text" } ["_tabOffset"]=> int(0)
["_tab"]=> string(1) "
" ["_lineEnd"]=> string(1) " " ["_comment"]=> string(0)
"" ["_label"]=>
string(2) "a2" ["_type"]=> string(4) "text"
["_flagFrozen"]=> bool(false)
["_persistantFreeze"]=> bool(true) } }
//After sending
array(4) { ["plz"]=> string(5) "76227" ["ort"]=> string(9)
"Karlsruhe" [0]=>
&object(html_quickform_text)(9) { ["_attributes"]=> array(4) {
["class"]=>
string(4) "form" ["size"]=> string(1) "9" ["name"]=>
string(3) "plz"
["type"]=> string(4) "text" } ["_tabOffset"]=> int(0)
["_tab"]=> string(1) "
" ["_lineEnd"]=> string(1) " " ["_comment"]=> string(0)
"" ["_label"]=>
string(2) "a1" ["_type"]=> string(4) "text"
["_flagFrozen"]=> bool(false)
["_persistantFreeze"]=> bool(true) } [1]=> &object(html_quickform_text)(9) {
["_attributes"]=> array(4) { ["class"]=> string(4) "form"
["size"]=>
string(2) "30" ["name"]=> string(3) "ort" ["type"]=>
string(4) "text" }
["_tabOffset"]=> int(0) ["_tab"]=> string(1) " "
["_lineEnd"]=> string(1) "
" ["_comment"]=> string(0) "" ["_label"]=> string(2)
"a2" ["_type"]=>
string(4) "text" ["_flagFrozen"]=> bool(false)
["_persistantFreeze"]=>
bool(true) } }
I am using the latest PEAR packages on different PHP versions. PEAR is never
installed on the servers, I include it by myself!
Please help me out.
Thank you very much
Mirco Blitz