TurnKey Linux Virtual Appliance Library

Dokuwiki ACL Bug & Fix

Hi Gents,

The ACL configuration in your dokuwiki appliance isn't functioning correctly due to a bug in the ajax configuration.

The problem is in the php script /var/lib/dokuwiki/plugins/acl/ajax.php
 

if(!defined('DOKU_INC')) define('DOKU_INC',dirname(__FILE__).'/../../../');

This is pointing to the wrong path

if(!defined('DOKU_INC')) define('DOKU_INC','/usr/share/dokuwiki/');

resolved the issue for me

Jeremy's picture

Excellent, thanks for posting

PS I just removed the extra line breaks from the end of your post. If you get a chance before me, it may also be worth noting on the bug tracker.

Jeremy's picture

Nope, don't reckon

If you read the first post carefully you'll see the bug is in an ajax script in: /var/lib/dokuwiki/plugins/acl/ajax.php

That looks like a DokuWiki specific script to me. :)

thanks!

Yep, I had this problem in a custom dokuwiki where I moved the plugins directory out of my public_html, then set a symlink. The problem was that __FILE__ points to the symlink-dereferenced location, so ajax.php couldn't find the rest of the dokuwiki code.

still not working

I just installed a dokuwiki today via the dokuwiki-downloader.php script from splitbrain, on godaddy servers, at http://baldwinsoftware.com/doku/

The ACL is not working. I found this article, and made the recommended change, and it still is not working.  Nobody on #dokuwiki @freenode is responding.

Permissions for logged in admin seems fine, but I have @ALL set to 1 (read), yet, nobody who is not logged in can read the site.  They just see the login page.

Now, since I don't have root access, and installed via splitbrain's script, I imagine dokuwiki is not in /usr/bin...

To which file in the installation should I be pointing with this?

Finally!

Thank You! Thank You! Thank You!

This fixed a bunch of plugin problems for me, including ACL, indexmenu, and tag. I've been searching for a fix for months!

Post new comment

The content of this field is kept private and will not be shown publicly. If you have a Gravatar account, used to display your avatar.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <p> <span> <div> <h1> <h2> <h3> <h4> <h5> <h6> <img> <map> <area> <hr> <br> <br /> <ul> <ol> <li> <dl> <dt> <dd> <table> <tr> <td> <em> <b> <u> <i> <strong> <font> <del> <ins> <sub> <sup> <quote> <blockquote> <pre> <address> <code> <cite> <strike> <caption>

More information about formatting options

Leave this field empty. It's part of a security mechanism.
(Dear spammers: moderators are notified of all new posts. Spam is deleted immediately)