Question
After we upgraded to Cairo using the upgrade script, links in the text body of our pages don't work. Their URLs have got the host/domain right, and the Wiki path and page right, but are missing the path in between; the wiki is not installed at the htdocs root, but a subdirectory down.
So a link that should be this to work:
http://serendip.brynmawr.edu/twiki/bin/view/Main/TWikiUsers
appears in the text of the page to link to:
http://serendip.brynmawr.edu/Main/TWikiUsers
What variable has done us in? We haven't been able to change anything in TWiki.cfg that's made any difference. Our testenv is here:
http://serendip.brynmawr.edu/twiki/bin/testenv
Many thanks for help.
Ann Dixon
for Serendip
http://serendip.brynmawr.edu/
Environment
--
TWikiGuest - 27 Jun 2005
Answer
In
twiki/lib/TWiki.cfg, make sure
$scriptUrlPath is set to
"twiki/bin". Also, set
$dispScriptUrlPath = $scriptUrlPath;
--
PeterThoeny - 28 Jun 2005
I tried modifying TWiki.cfg:
1) changing $scriptUrlPath from /twiki/bin to twiki/bin and an example of the link was still:
http://serendip.brynmawr.edu/Main/TWikiUsers
2) I next inserted
$dispScriptUrlPath = $scriptUrlPath;
The link was then:
http://serendip.brynmawr.edutwiki/bin/view/Main/twiki/bin/Main/TWikiUsers
3) I changed $scriptUrlPath back to "/twiki/bin", inserting the leading '/'; the link was then:
http://serendip.brynmawr.edu/twiki/bin/Main/TWikiUsers
Thank you for help,
Ann
--
TWikiGuest - 28 Jun 2005
Opps, was my typo, meant to be
/twiki/bin. Glad it worked out.
--
PeterThoeny - 28 Jun 2005
Isn't there still missing the
scriptName (
view)?
--
FranzJosefSilli - 28 Jun 2005
Yes, it's still missing the (view), and is still broken. Sorry to give the wrong impression.
Ann
--
TWikiGuest - 28 Jun 2005
Not sure what is going on then. Could you attach the TWiki.cfg?
--
PeterThoeny - 29 Jun 2005
Attached. Thanks,
Ann
--
TWikiGuest - 29 Jun 2005
Hm, the
TWiki.cfg looks correct (at the first glance) but in this case it could be more important what's in your
httpd.conf (Apache setting) and/or your
setlib.cfg or even the
.htaccess file. I must confess that I don't know what's wrong with your settings, but I guess it's marginal. Sorry for being of no use.
--
FranzJosefSilli - 29 Jun 2005
The httpd.conf hasn't changed since we did the upgrade. The relevant lines are:
ScriptAlias /twiki/bin/ "/usr/local/apache/twiki/bin/"
Alias /twiki/ "/usr/local/apache/twiki/"
Options +ExecCGI
SetHandler cgi-script
AllowOverride All
Allow from all
Options FollowSymLinks +Includes
AllowOverride None
Allow from all
deny from all
deny from all
The only uncommented lines in setlib.cfg are:
$twikiLibPath = '/usr/local/apache/twiki/lib';
unshift
@INC
, $twikiLibPath;
unshift
@INC
, $localPerlLibPath if $localPerlLibPath;
The .htaccess file uses:
SetHandler cgi-script
We were a pretty vanilla site, hadn't changed much.
--
TWikiGuest - 29 Jun 2005
I note that
$dispViewPath is missing from your TWiki.cfg. This is probably the cause of your problem. It should be:
# URL path to view script used to render links, relative to $dispScriptUrlPath
$dispViewPath = "/view";
--
CrawfordCurrie - 02 Jul 2005
Yes, that must be it. Closing this question.
--
PeterThoeny - 02 Jul 2005
That was it, but we ran into further problems with code missing (such as the authentication code) from the TWiki.cfg file. It seems to be a problem with the upgrade script that we downloaded and used. I started over with a fresh copy of TWiki.cfg and customized by hand, and things are now working.
Thanks again for your help. Ann
--
TWikiGuest - 07 Jul 2005