[horde] include problems
Jan Schneider
jan at horde.org
Mon Jan 14 01:11:16 PST 2002
Zitat von John Desha <John.Desha at utah.edu>:
> I am in search of help. I have installed PHP 4.1.1 with apache 1.3.19,
> and horde 2.0, on Solaris 8. When I try loading /horde/index.php,
> nothing
> is returned.
>
> The apache error log is showing the error message:
>
> [Sun Jan 13 18:36:36 2002] [error] PHP Fatal error: Failed opening
> required '/lib/Horde.php'
> (include_path='.:/services/apache/php/lib/php')
> in /lib/Registry.php on line 5
>
> line 5 of Registry.php is:
>
> require_once dirname(__FILE__) . '/Horde.php';
>
> If I add the following to just above the require_once line:
>
> echo "Registry.php: ", dirname(__FILE__), "\n";
>
> the following is returned:
>
> Registry.php: /lib
>
> Adding echo __FILE__ , "<br>\n";
> returns /lib/Registry.php
>
> I have horde installed at /services/web-secure/uucc-secure/test/horde.
> In other instances of the code where HORDE_BASE is defined, like in
> index.php, the dirname function returns the full path.
>
> The test.php page loads without errors, and the phpinfo() screen works
> too. The only "red" on the page is for not having FTP, LDAP, MCAL,
> Mcrypt, and PostgreSQL support. I'm using Sybase to store preferences.
>
> When I modify line 5 of Registry.php to read:
>
> require_once HORDE_BASE . dirname(__FILE__) . '/Horde.php';
>
> the error log no longer shows the above error message, but prints:
>
> [Sun Jan 13 19:05:10 2002] [error] PHP Warning: Failed opening
> '/lib/../lib/Lang.php' for inclusion
> (include_path='.:/services/apache/php/lib/php') in /lib/Registry.php on
> line 94
> [Sun Jan 13 19:05:10 2002] [error] PHP Fatal error: Undefined class
> name
> 'lang' in /lib/Registry.php on line 95
>
> and echoing that new line 5 returns the path:
>
> /services/web-secure/uucc-secure/test/horde/lib/Horde.php
>
> If I change line 95 to be an absolute path, I run into more problems.
> I've
> tried modifying the include_path (both server-wide and with .htaccess
> files). Every file in the tree is world readable.
>
> I'm wondering if there is a general cause for my includes to not work
> that
> anyone else knows of.
>
> Any suggestions would be greatly appreciated.
I never heard of such problems, but you should try to use:
require_once HORDE_BASE . '/lib/Horde.php';
and omitting dirname() completely if this is broken in your php.
Jan.
--
::::::::::::::::::::::::::::::::::::::::
AMMMa AG - discover your knowledge
:::::::::::::::::::::::::::
Detmolder Str. 25-33 :: D-33604 Bielefeld
fon +49.521.96878-0 :: fax +49.521.96878-20
http://www.ammma.de
::::::::::::::::::::::::::::::::::::::::::::::
More information about the horde
mailing list