[Tickets #5654] application configuration crashes when comment is missing in conf.xml

bugs at bugs.horde.org bugs at bugs.horde.org
Tue Aug 21 16:20:22 UTC 2007


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

Ticket URL: http://bugs.horde.org/ticket/?id=5654
-----------------------------------------------------------------------
 Ticket             | 5654
 Created By         | mi.braun at onlinehome.de
 Summary            | application configuration crashes when comment is missing in conf.xml
 Queue              | Horde Framework Packages
 Version            | FRAMEWORK_3
 Type               | Bug
 State              | Unconfirmed
 Priority           | 1. Low
 Owners             | 
-----------------------------------------------------------------------


mi.braun at onlinehome.de (2007-08-21 09:20) wrote:

Hi,

I've been trying to create a horde app.
Therefore I followed
http://wiki.horde.org/Doc/Dev/Configuration?referrer=Doc%2FDev# .
But when I got at creating the conf.php (after having created the
conf.xml), the browser window
(http://127.0.0.1/horde/admin/setup/config.php?app=newapp) just remained
empty and the server log showed up a lot of errors.

The conf.xml looked like:
<?xml version="1.0"?>
<configuration>

 <configtab name="sql" desc="Database">
  <configsection name="sql">
   <configheader>Horde Database Settings</configheader>
   <configdescription>&lt;strong&gt;NOTE:&lt;/strong&gt; These are only
the
   &lt;em&gt;default&lt;/em&gt; values for any database driven backends.
You
   still need to configure the different systems like "Preferences" or
   "DataTree" to actually &lt;em&gt;use&lt;/em&gt; a database
   backend.</configdescription>
   <configsql switchname="phptype" baseconfig="true" />
  </configsection>
 </configtab>

</configuration>

The following errors where recorded:
[Tue Aug 21 18:19:14 2007] [error] [client 127.0.0.1] PHP Notice:  Trying
to get property of non-object in /usr/share/horde/lib/Horde/Config.php on
line 1308, referer: http://127.0.0.1/horde/admin/setup/
[Tue Aug 21 18:19:14 2007] [error] [client 127.0.0.1] PHP Stack trace:,
referer: http://127.0.0.1/horde/admin/setup/
[Tue Aug 21 18:19:14 2007] [error] [client 127.0.0.1] PHP   1. {main}()
/usr/share/horde/admin/setup/config.php:0, referer:
http://127.0.0.1/horde/admin/setup/
[Tue Aug 21 18:19:14 2007] [error] [client 127.0.0.1] PHP   2.
ConfigForm->ConfigForm() /usr/share/horde/admin/setup/config.php:41,
referer: http://127.0.0.1/horde/admin/setup/
[Tue Aug 21 18:19:14 2007] [error] [client 127.0.0.1] PHP   3.
Horde_Config->readXMLConfig() /usr/share/horde/lib/Horde/Config.php:1188,
referer: http://127.0.0.1/horde/admin/setup/
[Tue Aug 21 18:19:14 2007] [error] [client 127.0.0.1] PHP   4.
Horde_Config_Node->__get() /usr/share/horde/lib/Horde/Config.php:0,
referer: http://127.0.0.1/horde/admin/setup/

Michael


After I changed it to:
<?xml version="1.0"?>
<!-- $Horde: roteskreuz/config/conf.xml,v 1.74.2.48 2007/02/02 11:03:05
jan Exp $ -->
<configuration>

 <configtab name="sql" desc="Database">
  <configsection name="sql">
   <configheader>Horde Database Settings</configheader>
   <configdescription>&lt;strong&gt;NOTE:&lt;/strong&gt; These are only
the
   &lt;em&gt;default&lt;/em&gt; values for any database driven backends.
You
   still need to configure the different systems like "Preferences" or
   "DataTree" to actually &lt;em&gt;use&lt;/em&gt; a database
   backend.</configdescription>
   <configsql switchname="phptype" baseconfig="true" />
  </configsection>
 </configtab>

</configuration>

everything worked fine.
I guess the



More information about the bugs mailing list