This is a static dump of issues in the old "Flyspray" bugtracker for DokuWiki. Bugs and feature requests
are now tracked at the issue tracker at Github.
Closed
Not a bug
FS#1257 Unable to delete media file
Localization
2007-09-25gnramos
Couldn't find any reference on this, so sorry if it has already been dealt with.
I am using the 2007-06-26 version of Dokuwiki in a Windows 2000 server.
I was having a problem deleting a media file. The file is uploaded to $conf['mediadir'], but function media_delete in inc/media.php searches in $conf['datadir'].
Solved my problem by changing datadir to mediadir in line 155.
2007-09-26andi
The mentioned function searches for references of a media file. Eg a page using the image you are about to delete, so it's correct to not search in $conf['media']. I assume your file was still in use.
2007-10-19pbihler
This problem is probably due to a huge database - Dokuwiki is simply to slow to scan all pages for references before there is the PHP-Timeout:
PHP Fatal error: Maximum execution time of 30 seconds exceed
So, the only solution is to switch of the media reference check in the configuration.
Nevertheless there is a small bug in inc/search.php, where line 425 show read:
$reg = '\{\{ *\:?'.preg_quote($opts['query']).' *(\|.*)?\}\}';
(you have to preg_quote the ID before sending it to the search_regex function)