Tags:
faq1Add my vote for this tag create new tag
, view all tags

Question

This is the first time I've tried to install TWiki and I decided to be brave and go with the latest Dakar release: Tue, 17 Jan 2006 build 8357 I have followed the installation instructions and run the configure script and resolved all warnings and errors. However when I go to the twiki main page /twiki/bin/view I get these entries in my Apache error_log:

[Fri Jan 27 23:28:54 2006] [error] [client 24.107.84.185] Unmatched [ in regex; marked by <-- HERE in m/(?-xism:[ <-- HERE \s\*?~^\$@%`/ at /var/www/twiki/lib/TWiki.pm line 1222. [Fri Jan 27 23:28:54 2006] [error] [client 24.107.84.185] Premature end of script headers: view

I am running Apache/2.0.46 (CentOS). My configure page tells me I'm not running mod_perl. I get that error no matter what page I attempt to go to. I'd be happy to email any other information you may deem helpful. Thank you!

Environment

TWiki version: TWikiAlphaRelease
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS: CentOS-3
Web server: Apache/2.0.46
Perl version: perl5 (revision 5.0 version 8 subversion 0) configuration: osname=linux, osvers=2.4.21-37.el.centos3.xfs.0smp
Client OS: XP SP 2
Web Browser: Firefox
Categories: Installation, Fatal error

-- AdamBoyet - 28 Jan 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'll need to be more specific about the TWiki version than TWikiAlphaRelease - see SupportGuidelines for how to determine this. Also, it would help if you attached your LocalSite.cfg.

-- RichardDonkin - 30 Jan 2006

I'm attempting to install the DakarRelease 4.0.0-beta6. I double checked the information from my original post and the date of release and build number are correct: Dakar release: Tue, 17 Jan 2006 build 8357 My understanding is that the testenv the SupportGuidelines mention to use doesn't apply to the newest release as it's now using a configure script. Although I just started looking at this so I could very well be wrong. Thanks!

-- AdamBoyet - 01 Feb 2006

I"m also having exactly the same problem. I'll list off my env as well:

TWiki version: 4.0.0
Server OS: RHEL 3.06
Web server: Apache/2.0.46
Perl version: v5.8.8
Client OS: Linux
Web Browser: Firefox
Categories: Installation, Fatal error

-- IanGable - 03 Feb 2006

I have the same issue as well, upgrading from a plain vanilla Sep-2004 installation to TWikiRelease04x00x01. If I run view from the shell I get:

./view
Unmatched [ in regex; marked by <-- HERE in m/(?-xism:[ <-- HERE \s\*?~^\$@%`/ at /var/www/vhosts/structuredwikis.com/twiki/lib/TWiki.pm line 1226.

The line in question is indicated by >>>:

    # All roads lead to WebHome
    $topic = $TWiki::cfg{HomeTopicName} if ( $topic =~ /\.\./ );
>>> $topic =~ s/$TWiki::cfg{NameFilter}//go;
    $topic = $TWiki::cfg{HomeTopicName} unless $topic;
    $this->{topicName} = TWiki::Sandbox::untaintUnchecked( $topic );

This is on Linux 2.4.21-27.ELsmp, Perl v5.8.0

The configure script reports OK except for session which I do not need. I have a non standard path to pub and bin, reflected in configure.

Still looking on the cause...

-- PeterThoeny - 09 Feb 2006

Relevant settings in LocalSite.cfg:

$TWiki::cfg{DataDir} = '/var/www/vhosts/site3/twiki/data';
$TWiki::cfg{Site}{Lang} = 'en';
$TWiki::cfg{WarningFileName} = '/var/www/vhosts/site3/twiki/data/warn%DATE%.txt';
$TWiki::cfg{NameFilter} = '(?-xism:[\s\*?~^\$@%`';
$TWiki::cfg{PubUrlPath} = '/pub';
$TWiki::cfg{PubDir} = '/var/www/vhosts/site3/httpdocs/pub';
$TWiki::cfg{ScriptUrlPath} = '/cgi-bin';
$TWiki::cfg{Site}{FullLang} = 'en-us';
$TWiki::cfg{TemplateDir} = '/var/www/vhosts/site3/twiki/templates';
$TWiki::cfg{Site}{CharSet} = 'iso-8859-15';

Clearly the $TWiki::cfg{NameFilter} setting is wrong. It should be set to [\s\*?~^\$@%`"'&;|<>\x00-\x1f], but there is a bug in configure, it cannot handle double quotes. If you set {NameFilter} in the Security Setup section to [\s\*?~^\$@%`'&;|<>\x00-\x1f] (without the double quote) you should be OK. Nevertheless, a missing double quote can be a security issue.

-- PeterThoeny - 09 Feb 2006

I had the exact same problem. Thanks for the fix.

-- AntenehTesfaye - 11 Feb 2006

The above fix is not working for me (I tried several permutations of the above). Can someone please specify exactly what should be the variable setting in LocalSite.cfg for NameFilter? This is what it is set to with my default install:

$TWiki::cfg{NameFilter} = '(?-xism:[\s\*?~^\$@%`';

-- ParkerJohnson - 17 Feb 2006

Does this work? Set this in LocalSite.cfg:

$TWiki::cfg{NameFilter} = '[\s\*?~^\$@%`\'&;|<>\x00-\x1f]';

-- PeterThoeny - 17 Feb 2006

Bug fix

I had the same problem on Linux (Redhat 8 with Perl 5.8). But it appeared that my CGI version was slightly old (2.89). There is a bug with this version of CGI, it does not encode the text.

A small change to configure solves the issue.

Bugs:Item1610 SVN 9160.

-- ArthurClemens - 10 Mar 2006

had the very same issue, but NameFilter fix worked for me! Thank you!

-- SergeiRubinstein - 12 Mar 2006

I had the same problem. It took me a while to figure it out because I forgot I had redirected the error messages to /tmp/error_log, so I saw no errors when executing ./view from the command line.

Thanks for the fix.

-- EugeneF - 18 Aug 2006

Bugs:Item1610 indicates that this was fixed in 4.0.2 but I am installing 4.0.5 and hit the same issue. Anyone else?

-- MarkKeisler - 22 Nov 2006

Yes, it still hapens in certain environments, new Bugs:Item3093. As a workaround, you can manually fix the settings in LocalSite.cfg

-- PeterThoeny - 22 Nov 2006

Had same issue in twiki 4.1.1.. running on iis with winxp sp2 and active perl. installing CGI package solved the issue.

-- SibiJoseph - 28 Feb 2007

I think i have say it dint work well. Installing CGI package gives new error saying CARp 1.25 installed an it requires 1.26 when i run configure.pl. Dint get it fixed yet. pls help

-- SibiJoseph - 01 Mar 2007

Topic attachments
I Attachment History Action Size Date Who Comment
Unknown file formatcfg LocalSite.cfg r2 r1 manage 0.7 K 2006-02-17 - 22:52 ParkerJohnson  
Edit | Attach | Watch | Print version | History: r22 < r21 < r20 < r19 < r18 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r22 - 2007-03-01 - SibiJoseph
 
  • 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-2017 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.