Not logged in. · Lost password · Register
Forum: General Help and Support Installation and Configuration RSS
$auth preventing upload
kkobashi #1
Member since Aug 2019 · 1 post
Group memberships: Members
Show profile · Link to this post
Subject: $auth preventing upload
Windows 10 64-bit build 1903
Current DokuWiki Greebo
Xampp current 7.3.8

I am the only user on my DokuWiki. Both admin and user.
ACL list says that all my namespaces are admin privileged.

I go and try to upload an image file and I get back the "Sorry you don't have enough rights to upload" error.
Foobar. This was all working fine the day before.

Tried using both the picture icon in the toolbar and Media Manager.

So I turned off debug mode and all of a sudden, I can now upload images. I flipped it back on and can upload images.

Looking at the code, there are two places where this error message is output:

define('AUTH_UPLOAD', 8);

function media_metaform($id,$auth){
    global $lang;

    if($auth < AUTH_UPLOAD) {
        echo '<div class="nothing">'.$lang['media_perm_upload'].'</div>'.NL;
        return false;

function media_uploadform($ns, $auth, $fullscreen = false){
    global $lang;
    global $conf;
    global $INPUT;

    if($auth < AUTH_UPLOAD) {
        echo '<div class="nothing">'.$lang['media_perm_upload'].'</div>'.NL;

In both cases, $auth is the source of the problem as both sections check against a constant. $auth is unreliable and something is hosing it. The question is where is it getting hosed. DokuWiki? XAmpp? Something is not right here.
Close Smaller – Larger + Reply to this post:
Verification code: VeriCode Please enter the word from the image into the text field below. (Type the letters only, lower case is okay.)
Smileys: :-) ;-) :-D :-p :blush: :cool: :rolleyes: :huh: :-/ <_< :-( :'( :#: :scared: 8-( :nuts: :-O
Special characters:
Go to forum
This board is powered by the Unclassified NewsBoard software, 20150713-dev, © 2003-2015 by Yves Goergen
Current time: 2020-02-29, 05:35:56 (UTC +01:00)