Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#386 Database Error when logging in as non-wikiword

Database
closed
Reini Urban
5
2014-05-05
2004-10-11
No

Running cvs 10/7/2004 version, crao theme, mysql backend. When
I log in using a non-wikiword (i.e. "foo"), the following error is
displayed:

lib/WikiDB/backend/PearDB.php:846: Fatal[256]:
wikidb_backend_peardb_mysql: fatal database error

DB Error: unknown error

( [nativecode=1065 ** Query was empty])

lib/WikiUserNew.php:1672: Notice[8]: Object to string conversion

lib/WikiUserNew.php:1672: Warning[512]: Object

lib/WikiUserNew.php:1682: Notice[8]: Object to string conversion

Fatal PhpWiki Error

lib/WikiDB/backend/PearDB.php:846: Fatal[256]:
wikidb_backend_peardb_mysql: fatal database error

DB Error: unknown error

( [nativecode=1065 ** Query was empty])

Notice: Undefined property: _user in /home/phil/public_html/html/
lib/main.php on line 596

It appears that parsing the non wiki-word username causes the
problem. Wikiwords work fine.

Login logic should catch this and either disallow non wiki-words, or
accept them and work right.

Discussion

  • Reini Urban
    Reini Urban
    2005-01-25

    Logged In: YES
    user_id=13755

    Cannot reproduce anymore: (current CVS)

    define('THEME', 'Crao');
    $USER_AUTH_ORDER = array("Db","PersonalPage");
    define('DATABASE_TYPE','SQL');

    Is it fixed your you also?