cross
New Foswiki release 2.1.6 is available with important security fixes.
Sourceforge foswiki email lists being discontinued. Subscribe to the new Foswiki announce and discuss lists at MailingLists

Quick fix for LocalSite.cfg Software Error: could not parse line 82

  • Tip Category - Installation and Upgrading
  • Tip Added By - IanFenwick - 09 Jan 2013 - 09:48
  • Extensions Used - None
  • Useful To - Beginners
  • Tip Status - Accepted
  • Related Topics - Support.compileerrors

Problem

Software error:

After adding source and key to apt source.list and installing foswiki on Debian server 11.10 (Oneiric)

I go to my subdirectory /foswiki to run the config and in /foswiki/bin/view I get the following compile error:

Read on to solution after error...

Software error:

Content-type: text/plain

Could not parse LocalSite.cfg: Sequence (?^...) not recognized in regex; marked by <-- HERE in m/(?^ <-- HERE i:AERO|ARPA|ASIA|BIZ|CAT|COM|COOP|EDU|GOV|INFO|INT|JOBS|MIL|MOBI|MUSEUM|NAME|NET|ORG|PRO|TEL|TRAVEL|XXX)/ at /etc/foswiki/LocalSite.cfg line 82.
 at /etc/foswiki/LocalSite.cfg line 82
   require LocalSite.cfg called at /var/lib/foswiki/lib/Foswiki/Configure/Load.pm line 64
   Foswiki::Configure::Load::readConfig() called at /var/lib/foswiki/lib/Foswiki.pm line 334
   Foswiki::BEGIN() called at /etc/foswiki/LocalSite.cfg line 82
   eval {...} called at /etc/foswiki/LocalSite.cfg line 82
   require Foswiki.pm called at /var/lib/foswiki/bin/view line 22
   main::BEGIN() called at /etc/foswiki/LocalSite.cfg line 82
   eval {...} called at /etc/foswiki/LocalSite.cfg line 82

Please inform the site admin.
 at /usr/share/perl/5.12/CGI/Carp.pm line 354
   CGI::Carp::realdie('Content-type: text/plain\x{a}\x{a}Could not parse LocalSite.cfg: Sequ...') called at /usr/share/perl/5.12/CGI/Carp.pm line 439
   CGI::Carp::die('Content-type: text/plain\x{a}\x{a}Could not parse LocalSite.cfg: Sequ...') called at /var/lib/foswiki/lib/Foswiki/Configure/Load.pm line 86
   Foswiki::Configure::Load::readConfig() called at /var/lib/foswiki/lib/Foswiki.pm line 334
   Foswiki::BEGIN() called at /etc/foswiki/LocalSite.cfg line 615
   eval {...} called at /etc/foswiki/LocalSite.cfg line 615
   require Foswiki.pm called at /var/lib/foswiki/bin/view line 22
   main::BEGIN() called at /etc/foswiki/LocalSite.cfg line 615
   eval {...} called at /etc/foswiki/LocalSite.cfg line 615
BEGIN failed--compilation aborted at /var/lib/foswiki/lib/Foswiki.pm line 615.
 at /var/lib/foswiki/lib/Foswiki.pm line 615
   require Foswiki.pm called at /var/lib/foswiki/bin/view line 22
   main::BEGIN() called at /var/lib/foswiki/lib/Foswiki.pm line 615
   eval {...} called at /var/lib/foswiki/lib/Foswiki.pm line 615
Compilation failed in require at /var/lib/foswiki/bin/view line 22.
 at /var/lib/foswiki/bin/view line 22
   main::BEGIN() called at /var/lib/foswiki/lib/Foswiki.pm line 22
   eval {...} called at /var/lib/foswiki/lib/Foswiki.pm line 22
BEGIN failed--compilation aborted at /var/lib/foswiki/bin/view line 22.
 at /var/lib/foswiki/bin/view line 22

Context

I am running Postfix, and seeing how this line invokes some kind of mail function (I'm not familiar with perl)

it may be a problem with with my mail server.

Solution

I simply commented out line 82 or LocalSite.cfg with a '#' and it compiled fine after that.

I'm more curious as to why this happened than anything. If anyone has any ideas, I'd love to hear from you!

Thanks!


good solution really - I'm going to remove that line (from the 1.1.7 package onwards) an allow configure to set it

-- SvenDowideit - 11 Feb 2013

Known Uses

Known Limitations

See Also

BestPracticeTipsForm edit

Category Installation and Upgrading
Related Topics compile errors
Topic revision: r2 - 11 Feb 2013, SvenDowideit - This page was cached on 23 Mar 2018 - 03:26.

The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License