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

Bug #18760 Problems with Object to String Conversion
Submitted: 2011-08-25 21:56 UTC
From: claudioandre Assigned:
Status: Bogus Package: HTML_QuickForm2 (version 0.6.0)
PHP Version: 5.1.6 OS: CentOS 2.6.18-028stab092.1
Roadmaps: (Not assigned)    
Subscription  


 [2011-08-25 21:56 UTC] claudioandre (Claudio Andre)
Description: ------------ Hi there, I have installed the 0.6.0 version and i´m having problems with outputting the objects(Select, Input). Just get a "Object" string in the page. Looking to the logs I can see the following errors: PHP Notice: Object of class HTML_QuickForm2_Element_InputText to string conversion in /usr/local/lib/php/HTML/QuickForm2/Renderer/Default.php on line 291 I also had to transform some of the protect methods of the classes to public so that they could work. Could use some help with this. Thank you!

Comments

 [2011-08-25 22:03 UTC] claudioandre (Claudio Andre)
-Operating System: Debian +Operating System: CentOS 2.6.18-028stab092.1
 [2011-08-25 22:38 UTC] avb (Alexey Borzov)
-Status: Open +Status: Feedback
Are you sure you really have PHP 5.3.6 installed? The problems you describe point to PHP 5.1.x at most, see here: http://pear.php.net/bugs/bug.php?id=14110
 [2011-08-25 22:43 UTC] claudioandre (Claudio Andre)
Damn. You are right. with php -v on command line it said the version 5.3.6 but using the phpinfo() it give me 5.1.6. Thanks for the forcing :) Going to upgrade and give some feedback later.
 [2011-08-25 22:55 UTC] claudioandre (Claudio Andre)
Yup, just confirmed it. With 5.3.x everything works!
 [2011-08-25 22:55 UTC] claudioandre (Claudio Andre)
-Status: Feedback +Status: Closed -Assigned To: +Assigned To: claudioandre
 [2011-08-25 22:56 UTC] claudioandre (Claudio Andre)
-PHP Version: 5.3.6 +PHP Version: 5.1.6
 [2011-08-25 23:02 UTC] avb (Alexey Borzov)
-Status: Closed +Status: Bogus
Glad everything worked out. Setting with correct status, "Closed" is for actual bugs that were actually fixed.