 |
|
|
| View previous topic :: View next topic |
| Author |
Message |
WayneO
Joined: 08 Feb 2009 Posts: 3
|
Posted: Sun Feb 08, 2009 11:07 pm Post subject: HTML_Quickform Debug |
|
|
| My HTML_Qucikform has stopped working. What method should be used to debug this problem ? |
|
| Back to top |
|
 |
mark

Joined: 07 Jan 2007 Posts: 1230
|
Posted: Mon Feb 09, 2009 12:54 am Post subject: |
|
|
"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 |
|
 |
WayneO
Joined: 08 Feb 2009 Posts: 3
|
Posted: Mon Feb 09, 2009 5:15 pm Post subject: |
|
|
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 |
|
 |
mark

Joined: 07 Jan 2007 Posts: 1230
|
Posted: Mon Feb 09, 2009 11:47 pm Post subject: |
|
|
| You're mixing HTML_QuickForm and HTML_QuickForm2. The latter one has a completely new API. |
|
| Back to top |
|
 |
WayneO
Joined: 08 Feb 2009 Posts: 3
|
Posted: Tue Feb 10, 2009 12:27 am Post subject: [Solved] |
|
|
Got it.
Thanks |
|
| Back to top |
|
 |
|
|
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
|
|