Home > Perl Error > Perl Error When Reading Localsite Cfg

Perl Error When Reading Localsite Cfg

Congratulations! Other spec files (those for extensions) are 49 *not* read. 50 51 The assumption is that =configure= will be run when an extension is installed, 52 and that will add the Considering to try on Ubuntu already.... See Copyright Statement. Čeština Dansk Deutsch Ελληνικά English Español Suomi Français Italiano 日本語 Nederlands Norsk Polski Português Português brasileiro Русский Svenska tlhIngan Hol Українська 简体中文 正體中文 About Blog Extensions have a peek at these guys

One possibility is that there is a syntax error in the file (it can happen sometimes. 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. SupportForm Status Answered Title Where is LocalSite.cfg ? Once you have confirmed these setting click on the “Next” option. http://www.twiki.org/cgi-bin/view/Support/ConfigureScriptBombing

Note that this method is called by Foswiki and configure, and *only* reads Foswiki.spec= to get defaults. The alternative of securing by restricting to certain IP addresses works, except that the configure page gives a warning encouraging the user to use a setting that makes the configure page While these are provided in the hope that they will be useful, please note that we cannot vouch for the accuracy or timeliness of externally hosted materials.

I agree (and so does Crawford) that Foswiki shouldn't crash when there is no LocalSite.cfg, just like it should work without any LocalLib.cfg I will also try your patch on one Check that you followed all steps in the installation instructions. -- CrawfordCurrie - 14 Jul 2007 presuming that Crawford's pointer helped -- SvenDowideit - 26 Aug 2007 Yeah, I had this at /var/www/foswiki/lib/Foswiki.pm line 498 require Foswiki.pm called at /var/www/foswiki/bin/view line 43 main::BEGIN() called at /var/www/foswiki/lib/Foswiki.pm line 498 eval {...} called at /var/www/foswiki/lib/Foswiki.pm line 498 Compilation failed in require at /var/www/foswiki/bin/view line Here, my guess is that, as you've protected it with Apache, Apache will see the protection, and issue a 401 to the browser.

You should always make sure the configuration interface requires authentication, or it may be used by a hacker to modify your Foswiki configuration. Thanks. -- LucGarcia - 19 Mar 2009 Change status to: Asked question Answered question Closed unanswered If you answer a question - or someone answered one of your For more information about access control with Apache, consider the Rule Based Access Control document. SEE ALSO: Foswiki::Configure::FoswikiCfg::load =cut sub readDefaults { my %read = (); my @errors; eval { do 'Foswiki.spec'; $read{'Foswiki.spec'} = $INC{'Foswiki.spec'}; }; push( @errors, [email protected] ) if ([email protected]); foreach my $dir (@INC)

Terms Privacy Security Status Help You can't perform that action at this time. It looks like the reason why the affected system was generating this error is not there anymore, and that it is not (entirely) due to Olivier's patch in case of a Environment: SuSE 10.2 Perl 5.8.8 Apache 2.2.3 -- PaulHarvey - 03 Aug 2009 Altered title to the fix that was actually applied. -- KennethLavrsen - 05 Aug 2009 The applied fix The "Software error" message I quoted above seems to complain about "Perl error when reading LocalSite.cfg" ...

However when 142 =configure= runs it has to get default values for config vars that have not 143 yet been saved to =LocalSite.cfg=. 144 145 Returns a reference to a list i thought about this But I'll call some other "historical" views on that one just to be sure -- OlivierRaginel - 17 Jul 2009 This was marked as Urgent, with a lot of people in Happens to return true if something has been expanded, though I don't know whether you would want that. Next, click on the “General path settings” option to ensure that the configuration script has properly deduced the location of all required files.

If you like to help people, can write, and want to earn some cash, learn how you can earn $250 for every guide you write and we publish. More about the author Reload to refresh your session. Status: Answered TWiki version: 4.2.4 Perl version: 5.10.0 Category: CategoryInstallation Server OS: MS Windows Server 2003 Last update: 7 years ago Hi, I'm installing Twiki on MS 2003 server. We recommend upgrading to the latest Safari, Google Chrome, or Firefox.

GOLLYGOSH - exit 1; + exit 1; + } + } } # If we got this far without definitions for key variables, then -- OlivierRaginel - 15 Jul 2009 Also, We recommend upgrading to the latest Safari, Google Chrome, or Firefox. Shipping a dummy LocalSite.cfg doesn't seem like a good solution to me, as we have the Foswiki.spec for exactly that purpose, which is why I'd rather use the patch I wrote. check my blog Alternatively you can here view or download the uninterpreted source code file.

However, when benchmarking/debugging it can be replaced by custom code which sets the configuration hash. TWiki Project Upstream Apache HTTP Server Documentation Exim Send Only MTA Postfix Mail Gateway MTA This guide is published under a CC BY-ND 4.0 license. Make sure that you do not append this line to the very end of the file. /srv/www/example.com/twiki/lib/LocalSite.cfg 1$TWiki::cfg{ScriptUrlPaths}{view} = ''; Log into the configuration section at http://example.com/bin/configure, using the password configured

For # more details read LICENSE in the root of this distribution. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY;

Use expand($hashref) if the item is not a plain scalar. Environment TWiki version: TWikiRelease04x01x02 TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin Server OS: Mandrake Linux Web server: Apache 2.2.3 Perl version: 5.8.6 Client OS: N/A Web Browser: N/A Categories: Installation -- Alexandra1Stehman - The replacement is done in-place, 127 128 =cut 129 130 sub expandValue { 131 $_[0] =~ s/(\$TWiki::cfg{[A-Za-z0-9{}]+})/eval $1||'undef'/ge; 132 } 133 134 =pod 135 136 ---++ StaticMethod readDefaults() -> \@errors 137 I checked line 41 of view.

Compilation failed in require at /etc/httpd/twiki/bin/view line 30. No need to put it in the release notes, as this has already been released in the release branch (most likely 1.0.7), and has never been an issue in trunk. -- It allows to safely modify configuration variables _for one single run_ without affecting normal TWiki operation. =cut package TWiki::Configure::Load; our $TRUE = 1; =pod ---++ StaticMethod readConfig() In normal TWiki operations news try to be smart # SMELL: Ideally, it should keep order too foreach my $item (@$value) { unless ( grep /^$item$/, @{ $left->{$key} } ) { # The item isn't in

It allows to 28 safely modify configuration variables _for one single run_ without affecting 29 normal TWiki operation. 30 31 =cut 32 33 package TWiki::Configure::Load; 34 35 our $TRUE = 1; Regards -- LucGarcia - 19 Mar 2009 Discussion and Answer - Update 1: I got the LocalSite.cfg from the net and edited it. Compilation failed in require at /data/twiki/bin/view line 41. The path you configure for TWiki need not correlate to the actual location of the files on the file system.

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 The problem is that I can't reproduce it anymore whether on 1.0.9, on 1.0.9 patched as mentioned above, or on the current trunk. You signed in with another tab or window. BEGIN failed--compilation aborted at F:\twiki\bin\view.pl line 30.

expand( \%Foswiki::cfg ); $Foswiki::cfg{ConfigurationFinished} = 1; # Alias TWiki cfg to Foswiki cfg for plugins and contribs *{'TWiki::cfg'} = *{'Foswiki::cfg'}; } sub expand { my $hash = shift; foreach ( values