Tags:
create new tag
view all tags

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

TWiki version: TWikiRelease02Sep2004
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS: Debian GNU/Linux, kernel 2.4.22
Web server: Apache 1.3.26-0woody6
Perl version: 5.6.1-8.8
Client OS:  
Web Browser: All?
Categories: Hosting

-- 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

Edit | Attach | Watch | Print version | History: r8 < r7 < r6 < r5 < r4 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r8 - 2006-04-19 - THeresaHeld
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.