Could it be that Horde changes the include path for some reason. If it's set
in php.ini or even .htaccess it shouldn't happen but just another thought.
On Sat, Apr 26, 2008 at 5:09 AM, 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??
> --
> View this message in context:
> http://www.nabble.com/Error500-with-Apache-tp16911831p16911831.html
> Sent from the Zend Framework mailing list archive at Nabble.com.
>
>