Question
I test migrated my working TWiki from earlier version to latest version. All files looked fine/all permissions looked fine. I did need to acquire CGI:Session, but that was easy. When I run "configure" it complains about ScriptUrlPath, which looks fine to me: "/twiki/bin". That is what worked in my existing TWiki and that is what is seen in my Apache configuration file. The full PATH to the directory is: /home/twikis/myapp/twiki/bin.
I don't know how to change the value being displayed to me by the "configure" command using the "configure" page.
Now in my URLS I get "/NOT SET/" in the middle of the URL. I can see what is wrong but don't know what I should be fixing. When I modify the URL it works fine.
Example:
http://mytwiki.mycompany.com/view/Main/NOT SET/view/Main/TWikiUsers
clearly fails. When I modify it, it works. I see that "/twiki/bin" is not being set, but I don't know where
Environment
--
PeretzDavid - 11 Apr 2006
Answer
If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.
You probably don't have a
lib/LocalSite.cfg file.
You need to run
bin/configure. Some of your configuration settings are
NOT SET.
If you look in the file
lib/TWiki.pm around like 265 onwards you will see that any if any of
DataDir DefaultUrlHost PubUrlPath PubDir TemplateDir ScriptUrlPath LocalesDir are not set by
bin/configure they are set to
NOT SET.
The relevant comment reads:
If we got this far without definitions for key variables, then
we need to default them. otherwise we get peppered with
'uninitialised variable' alerts later.
--
AntonAylward - 12 Apr 2006
I have a lib/LocalSite.cfg file. Is that where ScriptUrlPath is supposed to be set? I have a setting in Twiki.cfg for ScriptUrlPath with the correct "relative" path: /twiki/bin. I changed that to the true full path: /home/twikis/myapp/twiki/bin and that made no difference. When I run "configure" it still comes up with "/twiki/bin". Where is "configure" reading that value from? TX
--
PeretzDavid - 12 Apr 2006
Please revert
lib/TWiki.cfg to the original "out of the box" file, then run configure (which will save the settings in
lib/LocalSite.cfg)
--
PeterThoeny - 12 Apr 2006
TX, Peter. That did more correctly build the lib/LocalSite.cfg file, however I'm still not yet working. If I try to go anywhere on the TWiki I get an Apache error message. When I look at the Apache logs, it mentions a problem at line 1226 of TWiki.pm. Some text (edited) from the error log file:
Unmatched [ in regex; marked by <-- HERE in m/(?-xism:[ <-- HERE \s\*?~^\$@%`/ at /home/twikis/myapp/twiki/lib/TWiki.pm line 1226.
Premature end of script headers: view
File does not exist: /var/www/html/favicon.ico
Unmatched [ in regex; marked by <-- HERE in m/(?-xism:[ <-- HERE \s\*?~^\$@%`/ at /home/twikis/myapp/twiki/lib/TWiki.pm line 1226., referer: http://myTWikiServer.com/twiki/bin/configure?t=1144860513
Premature end of script headers: view, referer: http://myTWikiServer.com/twiki/bin/configure?t=1144860513
--
PeretzDavid - 12 Apr 2006
That last issue sounds like the Known issue (that is fixed in Twiki 4.0.2 - see
UnmatchedBracketInRegex for a work around.
--
SvenDowideit - 13 Apr 2006