[phpa] Re: Return of "Class error".

Hello, 

I have seen the same thing.
This is on a RedHat 7.2 install with apache-1.3.22-2,
PHP 4.0.6-7, Kernel 2.4.17, glibc-2.2.4-19.3.
Some of the PHP code runs fine, other code can't instantiate objects that it 
should be able to.
I should be able to supply example code if needed.
Darren McClelland 


Jon Frisby writes: 

> 
> I just attempted to install and run PHPA, but encountered a problem. (Linux
> 2.4.3, glibc 2.2.2, PHP 4.0.6, Apache 1.3.19) 
> 
> On one (and only one) page, I get the following error: 
> 
>       [Wed Feb 27 14:48:24 2002] [error] PHP Fatal error:  Cannot instantiate
> non-existent class:  offer in /var/www/yfdvds/offer.inc on line 376 
> 
> All classes exist in their own .inc file, and are include_once'd.  The class
> exists, and is in fact used successfully by numerous other pages.  The only
> difference is that in most pages there are several other include_once's that
> happen before offer.inc is included -- and one file that offer.inc
> include_once's is included by these other files. 
> 
> To put it more clearly:
> Most pages begin with:
> include_once('main.inc');
> Somewhere in main.inc is:
> include_once('user.inc');
> At the top of both user.inc and offer.inc is:
> include_once('easyorm.inc'); 
> 
> So basically easyorm.inc gets included earlier on in every other page, but
> not in this one.  That file declares the base class that offer inherits
> from... 
> 
> Any idea what's going on? 
> 
> -JF 
> 
> ------------------------------------------------------------------------
>   www.php-accelerator.co.uk           Home of the free PHP Accelerator 
> 
> To post, send email to phpa@xxxxxxxxxxxxx
> To unsubscribe, email phpa-request@xxxxxxxxxxxxx with subject unsubscribe 
> 
> 
 
------------------------------------------------------------------------
  www.php-accelerator.co.uk           Home of the free PHP Accelerator

To post, send email to phpa@xxxxxxxxxxxxx
To unsubscribe, email phpa-request@xxxxxxxxxxxxx with subject unsubscribe


Other related posts: