Home > Perl Error > Perl Error When Reading Localsite Cfg

Perl Error When Reading Localsite Cfg

BEGIN failed--compilation aborted at -e line 1. The assumption is that =configure= will be run when an extension is installed, and that will add the config values to LocalSite.cfg, so no defaults are needed. 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 at /usr/lib/perl5/5.8.8/CGI/Carp.pm line 356 CGI::Carp::realdie('Content-type: text/plain\x{a}\x{a}Perl error when reading LocalSite.c...') called at /usr/lib/perl5/5.8.8/CGI/Carp.pm line 437 CGI::Carp::die('Content-type: text/plain\x{a}\x{a}Perl error when reading LocalSite.c...') called at /var/www/foswiki/lib/Foswiki/Configure/Load.pm line 56 Foswiki::Configure::Load::readConfig() called at /var/www/foswiki/lib/Foswiki.pm line http://newmexicosupercomputer.com/perl-error/perl-error-when-reading-localsite.html

It is on my TODO list, with lots of other things, but I will try to check this ASAP. 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 - SupportCategory CategoryInstallation TWiki version 4.2.4 Server OS MS Windows Server 2003 Web server IIS 6 Perl version 5.10.0 Edit|Attach|Watch|Print version|History: r3website here

Compilation failed in require at /etc/httpd/twiki/bin/view line 30. 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. 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 Compilation failed in require at /data/twiki/bin/view line 41.

This is a high security risk! How to correct the content of @INC? 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 I have set up LocalLib.cfg to point to the lib directory of foswiki.

diff --git a/core/lib/Foswiki/Configure/Load.pm b/core/lib/Foswiki/Configure/Load.pm index a331bb0..a6b5a4b 100644 --- a/core/lib/Foswiki/Configure/Load.pm +++ b/core/lib/Foswiki/Configure/Load.pm @@ -40,26 +40,33 @@ provide defaults, and it would be silly to have them in two places anyway. Regards -- LucGarcia - 19 Mar 2009 Discussion and Answer - Update 1: I got the LocalSite.cfg from the net and edited it. 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. have a peek at these guys Click “Next” and “Save” to store these values.

I am not sure the testing will be fully accurate, since the installation process is quite different when installing from an SVN checkout of trunk, compared to a regular installation from Ask community in the support forum.Copyright © 1999-2016 by the contributing authors. This was tested on an updated FreeBSD 7.1-RELEASE box. -- RaulFRodriguez - 16 Feb 2010 Raul, could you please test trunk against this? GOLLYGOSH exit 1; } # Read LocalSite.cfg unless (do 'LocalSite.cfg') { die <

Normally all configuration values come from LocalSite.cfg. https://foswiki.org/Tasks/Item1829 Structured wikis provide a powerful way to share, store, and work with information in task centric applications. Normally all configuration values come from LocalSite.cfg. foreach my $var qw( DataDir DefaultUrlHost PubUrlPath PubDir TemplateDir ScriptUrlPath LocalesDir ) { # We can't do this, because it prevents TWiki being run without # a LocalSite.cfg, which we don't

I checked line 41 of view. this contact form BEGIN failed--compilation aborted at /etc/httpd/twiki/bin/view line 30. Compilation failed in require at /cygdrive/f/twiki/lib/TWiki/UI.pm line 34. All material on this collaboration platform is the property of the contributing authors. Čeština Dansk Deutsch Ελληνικά English Español Suomi Français Italiano 日本語 Nederlands Norsk Polski Português Português brasileiro

All Rights Reserved. BEGIN failed--compilation aborted at /data/twiki/bin/view line 41. BEGIN failed--compilation aborted at /cygdrive/f/twiki/lib/TWiki.pm line 467. have a peek here This indicates that somehow the @INC is not populated properly.

expand(\%TWiki::cfg); $TWiki::cfg{ConfigurationFinished} = 1; } sub expand { my $hash = shift; foreach ( values %$hash ) { next unless $_; if (ref($_) eq 'HASH') { expand(\%$_); } else { s/(\$TWiki::cfg{[[A-Za-z0-9{}]+})/eval 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 To prevent us from overriding the custom code again, we use an "unconfigurable" key =$cfg{ConfigurationFinished}= as an indicator.

However, when benchmarking/debugging it can be replaced by custom code which sets the configuration hash.

I get the same "Topic 'X' does not exist" when trying different links such as WelcomeGuest or UserRegistration. Congratulations! For 15 # more details read LICENSE in the root of this distribution. 16 # 17 # This program is distributed in the hope that it will be useful, 18 # In the “Store Settings” change the value of the {StoreImpl} value to RcsLite.

I know I should do some changes to that file from some cookbooks but I cannot find the file to do it. Note that this method is called by TWiki and configure, and *only* reads TWiki.spec= to get defaults. NOTE: Please extend that file, not this notice. # # Additional copyrights apply to some or all of the code in this # file as follows: # # This program is Check This Out On the next page select the “Save” option to save these settings.

Also, set up apache config file .