lib/IniConfig.php:300: Error: Invalid DATABASE_TYPE=DATABASE_TYPE.
Choose one of SQL,ADODB,PDO,dba,file,cvs
lib/IniConfig.php:193: Warning: Invalid argument supplied for foreach()
lib/IniConfig.php:221: Notice: missing config setting for CHARSET
lib/IniConfig.php:221: Notice: missing config setting for WIKI_PGSRC
lib/IniConfig.php:221: Notice: missing config setting for
DEFAULT_WIKI_PGSRC
lib/IniConfig.php:207: Warning: array_key_exists() [<a
href='function.array-key-exists'>function.array-key-exists</a>]: The
second argument should be either an array or an object
lib/IniConfig.php:221: Notice: missing config setting for INLINE_IMAGES
lib/IniConfig.php:221: Notice: missing config setting for SUBPAGE_SEPARATOR
lib/IniConfig.php:207: Warning: array_key_exists() [<a
href='function.array-key-exists'>function.array-key-exists</a>]: The
second argument should be either an array or an object
lib/IniConfig.php:221: Notice: missing config setting for
DATABASE_OPTIMISE_FREQUENCY
lib/IniConfig.php:221: Notice: missing config setting for
INTERWIKI_MAP_FILE
lib/IniConfig.php:207: Warning: array_key_exists() [<a
href='function.array-key-exists'>function.array-key-exists</a>]: The
second argument should be either an array or an object
lib/IniConfig.php:207: Warning: array_key_exists() [<a
href='function.array-key-exists'>function.array-key-exists</a>]: The
second argument should be either an array or an object
lib/IniConfig.php:207: Warning: array_key_exists() [<a
href='function.array-key-exists'>function.array-key-exists</a>]: The
second argument should be either an array or an object
lib/IniConfig.php:221: Notice: missing config setting for AUTHORPAGE_TITLE
lib/IniConfig.php:221: Notice: missing config setting for AUTHORPAGE_URL
lib/IniConfig.php:207: Warning: array_key_exists() [<a
href='function.array-key-exists'>function.array-key-exists</a>]: The
second argument should be either an array or an object
lib/IniConfig.php:221: Notice: missing config setting for WIKI_NAME_REGEXP
lib/IniConfig.php:221: Notice: missing config setting for
PLUGIN_CACHED_DATABASE
lib/IniConfig.php:221: Notice: missing config setting for
PLUGIN_CACHED_FILENAME_PREFIX
lib/IniConfig.php:207: Warning: array_key_exists() [<a
href='function.array-key-exists'>function.array-key-exists</a>]: The
second argument should be either an array or an object
lib/IniConfig.php:207: Warning: array_key_exists() [<a
href='function.array-key-exists'>function.array-key-exists</a>]: The
second argument should be either an array or an object
lib/IniConfig.php:221: Notice: missing config setting for
PLUGIN_CACHED_LOWWATER
lib/IniConfig.php:221: Notice: missing config setting for
PLUGIN_CACHED_MAXLIFETIME
lib/IniConfig.php:207: Warning: array_key_exists() [<a
href='function.array-key-exists'>function.array-key-exists</a>]: The
second argument should be either an array or an object
lib/IniConfig.php:221: Notice: missing config setting for
PLUGIN_CACHED_MAXARGLEN
lib/IniConfig.php:221: Notice: missing config setting for
PLUGIN_CACHED_IMGTYPES
lib/IniConfig.php:207: Warning: array_key_exists() [<a
href='function.array-key-exists'>function.array-key-exists</a>]: The
second argument should be either an array or an object
lib/IniConfig.php:207: Warning: array_key_exists() [<a
href='function.array-key-exists'>function.array-key-exists</a>]: The
second argument should be either an array or an object
lib/IniConfig.php:207: Warning: array_key_exists() [<a
href='function.array-key-exists'>function.array-key-exists</a>]: The
second argument should be either an array or an object
lib/IniConfig.php:207: Warning: array_key_exists() [<a
href='function.array-key-exists'>function.array-key-exists</a>]: The
second argument should be either an array or an object
lib/IniConfig.php:207: Warning: array_key_exists() [<a
href='function.array-key-exists'>function.array-key-exists</a>]: The
second argument should be either an array or an object
lib/IniConfig.php:245: Warning: array_key_exists() [<a
href='function.array-key-exists'>function.array-key-exists</a>]: The
second argument should be either an array or an object
lib/IniConfig.php:235: Warning: array_key_exists() [<a
href='function.array-key-exists'>function.array-key-exists</a>]: The
second argument should be either an array or an object
lib/IniConfig.php:245: Warning: array_key_exists() [<a
href='function.array-key-exists'>function.array-key-exists</a>]: The
second argument should be either an array or an object
lib/IniConfig.php:235: Warning: array_key_exists() [<a
href='function.array-key-exists'>function.array-key-exists</a>]: The
second argument should be either an array or an object
lib/IniConfig.php:245: Warning: array_key_exists() [<a
href='function.array-key-exists'>function.array-key-exists</a>]: The
second argument should be either an array or an object
lib/IniConfig.php:235: Warning: array_key_exists() [<a
href='function.array-key-exists'>function.array-key-exists</a>]: The
second argument should be either an array or an object
lib/IniConfig.php:245: Warning: array_key_exists() [<a
href='function.array-key-exists'>function.array-key-exists</a>]: The
second argument should be either an array or an object
lib/IniConfig.php:235: Warning: array_key_exists() [<a
href='function.array-key-exists'>function.array-key-exists</a>]: The
second argument should be either an array or an object
lib/IniConfig.php:245: Warning: array_key_exists() [<a
href='function.array-key-exists'>function.array-key-exists</a>]: The
second argument should be either an array or an object
lib/IniConfig.php:235: Warning: array_key_exists() [<a
href='function.array-key-exists'>function.array-key-exists</a>]: The
second argument should be either an array or an object
lib/IniConfig.php:245: Warning: array_key_exists() [<a
href='function.array-key-exists'>function.array-key-exists</a>]: The
second argument should be either an array or an object
lib/IniConfig.php:235: Warning: array_key_exists() [<a
href='function.array-key-exists'>function.array-key-exists</a>]: The
second argument should be either an array or an object
lib/IniConfig.php:245: Warning: array_key_exists() [<a
href='function.array-key-exists'>function.array-key-exists</a>]: The
second argument should be either an array or an object
lib/IniConfig.php:245: Warning: array_key_exists() [<a
href='function.array-key-exists'>function.array-key-exists</a>]: The
second argument should be either an array or an object
lib/IniConfig.php:235: Warning: array_key_exists() [<a
href='function.array-key-exists'>function.array-key-exists</a>]: The
second argument should be either an array or an object
lib/IniConfig.php:235: Warning: array_key_exists() [<a
href='function.array-key-exists'>function.array-key-exists</a>]: The
second argument should be either an array or an object
lib/IniConfig.php:245: Warning: array_key_exists() [<a
href='function.array-key-exists'>function.array-key-exists</a>]: The
second argument should be either an array or an object
lib/IniConfig.php:245: Warning: array_key_exists() [<a
href='function.array-key-exists'>function.array-key-exists</a>]: The
second argument should be either an array or an object
lib/IniConfig.php:235: Warning: array_key_exists() [<a
href='function.array-key-exists'>function.array-key-exists</a>]: The
second argument should be either an array or an object
lib/IniConfig.php:235: Warning: array_key_exists() [<a
href='function.array-key-exists'>function.array-key-exists</a>]: The
second argument should be either an array or an object
lib/IniConfig.php:245: Warning: array_key_exists() [<a
href='function.array-key-exists'>function.array-key-exists</a>]: The
second argument should be either an array or an object
lib/IniConfig.php:245: Warning: array_key_exists() [<a
href='function.array-key-exists'>function.array-key-exists</a>]: The
second argument should be either an array or an object
lib/IniConfig.php:235: Warning: array_key_exists() [<a
href='function.array-key-exists'>function.array-key-exists</a>]: The
second argument should be either an array or an object
lib/IniConfig.php:235: Warning: array_key_exists() [<a
href='function.array-key-exists'>function.array-key-exists</a>]: The
second argument should be either an array or an object
lib/IniConfig.php:245: Warning: array_key_exists() [<a
href='function.array-key-exists'>function.array-key-exists</a>]: The
second argument should be either an array or an object
lib/IniConfig.php:245: Warning: array_key_exists() [<a
href='function.array-key-exists'>function.array-key-exists</a>]: The
second argument should be either an array or an object
lib/IniConfig.php:235: Warning: array_key_exists() [<a
href='function.array-key-exists'>function.array-key-exists</a>]: The
second argument should be either an array or an object
lib/IniConfig.php:235: Warning: array_key_exists() [<a
href='function.array-key-exists'>function.array-key-exists</a>]: The
second argument should be either an array or an object
lib/IniConfig.php:245: Warning: array_key_exists() [<a
href='function.array-key-exists'>function.array-key-exists</a>]: The
second argument should be either an array or an object
lib/IniConfig.php:245: Warning: array_key_exists() [<a
href='function.array-key-exists'>function.array-key-exists</a>]: The
second argument should be either an array or an object
lib/IniConfig.php:235: Warning: array_key_exists() [<a
href='function.array-key-exists'>function.array-key-exists</a>]: The
second argument should be either an array or an object
lib/IniConfig.php:235: Warning: array_key_exists() [<a
href='function.array-key-exists'>function.array-key-exists</a>]: The
second argument should be either an array or an object
lib/IniConfig.php:245: Warning: array_key_exists() [<a
href='function.array-key-exists'>function.array-key-exists</a>]: The
second argument should be either an array or an object
lib/IniConfig.php:245: Warning: array_key_exists() [<a
href='function.array-key-exists'>function.array-key-exists</a>]: The
second argument should be either an array or an object
lib/IniConfig.php:235: Warning: array_key_exists() [<a
href='function.array-key-exists'>function.array-key-exists</a>]: The
second argument should be either an array or an object
lib/IniConfig.php:300: Error: Invalid DATABASE_TYPE=DATABASE_TYPE.
Choose one of SQL,ADODB,PDO,dba,file,cvs [-------------------------------------]
I can paste in my config.ini if needed. Thanks in advance,
Arao
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
That's an easy one:
DATABASE_TYPE=DATABASE_TYPE
tells you that you haven't define DATABASE_TYPE in your config.ini, so php will automatically assign the string "DATABASE_TYPE" to the constant DATABASE_TYPE which is then invalid.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Actually, I have defined it. Here's tha chunk of my config.ini
[--------------------]
;======================================================================
; Part Two: Database Selection
;======================================================================
; Select the database backend type:
;
; SQL: access one of several SQL databases using the PEAR DB library.
; ADODB: uses the ADODB library for data access. (most general)
; PDO: The new PHP5 dataobkject library. (experimental, no paging yet)
; dba: use one of the standard UNIX dbm libraries. Use BerkeleyDB (db3,4) (fastest)
; file: use a flat file database. (easiest)
; cvs: use a CVS server to store everything. (experimental, not recommended)
DATABASE_TYPE = SQL
; Prefix for filenames or table names
;
; Currently you MUST EDIT THE SQL file too (in the schemas/
; directory because we aren't doing on the fly sql generation
; during the installation.
; Note: This prefix is NOT prepended to the default DBAUTH_
; tables user, pref and member!
DATABASE_PREFIX =
; For SQL based backends, specify the database as a DSN (Data Source Name),
; a kind of URL for databases.
;
; The most general form of a DSN looks like:
;
; dbtype(dbsyntax)://username:password@protocol+hostspec/database?option=value&option2=value2
;
; For a MySQL database, the following should work:
;
; mysql://user:password@host/databasename
;
; To connect over a unix socket, use something like
;
; mysql://user:password@unix(/path/to/socket)/databasename
;
; Valid values for dbtype are mysql, pgsql, or sqlite.
;
DATABASE_DSN = "mysql://wiki_sql:<password>@localhost/phpwiki" [--------------------]
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
We experimented with the pear ini library.
Config_Container_IniFile
It had some issues with string quoting, but you could try to use that as drop-in replacement.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Normally I can figure out what's wrong, but here, absolutely no idea. Running index.php in the main folder returns:
[--------------------------------------]
Fatal Error:
lib/IniConfig.php:300: Error: Invalid DATABASE_TYPE=DATABASE_TYPE.
Choose one of SQL,ADODB,PDO,dba,file,cvs
lib/IniConfig.php:193: Warning: Invalid argument supplied for foreach()
lib/IniConfig.php:221: Notice: missing config setting for CHARSET
lib/IniConfig.php:221: Notice: missing config setting for WIKI_PGSRC
lib/IniConfig.php:221: Notice: missing config setting for
DEFAULT_WIKI_PGSRC
lib/IniConfig.php:207: Warning: array_key_exists() [<a
href='function.array-key-exists'>function.array-key-exists</a>]: The
second argument should be either an array or an object
lib/IniConfig.php:221: Notice: missing config setting for INLINE_IMAGES
lib/IniConfig.php:221: Notice: missing config setting for SUBPAGE_SEPARATOR
lib/IniConfig.php:207: Warning: array_key_exists() [<a
href='function.array-key-exists'>function.array-key-exists</a>]: The
second argument should be either an array or an object
lib/IniConfig.php:221: Notice: missing config setting for
DATABASE_OPTIMISE_FREQUENCY
lib/IniConfig.php:221: Notice: missing config setting for
INTERWIKI_MAP_FILE
lib/IniConfig.php:207: Warning: array_key_exists() [<a
href='function.array-key-exists'>function.array-key-exists</a>]: The
second argument should be either an array or an object
lib/IniConfig.php:207: Warning: array_key_exists() [<a
href='function.array-key-exists'>function.array-key-exists</a>]: The
second argument should be either an array or an object
lib/IniConfig.php:207: Warning: array_key_exists() [<a
href='function.array-key-exists'>function.array-key-exists</a>]: The
second argument should be either an array or an object
lib/IniConfig.php:221: Notice: missing config setting for AUTHORPAGE_TITLE
lib/IniConfig.php:221: Notice: missing config setting for AUTHORPAGE_URL
lib/IniConfig.php:207: Warning: array_key_exists() [<a
href='function.array-key-exists'>function.array-key-exists</a>]: The
second argument should be either an array or an object
lib/IniConfig.php:221: Notice: missing config setting for WIKI_NAME_REGEXP
lib/IniConfig.php:221: Notice: missing config setting for
PLUGIN_CACHED_DATABASE
lib/IniConfig.php:221: Notice: missing config setting for
PLUGIN_CACHED_FILENAME_PREFIX
lib/IniConfig.php:207: Warning: array_key_exists() [<a
href='function.array-key-exists'>function.array-key-exists</a>]: The
second argument should be either an array or an object
lib/IniConfig.php:207: Warning: array_key_exists() [<a
href='function.array-key-exists'>function.array-key-exists</a>]: The
second argument should be either an array or an object
lib/IniConfig.php:221: Notice: missing config setting for
PLUGIN_CACHED_LOWWATER
lib/IniConfig.php:221: Notice: missing config setting for
PLUGIN_CACHED_MAXLIFETIME
lib/IniConfig.php:207: Warning: array_key_exists() [<a
href='function.array-key-exists'>function.array-key-exists</a>]: The
second argument should be either an array or an object
lib/IniConfig.php:221: Notice: missing config setting for
PLUGIN_CACHED_MAXARGLEN
lib/IniConfig.php:221: Notice: missing config setting for
PLUGIN_CACHED_IMGTYPES
lib/IniConfig.php:207: Warning: array_key_exists() [<a
href='function.array-key-exists'>function.array-key-exists</a>]: The
second argument should be either an array or an object
lib/IniConfig.php:207: Warning: array_key_exists() [<a
href='function.array-key-exists'>function.array-key-exists</a>]: The
second argument should be either an array or an object
lib/IniConfig.php:207: Warning: array_key_exists() [<a
href='function.array-key-exists'>function.array-key-exists</a>]: The
second argument should be either an array or an object
lib/IniConfig.php:207: Warning: array_key_exists() [<a
href='function.array-key-exists'>function.array-key-exists</a>]: The
second argument should be either an array or an object
lib/IniConfig.php:207: Warning: array_key_exists() [<a
href='function.array-key-exists'>function.array-key-exists</a>]: The
second argument should be either an array or an object
lib/IniConfig.php:245: Warning: array_key_exists() [<a
href='function.array-key-exists'>function.array-key-exists</a>]: The
second argument should be either an array or an object
lib/IniConfig.php:235: Warning: array_key_exists() [<a
href='function.array-key-exists'>function.array-key-exists</a>]: The
second argument should be either an array or an object
lib/IniConfig.php:245: Warning: array_key_exists() [<a
href='function.array-key-exists'>function.array-key-exists</a>]: The
second argument should be either an array or an object
lib/IniConfig.php:235: Warning: array_key_exists() [<a
href='function.array-key-exists'>function.array-key-exists</a>]: The
second argument should be either an array or an object
lib/IniConfig.php:245: Warning: array_key_exists() [<a
href='function.array-key-exists'>function.array-key-exists</a>]: The
second argument should be either an array or an object
lib/IniConfig.php:235: Warning: array_key_exists() [<a
href='function.array-key-exists'>function.array-key-exists</a>]: The
second argument should be either an array or an object
lib/IniConfig.php:245: Warning: array_key_exists() [<a
href='function.array-key-exists'>function.array-key-exists</a>]: The
second argument should be either an array or an object
lib/IniConfig.php:235: Warning: array_key_exists() [<a
href='function.array-key-exists'>function.array-key-exists</a>]: The
second argument should be either an array or an object
lib/IniConfig.php:245: Warning: array_key_exists() [<a
href='function.array-key-exists'>function.array-key-exists</a>]: The
second argument should be either an array or an object
lib/IniConfig.php:235: Warning: array_key_exists() [<a
href='function.array-key-exists'>function.array-key-exists</a>]: The
second argument should be either an array or an object
lib/IniConfig.php:245: Warning: array_key_exists() [<a
href='function.array-key-exists'>function.array-key-exists</a>]: The
second argument should be either an array or an object
lib/IniConfig.php:235: Warning: array_key_exists() [<a
href='function.array-key-exists'>function.array-key-exists</a>]: The
second argument should be either an array or an object
lib/IniConfig.php:245: Warning: array_key_exists() [<a
href='function.array-key-exists'>function.array-key-exists</a>]: The
second argument should be either an array or an object
lib/IniConfig.php:245: Warning: array_key_exists() [<a
href='function.array-key-exists'>function.array-key-exists</a>]: The
second argument should be either an array or an object
lib/IniConfig.php:235: Warning: array_key_exists() [<a
href='function.array-key-exists'>function.array-key-exists</a>]: The
second argument should be either an array or an object
lib/IniConfig.php:235: Warning: array_key_exists() [<a
href='function.array-key-exists'>function.array-key-exists</a>]: The
second argument should be either an array or an object
lib/IniConfig.php:245: Warning: array_key_exists() [<a
href='function.array-key-exists'>function.array-key-exists</a>]: The
second argument should be either an array or an object
lib/IniConfig.php:245: Warning: array_key_exists() [<a
href='function.array-key-exists'>function.array-key-exists</a>]: The
second argument should be either an array or an object
lib/IniConfig.php:235: Warning: array_key_exists() [<a
href='function.array-key-exists'>function.array-key-exists</a>]: The
second argument should be either an array or an object
lib/IniConfig.php:235: Warning: array_key_exists() [<a
href='function.array-key-exists'>function.array-key-exists</a>]: The
second argument should be either an array or an object
lib/IniConfig.php:245: Warning: array_key_exists() [<a
href='function.array-key-exists'>function.array-key-exists</a>]: The
second argument should be either an array or an object
lib/IniConfig.php:245: Warning: array_key_exists() [<a
href='function.array-key-exists'>function.array-key-exists</a>]: The
second argument should be either an array or an object
lib/IniConfig.php:235: Warning: array_key_exists() [<a
href='function.array-key-exists'>function.array-key-exists</a>]: The
second argument should be either an array or an object
lib/IniConfig.php:235: Warning: array_key_exists() [<a
href='function.array-key-exists'>function.array-key-exists</a>]: The
second argument should be either an array or an object
lib/IniConfig.php:245: Warning: array_key_exists() [<a
href='function.array-key-exists'>function.array-key-exists</a>]: The
second argument should be either an array or an object
lib/IniConfig.php:245: Warning: array_key_exists() [<a
href='function.array-key-exists'>function.array-key-exists</a>]: The
second argument should be either an array or an object
lib/IniConfig.php:235: Warning: array_key_exists() [<a
href='function.array-key-exists'>function.array-key-exists</a>]: The
second argument should be either an array or an object
lib/IniConfig.php:235: Warning: array_key_exists() [<a
href='function.array-key-exists'>function.array-key-exists</a>]: The
second argument should be either an array or an object
lib/IniConfig.php:245: Warning: array_key_exists() [<a
href='function.array-key-exists'>function.array-key-exists</a>]: The
second argument should be either an array or an object
lib/IniConfig.php:245: Warning: array_key_exists() [<a
href='function.array-key-exists'>function.array-key-exists</a>]: The
second argument should be either an array or an object
lib/IniConfig.php:235: Warning: array_key_exists() [<a
href='function.array-key-exists'>function.array-key-exists</a>]: The
second argument should be either an array or an object
lib/IniConfig.php:235: Warning: array_key_exists() [<a
href='function.array-key-exists'>function.array-key-exists</a>]: The
second argument should be either an array or an object
lib/IniConfig.php:245: Warning: array_key_exists() [<a
href='function.array-key-exists'>function.array-key-exists</a>]: The
second argument should be either an array or an object
lib/IniConfig.php:245: Warning: array_key_exists() [<a
href='function.array-key-exists'>function.array-key-exists</a>]: The
second argument should be either an array or an object
lib/IniConfig.php:235: Warning: array_key_exists() [<a
href='function.array-key-exists'>function.array-key-exists</a>]: The
second argument should be either an array or an object
lib/IniConfig.php:300: Error: Invalid DATABASE_TYPE=DATABASE_TYPE.
Choose one of SQL,ADODB,PDO,dba,file,cvs
[-------------------------------------]
I can paste in my config.ini if needed. Thanks in advance,
Arao
That's an easy one:
DATABASE_TYPE=DATABASE_TYPE
tells you that you haven't define DATABASE_TYPE in your config.ini, so php will automatically assign the string "DATABASE_TYPE" to the constant DATABASE_TYPE which is then invalid.
Actually, I have defined it. Here's tha chunk of my config.ini
[--------------------]
;======================================================================
; Part Two: Database Selection
;======================================================================
; Select the database backend type:
;
; SQL: access one of several SQL databases using the PEAR DB library.
; ADODB: uses the ADODB library for data access. (most general)
; PDO: The new PHP5 dataobkject library. (experimental, no paging yet)
; dba: use one of the standard UNIX dbm libraries. Use BerkeleyDB (db3,4) (fastest)
; file: use a flat file database. (easiest)
; cvs: use a CVS server to store everything. (experimental, not recommended)
DATABASE_TYPE = SQL
; Prefix for filenames or table names
;
; Currently you MUST EDIT THE SQL file too (in the schemas/
; directory because we aren't doing on the fly sql generation
; during the installation.
; Note: This prefix is NOT prepended to the default DBAUTH_
; tables user, pref and member!
DATABASE_PREFIX =
; For SQL based backends, specify the database as a DSN (Data Source Name),
; a kind of URL for databases.
;
; The most general form of a DSN looks like:
;
; dbtype(dbsyntax)://username:password@protocol+hostspec/database?option=value&option2=value2
;
; For a MySQL database, the following should work:
;
; mysql://user:password@host/databasename
;
; To connect over a unix socket, use something like
;
; mysql://user:password@unix(/path/to/socket)/databasename
;
; Valid values for dbtype are mysql, pgsql, or sqlite.
;
DATABASE_DSN = "mysql://wiki_sql:<password>@localhost/phpwiki"
[--------------------]
OH...ha...
IniConfig works with parse_ini doesn't it?
my phpinfo() has that under the list of disabled functions...
Oops. That's bad.
We experimented with the pear ini library.
Config_Container_IniFile
It had some issues with string quoting, but you could try to use that as drop-in replacement.
Nevermind, I figured it out...
Now I've got a blank index.php page, AND debug is turned on...this seems to be a common problem...
Hmm...I can't quite figure that out...any way for me to just drop the settings into the script itself? or do other files call config.ini?