Hello,
I'm using dokuwiki since many years with an FluxBB authentication.
I've just upgraded both and have a strange problem :
when I put an include function in local.protected.php the images don't appear anymore in the wiki.
Simple :
- without include : all images
- with include, no images from the data/media/ .
Anyone have and idea how to add include function in local.protected.php without this image problem ?
I need this function in local.protected.php in order to have the same authentication system in the wiki and the forum :
https://www.dokuwiki.org/auth:punbb?s[]=fluxbb
The local.protected.php that I've always used :
<?php
define('PUN_ROOT', dirname(__FILE__).'/../../forum/');
include PUN_ROOT.'include/common.php';
$conf['useacl'] = 1;
$conf['superuser'] = '@Administrateurs';
$conf['authtype'] = 'authfluxbb';
I've simplified local.protected.php to test :
<?php include 'example.php'
No images.
<?php
Images appear.
When I open a direct link to the image, example :
http://localhost/www-dev/dokuwiki/lib/exe/fetch.php?media=wiki:example.jpg
i have the error message "The image can't be displayed because it contains errors".
But this is not true because without include in local.protected.php they display without any problem (I've looked at
this page, but didn't help).
Last test I've done : on a distant server it's the same problem.