PHPBB authentication for DokuWiki

RSS

Last month, I wrote a phpBB authentication module for MediaWiki. However, that's not the only wiki software out there, and another one I've come across is DokuWiki. Unlike MediaWiki, it uses file storage by default instead of requiring a database, which might make it an alternative for small, portable stuff.

Anyway, to install it, you'll need to do the following:

  • Download the source Here
  • Unpack this into the directory you've installed DokuWiki
  • Edit your conf/local.php to include the following:
    
    $conf['authtype'] = 'phpbb';
    
    // Change this to where you've installed phpBB
    $conf['phpbb']['path'] = '../forum/'; 
    
    // Important setting - this will disable
    // dokuwiki's UTF8 functions and use phpbb's instead
    define('NO_UTF8',true);
    

    The standard phpBB group names are available for ACL authentication. For an example conf/acl.auth.php...

    
    # Moderators have full access
    *    @GLOBAL_MODERATORS  8
    # Registered users have read access
    *    @REGISTERED         1
    

Thursday, 23 July 2009
Categories : Code 

Comments

hector (Wednesday, 11 November 2009 17:43)
Hi, I've installed your source, but I got a PHP Fatal error: Cannot redeclare class cache in phpBB3/includes/cache.php on line 434

This error is in my apache error log, can you help me?

Thanks

Ritchie Swann (Monday, 16 November 2009 23:32)
Hi,

I have a feeling that the version of DokuWiki I was using (it was a fixed version I had to integrate for another project) is quite old (the VERSION file states 2006-03-09b) and a newer version might well declare its own 'cache' class which the older one doesn't.

In the meantime, you can work around this by renaming the 'class cache' to 'class phpbbcache' in phpBB3/includes/cache.php. Since the cache is a global, there are few other places in the phpBB code that cross reference in it - the most obvious (and as far as I am aware, only) change you'll need is in phpBB3/include/common.php line 206 : change '$cache = new cache();' to '$cache = new phpbbcache();'

I've found that phpBB tends to be quite good and forgiving about your own custom hacks when upgrading versions. Try that and let us know.

Add a comment
Name (required)
Website
Comment

Archives: