Menu

mysql-based auth in phpwiki 1.3.11

Help
stefan
2005-08-02
2012-10-11
  • stefan

    stefan - 2005-08-02

    hello,

    I've installed phpwiki 1.3.11 and it is working fine besides the auth. I've chosen mysql as database and until now all edits have been stored correctly besides user-data entered on 'UserPreferences'. I get the following error:

    lib/WikiDB/backend/PearDB.php (In template 'body' < 'html'):1014: Error: wikidb_backend_peardb_mysql: fatal database error

    * DB Error: no such field
    * (UPDATE user SET prefs='a:2:{s:6:\&quot;userid\&quot;;s:10:\&quot;StefanNuss\&quot;;s:6:\&quot;passwd\&quot;;s:34:\&quot;$1$VfC/wc6d$y4YLUAIlXk4jY9LRe6WSe/\&quot;;}' WHERE userid='StefanNuss' [nativecode=1054 ** Unknown column 'prefs' in 'field list'])
    

    what's the trick in using the mysql-database for auth? can anyone explain?
    any help highly appreciated.

    stefan

     
    • jps68

      jps68 - 2005-08-03

      Hi stefan,
      you need to set DBAUTH_PREF_UPDATE in config.ini.
      This is the SQL-string performed. When you look at the table definitions in schema, prefs is in a table pref and not in user. Change query and it should work.

      Jens.

       
      • stefan

        stefan - 2005-08-05

        hello jens,

        thanks for your advice on my problem. yes, i've already set DBAUTH_PREF_UPDATE, though this didn't solve my problem.
        but i found a different - quite mysterious - way to solve the problem: i configured config.ini as recommended in doc/README.security and everything seems to be fine now, though still no userid and password gets stored in the table 'user' in the database. yet i do not use 'PersonalPage' for authentification passwords get stored correctly - only i do not know where (but i do not really care at the moment).

        conclusion: read doc/README.security.

        good luck, stefan

         

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.