00645: Uploads broken if ScriptUrl has no /
Description: If the $ScriptURL variable does not contain a slash, then the uploads functionality is broken.
We originally had our $ScriptURL set to "[(approve links) edit diff]". I had a new DNS entry added for our server and was able to setup a VirtualHost to generalize the $ScriptURL to not be project centric, but to be more inclusive to our whole department. The new $ScriptURL is "[(approve links) edit diff]". Please note, the "/wiki" at the end of the URL is now resolved by the VirtualHost.
I tried several things to get this to work, but settled on setting
$UploadUrlFmt to be "[(approve links)
diff]". This is not a standard variable that is set in the config.php or mentioned in the documentation for uploads, so I feel a little tentative about using this solution. I'm concerned that future enhancements to uploads will change or break this functionality.
CORRECTION: I guess
$UploadUrlFmt is mentioned in the PmWiki documentation as a variable, but this issue in general is not mentioned. Is this a bug or does the documentation just need to be updated to point out this issue? -Kurt Devlin January 19, 2006, at 10:38 AM
AS PER Pm, Jan 23, 2006 11:30 AM via email:
The documentation might need to be updated -- setting
is indeed the correct and preferred solution for this. See
$UploadUrlFmt will be mentioned in the sample-config.php file;
I thought it was there already but it's not. :-|