Question
I have both TWiki and Apache installed from debian packages. It seems that after an update, file paths in TWiki are somehow broken.
The front page looks ok. That is, loading
http://myserver/twiki
first prompts for user authentication as it should and then displays the front page correctly.
The problem first shows up when I try to load a TWiki link from the front page (All examples are from the Main web). All the links now seem to point to the root path of my web server. For example, for the page
FooBar, the link code in the html page is
a class="twikiLink" href="/Main/Foobar">FooBar</a.
Obviously there is nothing in that path and I get a 404 - I suppose the links should point somewhere else.
All the data still seems to be there, it's just inaccessible due to the broken links.
Can you suggest something I can do to fix this?
Environment
--
TWikiGuest - 22 Feb 2005
Answer
Look at testenv; what is it telling you? Check the settings in lib/TWiki.cfg are rational for your webserver. Make sure there are correct settings for $defaultUrlHost and $scriptUrlPath.
--
CrawfordCurrie - 22 Feb 2005
This is what testenv tells about the path variables. Everything looks ok to me.
$defaultUrlHost:
http://jleinonen.iki.fi/
$scriptUrlPath: /cgi-bin/twiki
$pubUrlPath: /twiki/pub
$pubDir: /var/www/twiki/pub
$templateDir: /var/lib/twiki/templates
$dataDir: /var/lib/twiki/data
--
TWikiGuest - 22 Feb 2005
that URL looks like a
ShorterURLs, do you have the apache
RewriteModule loaded or something?
doublecheck the settings for
$dispScriptUrlPath and
$dispViewPath in TWiki.cfg, the defaults for the main twiki release are (I don't know if they are the same for the debian package):
$dispScriptUrlPath = $scriptUrlPath;
$dispViewPath = "/view";
--
MattWilkie - 22 Feb 2005
I have the exact same problem using the same Debian packages. I think it could be a problem in the post install config scripts but I can not figure it out. Did you fix the problem?
--
TWikiGuest - 26 Jan 2006
I have the same problem with debian 01-sept-2004 version. There is no $dispScriptUrlPath or
$dispViewPath in the TWiki.cfg file.
--
THeresaHeld - 19 Apr 2006
--
THeresaHeld - 19 Apr 2006
After removing some customizations - adding the
follwing to TWiki.cfg
$dispScriptUrlPath = $scriptUrlPath;
$dispViewPath = "/view";
solved the problem on my system
--
THeresaHeld - 19 Apr 2006