You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The savedir parameter of dokuwiki is by default set to ./data. If you run Dokuwiki with this kind of configuration, when using the dokuwiki-saml plugin, the media breaks (i.e. pictures stop loading). Also, the media manager becomes unaccessible, because it thinks an admin is no longer an admin.
However! Depending on where exactly where the code is called from, the current working directory can be different, resulting in that sometimes, when you use a relative path like this, it tries to look at the wrong path. This is true when trying to use media manager.
Workaround: Made sure that $conf['savedir'] is configured as an absolute path, i.e. /var/www/dokuwiki/data in my install. (This is what I've done in my install, rather than try to fix this bug.)
The text was updated successfully, but these errors were encountered:
A thousand thanks for this workaround, I was struggling with displaying pictures for users belonging to an Active Directory group, while the admin was able to see them perfectly.
Now the permissions seems to work correctly, using absolute path for savedir.
@pitbulk Unfortunately, no. I was able to identify the problem and a workaround, but I'm not familiar enough with the codebase or with PHP to identify where the fix would be best put in place.
The savedir parameter of dokuwiki is by default set to
./data
. If you run Dokuwiki with this kind of configuration, when using the dokuwiki-saml plugin, the media breaks (i.e. pictures stop loading). Also, the media manager becomes unaccessible, because it thinks an admin is no longer an admin.saml_user_file is set here using
$conf['savedir']
dokuwiki-saml/authsaml/saml.php
Line 58 in 6161c73
saml_user_file is later referenced in different places, such as here:
dokuwiki-saml/authsaml/saml.php
Lines 278 to 281 in 6161c73
However! Depending on where exactly where the code is called from, the current working directory can be different, resulting in that sometimes, when you use a relative path like this, it tries to look at the wrong path. This is true when trying to use media manager.
Workaround: Made sure that
$conf['savedir']
is configured as an absolute path, i.e./var/www/dokuwiki/data
in my install. (This is what I've done in my install, rather than try to fix this bug.)The text was updated successfully, but these errors were encountered: