-
2007-07-27
adam
I have installed dokuwiki on server with safemode on, turned on safemode hack and everything works so far but when I go to file manager or try to view uploaded (media) file I get warnings from line 201 in inc/init.php which reveal full paths on server (they think datadir is in lib/exe/). I had to add @ before the realpath() call to get rid of them.
-
2007-07-30
andi
What are the exact warnings you get?
-
2007-07-30
adam
wiki is on it's own subdomain
Warning: realpath() [function.realpath]: Unable to access /home/html/<domain snipped>/public_html/_sub/wiki/lib/exe/datadir/pages in /home/html/<domain snipped>/public_html/_sub/wiki/inc/init.php on line 201
Warning: realpath() [function.realpath]: Unable to access /home/html/<domain snipped>/public_html/_sub/wiki/lib/exe/datadir/attic in /home/html/<domain snipped>/public_html/_sub/wiki/inc/init.php on line 201
Warning: realpath() [function.realpath]: Unable to access /home/html/<domain snipped>/public_html/_sub/wiki/lib/exe/datadir/media in /home/html/<domain snipped>/public_html/_sub/wiki/inc/init.php on line 201
Warning: realpath() [function.realpath]: Unable to access /home/html/<domain snipped>/public_html/_sub/wiki/lib/exe/datadir/meta in /home/html/<domain snipped>/public_html/_sub/wiki/inc/init.php on line 201
Warning: realpath() [function.realpath]: Unable to access /home/html/<domain snipped>/public_html/_sub/wiki/lib/exe/datadir/cache in /home/html/<domain snipped>/public_html/_sub/wiki/inc/init.php on line 201
Warning: realpath() [function.realpath]: Unable to access /home/html/<domain snipped>/public_html/_sub/wiki/lib/exe/datadir/index in /home/html/<domain snipped>/public_html/_sub/wiki/inc/init.php on line 201
Warning: realpath() [function.realpath]: Unable to access /home/html/<domain snipped>/public_html/_sub/wiki/lib/exe/datadir/locks in /home/html/<domain snipped>/public_html/_sub/wiki/inc/init.php on line 201
Warning: realpath() [function.realpath]: Unable to access /home/html/<domain snipped>/public_html/_sub/wiki/lib/exe/datadir/changes.log in /home/html/<domain snipped>/public_html/_sub/wiki/inc/init.php on line 201
-
2007-09-18
hillechien
I had the same problem on my safemode=on hosting provider. The nasty result was, that the CSS was not applied and that IE for each refresh reported javascript errors. I got rid of it by the following code change:
<code>
function init_path($path){
// check existence
if (!file_exists($path)) {
$path = DOKU_INC.$path;
}
if(!file_exists($path)){
return '';
}
$p = realpath($path);
//...
}
</code>
(now realpath is only applied to a file that actually exists)
I also made a change to css.php to send the header as the very first thing, so that I would at least see the page (in Firefox) in case of error messages.
-
2008-01-18
andi
-
Related tasks: