[Bug 912] New - special_characters.php fails to find required lib/Registry.php

bugs@bugs.horde.org bugs@bugs.horde.org
Tue, 19 Mar 2002 05:39:40 -0400


http://bugs.horde.org/show_bug.cgi?id=912

*** shadow/912	Tue Mar 19 05:39:40 2002
--- shadow/912.tmp.32014	Tue Mar 19 05:39:40 2002
***************
*** 0 ****
--- 1,74 ----
+ Bug#: 912
+ Product: Horde
+ Version: 2.0 Stable
+ Platform: PHP Code
+ OS/Version: HP-UX
+ Status: NEW   
+ Resolution: 
+ Severity: minor
+ Priority: P4
+ Component: Core
+ Area: BUILD
+ AssignedTo: chuck@horde.org                            
+ ReportedBy: lodder@yacc.com.au               
+ URL: 
+ Summary: special_characters.php fails to find required lib/Registry.php
+ 
+ special_characters.php fails to find required lib/Registry.php
+ 
+ Error message in httpd log is:-
+ 
+ [Tue Mar 19 19:47:00 2002] [error] PHP Fatal error:  Failed opening 
+ required '//lib/../lib/Registry.php' (include_path='.:/usr/local/lib/php') 
+ in //lib/base.php on line 19
+ 
+ This occurred when trying to open the special characters screen from the 
+ compose window. The user sees a blank popup window.
+ 
+ The file /horde/util/special_characters.php require ../lib/base.php. This in 
+ turn requires HORDE_BASE . /lib/Registry.php. The way it is currently 
+ configured it screws up the path to Registry.php
+ 
+ The problem was resolved by changing the require statement in the first stanza 
+ of horde/util/special_characters.php as follows:
+ 
+ <?php
+ /*
+  * $Horde: horde/util/special_characters.php,v 1.1.2.1 2002/01/02 17:05:53 jan 
+ Exp $
+  *
+  * Copyright 1999-2002 Jon Parise <jon@horde.org>
+  *
+  * See the enclosed file COPYING for license information (LGPL).  If you
+  * did not receive this file, see http://www.fsf.org/copyleft/lgpl.html.
+  */
+ 
+ /* Ged
+ require_once '../lib/base.php';
+ */
+ @define('HORDE_BASE', dirname(__FILE__) . '/..');
+ require_once HORDE_BASE . '/lib/base.php';
+ 
+ $title = _("Special Character Input");
+ 
+ require $registry->getTemplatePath('horde') . '/common-header.inc';
+ 
+ ?>
+ 
+ 
+ Config of machine is as follows:
+ 
+       hpux 11.00 parisc1.1 (32 bit) 
+       Apache/1.3.23 (Unix) PHP/4.1.2 mod_ssl/2.8.7 OpenSSL/0.9.6c 
+       mySQL 3.23.42 
+       horde 2.0 
+       imp 3.0 
+       turba 1.0 
+  
+  
+ I hope this helps 
+ 
+ Cheers 
+ 
+ Ged Lodder 
+