Tags:
create new tag
view all tags

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

TWiki version: TWikiRelease04x00x00
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS: RedHat Linux ES 3.5
Web server: Apache/2.0.46
Perl version: 5.8
Client OS: MS Windows 2000 5.00.2195
Web Browser: Firefox
Categories: Installation

-- PeretzDavid - 11 Apr 2006

Answer

ALERT! 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 smile

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

Edit | Attach | Watch | Print version | History: r8 < r7 < r6 < r5 < r4 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r8 - 2007-01-10 - PeterThoeny
 
  • 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.