Quickform registerElement : include_once Fatal Error
| From: | Noel da Costa | Date: | Sun, 27 Aug 2006 20:28:17 +0000 |
| Subject: | Quickform registerElement : include_once Fatal Error | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-24993@lists.php.net to get a copy of this message | ||
Hi there,
I'm working with PEAR QuickForm.. I've defined my own custom element type, which has been written as a class extension to the Quickform element 'textarea'
I've got the class stored in my docroot and I'm including it via this..
require_once realpath('.').'/FCKeditor/HTML_Quickform_fckeditor.php';
...which works fine.. however, when I try to add the element to my quickform I get this error..
FATAL [/usr/lib/php/HTML/QuickForm.php:566] _loadelement(HTML/QuickForm/fckeditor.php): failed to open stream: No such file or directory
... line 566 is this:
include_once($includeFile);
...which is PHP trying to find the element class from where Quickform expects to see it and failing... However (big however!!)... include_once is supposed to produce a warning, not a FATAL error!!
what's going on?.. .this is PHP v4.4.1 and QuickForm 3.2.5
The strange thing is I've used this include method before successfully (altho it was PHP4.3.10 and QuickForm 3.2.4p11)
Any ideas?
Thanks,
Noel da Costa
Lead Developer
Magnet Harlequin
T: 01895 432400
M: 07989 578078
F: 01895 432444
E: noel.dacosta@magharl.co.uk
W: http://www.magharl.co.uk
This e-mail is intended solely for the addressees named above and any other
use is prohibited. Access to this email by anyone else is unauthorised. It
may contain confidential information. If you have received this e-mail in
error, please contact the sender by return e-mail. We do not accept legal
responsibility for the contents of this message if it has reached you via
the internet. Any opinions expressed are those of the author and are not
necessarily endorsed by the company. Recipients are advised to apply their
own virus check to this message and all incoming e-mail on delivery.