From: Alfredo A. <alf...@li...> - 2006-03-01 18:28:28
|
Hi all, I have some problem with phpwiki 1.3.12_rc2 The first one is probably caused by a little bug in the backend code for postgresql. Trying to "sign in" I receive the following fatal error: |/usr/local/share/phpwiki-1.3.12_rc2/lib/WikiDB/backend/PearDB.php:1024: | Error: wikidb_backend_peardb_pgsql: fatal database error | | * DB Error: no such table | * (SELECT prefs FROM pref WHERE userid='AlfredoAmontagna' [nativecode=ERROR: relation "pref" does not exist]) | * | |Notice: Undefined property: _user in /usr/local/share/phpwiki-1.3.12_rc2/lib/main.php on line 734 I think that in the code is missed the prefix defined in the config file: define('DATABASE_PREFIX', 'italt_'); Infact after creating the table "pref" (without prefix) the problem seems solved. |CREATE TABLE pref ( | userid CHAR(48) PRIMARY KEY, | prefs TEXT NULL DEFAULT '', | passwd CHAR(48) DEFAULT '', | groupname CHAR(48) DEFAULT 'users' |); |GRANT SELECT,INSERT,UPDATE,DELETE ON pref TO "www-data"; I'm sorry, but I'm not a coder and I'm not able to check. The second problem is very strange for me, and I cannot reproduce it :-( Sometime trying to modify a page, after giving "?action=edit" the browser receive a blank (empty) page. This strange problem happens also with other backend type. Can someone point me to some setting or to something to check to give more information? TIA -- Bye, Alfredo |