FAQ
Edit report at http://pear.php.net/bugs/bug.php?id=16234&edit=1

ID: 16234
Updated by: borz_off@cs.msu.su
Reported By: t_i_leo_1 at hotmail dot com
Summary: Fatal error: Call to protected method
-Status: Open
+Status: Duplicate
Type: Bug
Package: HTML_QuickForm2
Operating System: Linux debian 2.6.18-3-686-bigmem
PHP Version: 5.1.6
Roadmap Versions:
New Comment:

-Status: Open
+Status: Duplicate

duplicate of #14110


Previous Comments:
------------------------------------------------------------------------

[2009-05-17 15:00:57] t_i_leo_1

Description:
------------
Script is running on my local host but not in my server,
I want to know the reason of this error


Test script:
---------------
http://tahir.110mb.com/pear/html.php

Expected result:
----------------
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<style type="text/css">
/* styles borrowed from an older release of Tableless Renderer for QF.

Newer styles work worse with nested fieldsets */
body {
margin-left: 10px;
font-family: Arial,sans-serif;
font-size: small;
}
form {
margin: 0;
padding: 0;
min-width: 500px;
max-width: 600px;
width: 560px;
}
form fieldset {
border: 1px solid black;
padding: 10px 5px;
margin: 0;
/*width: 560px;*/
}
form fieldset.hidden {
border: 0;
}
form fieldset legend {
font-weight: bold;
}
form label {
margin: 0 0 0 5px;
}
form label.qflabel {
display: block;
float: left;
width: 150px;
padding: 0;
margin: 5px 0 0 0;
text-align: right;
}
form input, form textarea, form select {
width: auto;
}
form textarea {
overflow: auto;
}
form br {
clear: left;
}
form div.qfelement {
display: inline;
float: left;
margin: 5px 0 0 10px;
padding: 0;
}
form div.qfreqnote {
font-size: 80%;
}
form span.error, form span.required {
color: red;
}
form div.error {
border: 1px solid red;
padding: 5px;
}
</style>
<title>HTML_QuickForm2 basic elements example</title>
</head>
<body>
<form id="firstForm" method="post" action="/pear/HTML.php">
<div style="display: none;"><input type="hidden" name="_qf__firstForm"
id="_qf__firstForm-0" /></div>
<fieldset id="qfauto-0">
<legend>Text boxes</legend>
<div class="qfrow"><label class="qflabel" for="textTest-0">Test
Text:</label> <div class="qfelement"><input type="text" style="width:
300px;" name="textTest" id="textTest-0" value="Some text"
/></div></div><br />
<div class="qfrow"><label class="qflabel" for="pwdTest-0">Test
Password:</label> <div class="qfelement"><input type="password"
style="width: 300px;" name="pwdTest" id="pwdTest-0" /></div></div><br
/>
<fieldset id="qfauto-1">
<legend>Nested fieldset</legend>
<div class="qfrow"><label class="qflabel"
for="userTest-0">Username:</label> <div class="qfelement"><input
type="text" style="width: 200px" name="userTest" id="userTest-0"
value="luser" /></div></div><br />
<div class="qfrow"><label class="qflabel"
for="passTest-0">Password:</label> <div class="qfelement"><input
type="password" style="width: 200px" name="passTest" id="passTest-0"
/></div></div><br />
</fieldset>
<div class="qfrow"><label class="qflabel" for="areaTest-0">Test
Textarea:</label> <div class="qfelement"><textarea style="width: 300px;"
cols="50" rows="7" name="areaTest" id="areaTest-0">Some text
on multiple lines</textarea></div></div><br />
</fieldset>
<fieldset id="qfauto-2">
<legend>Selects</legend>
<div class="qfrow"><label class="qflabel" for="selSingleTest-0">Single
select:</label> <div class="qfelement"><select name="selSingleTest"
id="selSingleTest-0">
<option value="a">Letter A</option>
<option value="b">Letter B</option>
<option value="c">Letter C</option>
<option value="d">Letter D</option>
<option value="e">Letter E</option>
<option value="f" selected="selected">Letter F</option>
</select></div></div><br />
<div class="qfrow"><label class="qflabel"
for="selMultipleTest-0">Multiple select:</label> <div
class="qfelement"><select multiple="multiple" size="4"
name="selMultipleTest[]" id="selMultipleTest-0">
<option value="a">Letter A</option>
<option value="b" selected="selected">Letter B</option>
<option value="c" selected="selected">Letter C</option>
<option value="d">Letter D</option>
<option value="e">Letter E</option>
<option value="f">Letter F</option>
</select></div></div><br />
</fieldset>
<fieldset id="qfauto-3">
<legend>Checkboxes and radios</legend>
<div class="qfrow"><label class="qflabel" for="boxTest-0">Test
Checkbox:</label> <div class="qfelement"><input type="checkbox"
name="boxTest" id="boxTest-0" value="1" checked="checked" /><label
for="boxTest-0">check me</label></div></div><br />
<div class="qfrow"><label class="qflabel" for="radioTest-0">Test
radio:</label> <div class="qfelement"><input type="radio" value="1"
name="radioTest" id="radioTest-0" /><label for="radioTest-0">select
radio #1</label></div></div><br />
<div class="qfrow"><label class="qflabel"
for="radioTest-1">(continued)</label> <div class="qfelement"><input
type="radio" value="2" name="radioTest" id="radioTest-1"
checked="checked" /><label for="radioTest-1">select radio
#2</label></div></div><br />
</fieldset>
<fieldset id="qfauto-4">
<legend>Buttons</legend>
<div class="qfrow"><label class="qflabel" for="testReset-0"></label>
<div class="qfelement"><input type="reset" value="This is a reset
button" name="testReset" id="testReset-0" /></div></div><br />
<div class="qfrow"><label class="qflabel"
for="testInputButton-0"></label> <div class="qfelement"><input
type="button" value="Click this button" onclick="alert('This is a
test.');" name="testInputButton" id="testInputButton-0"
/></div></div><br />
<div class="qfrow"><label class="qflabel" for="testButton-0"></label>
<div class="qfelement"><button onclick="alert('Almost nothing');"
type="button" name="testButton" id="testButton-0"><img
src="http://pear.php.net/gifs/pear-icon.gif" width="32" height="32"
alt="pear" />This button does almost nothing</button></div></div><br />
<fieldset id="qfauto-5">
<legend>These buttons can submit the form</legend>
<div class="qfrow"><label class="qflabel" for="testSubmit-0"></label>
<div class="qfelement"><input type="submit" value="Test Submit"
name="testSubmit" id="testSubmit-0" /></div></div><br />
<div class="qfrow"><label class="qflabel"
for="testSubmitButton-0"></label> <div class="qfelement"><button
type="submit" name="testSubmitButton" id="testSubmitButton-0"><img
src="http://pear.php.net/gifs/pear-icon.gif" width="32" height="32"
alt="pear" />This button submits</button></div></div><br />
<div class="qfrow"><label class="qflabel" for="testImage-0"></label>
<div class="qfelement"><input type="image"
src="http://pear.php.net/gifs/pear-icon.gif" name="testImage"
id="testImage-0" /></div></div><br />
</fieldset>
</fieldset>
</form>
</body>
</html>

Actual result:
--------------
Fatal error: Call to protected method
HTML_QuickForm2_Element::updateValue() from context
'HTML_QuickForm2_Container'

------------------------------------------------------------------------

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouppear-bugs @
categoriesphp
postedMay 17, '09 at 1:07p
activeMay 17, '09 at 1:07p
posts1
users1
websitepear.php.net

1 user in discussion

Borz_off: 1 post

People

Translate

site design / logo © 2022 Grokbase