PEAR Forum :: PHP Extension and Application Repository

PEAR Forum Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
HTML_Quickform Debug

 
Post new topic   Reply to topic    PEAR Forum Forum Index -> HTML
View previous topic :: View next topic  
Author Message
WayneO



Joined: 08 Feb 2009
Posts: 3

PostPosted: Sun Feb 08, 2009 11:07 pm    Post subject: HTML_Quickform Debug Reply with quote

My HTML_Qucikform has stopped working. What method should be used to debug this problem ?
Back to top
View user's profile Send private message
mark



Joined: 07 Jan 2007
Posts: 1230

PostPosted: Mon Feb 09, 2009 12:54 am    Post subject: Reply with quote

"stopped working" is a bad description. What do you see and what do you don't see? And what has changed since it worked?

Anyway, it might help to insert the following lines at the beginning of your script:
Code:

error_reporting(E_ALL);
ini_set('display_errors', 1);
require_once 'PEAR.php';
PEAR::setErrorHandling(PEAR_ERROR_DIE);
Back to top
View user's profile Send private message
WayneO



Joined: 08 Feb 2009
Posts: 3

PostPosted: Mon Feb 09, 2009 5:15 pm    Post subject: Reply with quote

I think the path to HTML/Quickform.php changed. I see a path not found error.

Where was it that path was set ?

Sorry it has been years since I had to touch this program.

[Solved path problem]

Now getting the following error

HTML_QuickForm2_InvalidArgumentException
Element type 'header' is not known in <b>/usr/local/php-5.2.6/lib/php/HTML/QuickForm2/Container.php</b> on line <b>262
thrown in /usr/local/php-5.2.6/lib/php/HTML/QuickForm2/Factory.php on line 235
Back to top
View user's profile Send private message
mark



Joined: 07 Jan 2007
Posts: 1230

PostPosted: Mon Feb 09, 2009 11:47 pm    Post subject: Reply with quote

You're mixing HTML_QuickForm and HTML_QuickForm2. The latter one has a completely new API.
Back to top
View user's profile Send private message
WayneO



Joined: 08 Feb 2009
Posts: 3

PostPosted: Tue Feb 10, 2009 12:27 am    Post subject: [Solved] Reply with quote

Got it.

Thanks
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    PEAR Forum Forum Index -> HTML All times are GMT + 2 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



PEAR Forum topic RSS feed 
Powered by phpBB © 2001, 2005 phpBB Group

Provided by Ministry of Web developement