On Sat, Apr 26, 2008 at 1:09 PM, cjant83 <[EMAIL PROTECTED]> wrote:
>
> Hey,
> Ive written an application using ZF1.5 on my Windows machine with WAMP
> server installed. It works brilliantly, but when I uploaded it to my web
> server (Linux,PHP5.2,MySQL5) I get into problems. The site works most of the
> time, but randomly it throws up an Error 500. I've turned display_errors ON
> to see if that would help, and it kind of does. It gives me the following
> error message:
>
> Warning: require_once(Zend/Loader.php) [function.require-once]: failed to
> open stream: No such file or directory in
> /var/www/**************/httpdocs/app/bootstrap.php on line 36
> Fatal error: require_once() [function.require]: Failed opening required
> 'Zend/Loader.php' (include_path='.:') in
> /var/www/**************//httpdocs/app/bootstrap.php on line 36
>
> But it works at other times so how can it not be finding the Loader?
> :confused:
>
>
> Here is the top part of my bootstrap up to the point its complaining.
>
> define('DS', DIRECTORY_SEPARATOR);
> define('PS', PATH_SEPARATOR);
> define('ROOT_DIR', dirname(dirname(__FILE__)));
>
> /*
> * Set include path
> */
> $incpath[] = ROOT_DIR . DS . 'app' . DS . 'code' . DS . 'config';
> $incpath[] = ROOT_DIR . DS . 'app' . DS . 'code' . DS . 'models';
> $incpath[] = ROOT_DIR . DS . 'app' . DS . 'library';
> $incpath[] = ROOT_DIR . DS . 'skins';
> $inc_path = implode(PS, $incpath);
> set_include_path($inc_path . PS . get_include_path());
>
> /*
> * Initialise the Zend_Loader and AutoLoad
> */
> require_once 'Zend' . DS . 'Loader.php';
> Zend_Loader::registerAutoLoad();
>
>
> Anyone have a clue??
Is that php(5)-cgi? Or mod_php? With lots of traffic, I had random
errors like that with php-cgi (5.2.5), but I was unable to debug that
in production. ;-)
Btw, if you put display_errors = Off, make sure to enable log_errors =
On (also look into the file setting for syslog or a custom logfile).
:-)
Till