6.0.0-beta1
9/18/25

[#1844] Setup fails with "Invalid data" for database settings
Summary Setup fails with "Invalid data" for database settings
Queue Horde Base
Queue Version HEAD
Type Bug
State Resolved
Priority 1. Low
Owners
Requester t.juhnke (at) gmx (dot) de
Created 04/21/2005 (7455 days ago)
Due
Updated 04/22/2005 (7454 days ago)
Assigned 04/21/2005 (7455 days ago)
Resolved 04/22/2005 (7454 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch No

History
04/22/2005 02:41:18 PM t (dot) juhnke (at) gmx (dot) de Comment #8 Reply to this comment
Sorry, NOW I understand your question for upgrading the framework. I 
forgot to execute



php -q install-packages.php



;)
04/22/2005 01:08:56 PM Jan Schneider State ⇒ Resolved
 
04/22/2005 12:28:40 PM t (dot) juhnke (at) gmx (dot) de Comment #7 Reply to this comment
No, I didn't update from an older checkout. I got another installation 
of horde (other directory, other server) and compared the two conf.xml 
files of the /horde/config directory. I thought that there must be an 
error with this configuration file. And I saw that the new conf.xml (v 
1.87) isn't the same as the conf.xml (v 1.74) of the other 
installation. Especially at the Database configtab section!



I solved this problem, by replacing



  <configtab name="sql" desc="Database">

   <configsection name="sql">

    <configheader>Horde Database Settings</configheader>

    <configsql switchname="phptype" baseconfig="true" />

   </configsection>

</configtab>



with



<configtab name="sql" desc="Database">

   <configsection name="sql">

    <configheader>Horde Database Settings</configheader>

    <configenum name="phptype" desc="If Horde uses a database, which 
database backend are we using? If you are not using a database for 
anything, you can ignore this entire section.">mysql

     <values>

      <value desc="dBase">dbase</value>

      <value desc="Firebird/InterBase">ibase</value>

      <value desc="Frontbase">fbsql</value>

      <value desc="Informix">ifx</value>

      <value desc="mSQL">msql</value>

      <value desc="MS SQL Server">mssql</value>

      <value desc="MySQL">mysql</value>

      <value desc="Oracle 8">oci8</value>

      <value desc="ODBC">odbc</value>

      <value desc="PostgreSQL">pgsql</value>

      <value desc="SQLite">sqlite</value>

      <value desc="Sybase">sybase</value>

     </values>

    </configenum>

    <configboolean name="persistent" desc="Request persistent 
connections?">false</configboolean>

    <configswitch name="protocol" desc="What protocol will we use to 
connect to the database?">unix

     <case name="unix" desc="UNIX Sockets">

      <configstring name="socket" required="false" desc="Location of 
UNIX socket"/>

     </case>

     <case name="tcp" desc="TCP/IP">

      <configinteger name="port" required="false" desc="Port the DB is 
running on, if non-standard"/>

     </case>

    </configswitch>

    <configstring name="hostspec" desc="What hostname is the database 
server running on, or what is the name of the system DSN to 
use?">localhost</configstring>

    <configstring name="username" desc="What username do we 
authenticate to the database server as?">horde</configstring>

    <configstring name="password" required="false" desc="What password 
do we authenticate to the database server with?"/>

    <configstring name="database" desc="What database name/tablespace 
are we using?">horde</configstring>

    <configstring name="charset" desc="What charset does the database 
use internally?">iso-8859-1</configstring>

   </configsection>

  </configtab>



and the setup of the current CVS snapshot worked! Thanks for your help 
and tipps!
04/21/2005 04:48:54 PM Jan Schneider Comment #6 Reply to this comment
That wasn't the question.
04/21/2005 04:03:09 PM t (dot) juhnke (at) gmx (dot) de Comment #5 Reply to this comment
First I want to thank you for your fast reply! ;)



I entered this command to check out the horde base:



cvs co horde
04/21/2005 03:56:35 PM Jan Schneider Comment #4 Reply to this comment
Did you update from an older checkout? Then you didn't update the framework.
04/21/2005 03:52:56 PM t (dot) juhnke (at) gmx (dot) de Comment #3 Reply to this comment
Hmm, maybe I've checked out the wrong version? test.php tells me this 
version information: "Horde: 3.1-cvs"



The conf.xml has this version information:



<!-- $Horde: horde/config/conf.xml,v 1.87 2005/04/15 20:44:53 jan Exp $ -->



And this is the content of the configtab section "Database":



  <configtab name="sql" desc="Database">

   <configsection name="sql">

    <configheader>Horde Database Settings</configheader>

    <configsql switchname="phptype" baseconfig="true" />

   </configsection>

  </configtab>



I've copied the information from the older conf.xml over this 
configtab and the setup was successfull now...
04/21/2005 03:21:22 PM Jan Schneider Comment #2
State ⇒ Feedback
Reply to this comment
In the Database tab shouldn't be a "Horde Defaults" selection, because 
this is where you define the defaults. And I don't get this selection.
04/21/2005 03:15:26 PM t (dot) juhnke (at) gmx (dot) de Comment #1
State ⇒ Unconfirmed
Priority ⇒ 1. Low
Type ⇒ Bug
Summary ⇒ Setup fails with "Invalid data" for database settings
Queue ⇒ Horde Base
Reply to this comment
Hello!

I've checked out the latest code of the horde framework. After 
installing the database and checking the settings with test.php I 
wanted to configure the application. I've set the correct database 
connection values at the database tab. But after clicking on "Generate 
Horde Configuration" (Is this right? I'm using the german 
translation.) an error occured:



"There was an error in the configuration form. Perhaps you left out a 
required field."



The Setup returned to the "Database" tab and the select box is set to 
"Horde defaults", but I had entered the correct values after selecting 
"Custom parameters".



Also, after changing this select box in e.g. "Preference system" (What 
preferences driver should we use?) from "None" to "SQL Database", the 
entered information at the "Database" tab gets lost. I've compared the 
conf.xml file of another (older) horde installation and there are some 
big changes at the section



<configtab name="sql" desc="Database">



e.g. the list with all database values isn't existent in the current conf.xml.

Saved Queries