[Tickets #13025] Cannot load conf.xml in horde config

noreply at bugs.horde.org noreply at bugs.horde.org
Sun Mar 9 13:12:58 UTC 2014


DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.

Ticket URL: http://bugs.horde.org/ticket/13025
------------------------------------------------------------------------------
  Ticket             | 13025
  Created By         | spamstop2 at terriertech.com
  Summary            | Cannot load conf.xml in horde config
  Queue              | Horde Base
  Version            | 5.1.5
  Type               | Bug
  State              | Unconfirmed
  Priority           | 1. Low
  Milestone          |
  Patch              | 1
  Owners             |
------------------------------------------------------------------------------


spamstop2 at terriertech.com (2014-03-09 13:12) wrote:

Symptom: Horde configuration editor,  
http://localhost/admin/config/config.php?app=<anything>, gives white  
screen until web server restarted.

Reproducing: This cannot be reproduced with 100% reliability, but I  
can cause it with very high probability with the following steps.
1. Restart web server
2. Go to Horde config
3. Go to Imp
4. Go to Kronolith
5. Return to Horde config
6. Reload page about 5 times

Relevant logs: syslog,

Mar  9 07:47:54 host HORDE: [horde] PHP ERROR: DOMDocument::load():  
I/O warning : failed to load external entity  
"/usr/share/pear/www/horde/config/conf.xml" [pid 17425 on line 187 of  
"/usr/share/pear/Horde/Config.php"]

error.log,

2014/03/09 07:57:35 [error] 18034#0: *18 FastCGI sent in stderr: "PHP  
message: PHP Fatal error:  Call to a member function hasChildNodes()  
on a non-object in /usr/share/pear/Horde/Config.php on line 204
PHP message: PHP Stack trace:
PHP message: PHP   1. {main}()  
/usr/share/pear/www/horde/admin/config/config.php:0
PHP message: PHP   2. Horde_Config_Form->__construct()  
/usr/share/pear/www/horde/admin/config/config.php:35
PHP message: PHP   3. Horde_Config->readXMLConfig()  
/usr/share/pear/Horde/Config/Form.php:67" while reading response  
header from upstream, client: 127.0.0.1, server: localhost, request:  
"GET /admin/config/config.php?app=horde HTTP/1.1", upstream:  
"fastcgi://unix:/var/run/php5-fpm.sock:", host: "localhost", referrer:  
"http://localhost/admin/config/"

Cause: Appears to be the same root problem and solution described at  
http://pyd.io/f/topic/failed-to-load-external-entity-boot-confmanifest-xml/page/3/#post-72211

Solution: Add call to libxml_disable_entity_loader(false) before  
loading conf.xml in /usr/share/pear/Horde/Config.php (see patch).

Environment: Horde 5.1.5, php 5.3.3, libxml2 2.7.6.



spamstop2 at terriertech.com (2014-03-09 13:12) uploaded: config.patch

http://bugs.horde.org/h/services/download/?app=whups&actionID=download_file&file=config.patch&ticket=13025&fn=%2Fconfig.patch





More information about the bugs mailing list