Re: Quickform Captcha (The script tried to execute a method or access a property of an incomplete object)
| From: | Justin Patrin | Date: | Sat, 17 Feb 2007 01:25:12 +0000 |
| Subject: | Re: Quickform Captcha (The script tried to execute a method or access a property of an incomplete object) | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-26604@lists.php.net to get a copy of this message | ||
On 2/12/07, Louie Miranda <lmiranda@gmail.com> wrote:
[Tue Feb 13 08:40:26 2007] [error] PHP Fatal error: HTML_QuickForm_CAPTCHA::getValue() [<a href='function.getValue'> function.getValue</a>]: The script tried to execute a method or access a property of an incomplete object. Please ensure that the class definition "Text_CAPTCHA_Driver_Image" of the object you are trying to operate on was loaded _before_ unserialize() gets called or provide a __autoload() function to load the class definition in /usr/local/php5/lib/php/HTML/QuickForm/CAPTCHA.php on line 148 I got this error, when i loaded the code on this link: http://www.11abacus.com/dev/pear/doc/HTML/QuickForm/examples/qfcaptcha_form_image.php To my website. I wonder whats wrong?You're using a session object before you've loaded the definition of that object. You need to require_once() the file that defines that class before you use the object. -- Justin Patrin