From: Steve W. <sw...@pa...> - 2001-03-05 18:40:40
|
On Mon, 5 Mar 2001, Adam Shand wrote: > phpwiki works great when i set it like this in lib/conifig.php: > > $WhichDatabase = 'file'; > > but as soon as i try to set it to 'dba' i get this error: > > Warning: Variable passed to reset() is not an array or object in /var/www/devel.spack.org/phpwiki/lib/dbalib.php on line 52 > Warning: Variable passed to each() is not an array or object in /var/www/devel.spack.org/phpwiki/lib/dbalib.php on line 53 > WikiFatalError > Cannot open database 'wiki' : '/tmp/wikipagesdb', giving up. First, I hope you don't name the file directory and the DBM files the same... that's just an initial guess. > > the web server does have permissions to write there because it works just > fine in file mode so i'm not sure what to do. i'm wondering if debian has > done something a little weird, it breaks all the php extensions into > seperate packages so i only have the core, imap and gd ones installed. > does dba need to be listed in an "extension=xxx" line in my php.ini file? There was a post on the list recently about a special config option, and I think it was about Debian but I can't find it in the list archives... a module had to be loaded by PHP at runtime. Also, did you compile the package yourself or use get-apt (or whatever Debian uses?) You might try setting it to 'dbm' instead of 'dba' and see if that works. I was wondering if dba_* support was compiled in or not. Let me know if any of that helps and we'll try again if not. ~swain --- http://wcsb.org/~swain/ "Without music to decorate it, time is just a bunch of boring production deadlines or dates by which bills must be paid." -- Frank Zappa |