Home > Perl Error > Perl Error When Reading Localsite.cfg Please Inform The Site Admin

Perl Error When Reading Localsite.cfg Please Inform The Site Admin

See for Protecting Your Configuration for more information on limiting access to configuration."). otherwise we get peppered with 85 # 'uninitialised variable' alerts later. 86 87 foreach my $var ( 'DataDir', 'DefaultUrlHost', 'PubUrlPath', 'WorkingDir', 88 'PubDir', 'TemplateDir', 'ScriptUrlPath', 'LocalesDir' ) { 89 # We To prevent us from 44 overriding the custom code again, we use an "unconfigurable" key 45 =$cfg{ConfigurationFinished}= as an indicator. 46 47 Note that this method is called by TWiki and Send feedback. have a peek at these guys

What's happening every time I attempt to access any TWiki page is: BEGIN failed--compilation aborted at /etc/httpd/twiki/bin/view line 30: That line 30 looks like: use TWiki::UI::View; But I just do not Any recurrence, re-open this task, with details of how to reproduce. -- CrawfordCurrie - 07 Jul 2010 ItemTemplate edit Summary Configure shouldn't crash if there is no LocalSite.cfg ReportedBy RaulFRodriguez Codebase You should always make sure the configuration interface requires authentication, or it may be used by a hacker to modify your Foswiki configuration. 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 http://www.twiki.org/cgi-bin/view/Support/SID-00203

change the configuration file completely by another one generated by Apache Config Generator, without a required user to access configure (though it is a recommended setting) and only with a required Ask community in the support forum.Copyright © 1999-2016 by the contributing authors. We discussed this on IRC with IsaacLin, and, even though I've seen users complaining about that before, I've never really understood the issue. 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

Compilation failed in require at /apps/twiki-root/twiki/bin/view line 41. When I go to http://localhost/foswiki/bin/configure , I get "perl error reading LocalSite.cfg" (see below). In fact, I had tried just creating an empty file with "touch", but as it didn't work I thought Foswiki may have been expecting some kind of specific structure, and I If anyone has any ideas, I'd love to hear from you!

On the next page select the “Save” option to save these settings. Can you verify that you run the configure script? 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 you could try here 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 -

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. How to correct the content of @INC? Compilation failed in require at F:\twiki\bin\view.pl line 30. SupportForm Status Answered Title Where is LocalSite.cfg ?

Enter an administrative password, and click the “Configure” button. https://foswiki.org/Support/Question229 Alternatively you can here view or download the uninterpreted source code file. I think I should first run configure.pl but when running that I get: "The specified CGI application misbehaved by not returning a complete set of HTTP headers." I tried to find Use expand($hashref) if the item 123 is not a plain scalar. 124 125 Happens to return true if something has been expanded, though I don't 126 know whether you would want

This was tested on an updated FreeBSD 7.1-RELEASE box. -- RaulFRodriguez - 16 Feb 2010 Raul, could you please test trunk against this? More about the author This guide outlines a basic TWiki installation, setup, and configuration process. 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 You can now visit your wiki at http://example.com/ More Information You may wish to consult the following resources for additional information on this topic.

Create an Account Overview Plans & Pricing Features Add-Ons Managed Professional Services Resources Guides & Tutorials Speed Test Forum Chat System Status Company About Us Blog Press Referral System Careers Contact But I'll try if there's any suggestions. BEGIN failed--compilation aborted at /opt/hpws/apache/htdocs/twiki/bin/view line 41. -- VinceLaurent - 2012-11-21 Compilation failed in require at /opt/hpws/apache/htdocs/twiki/bin/view is an indication that you run the view script instead of the configure script. check my blog 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

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. Any ideas? SetHandler cgi-script Order Deny,Allow Deny from all Allow from Require user JohnDoe Satisfy Any -- Alexandra1Stehman - 13 Jul 2007 Change status to: AskedQuestions AssignedQuestions AnsweredQuestions ClosedUnanswered WebForm SupportStatus AnsweredQuestions

Add the following line to the /srv/www/example.com/twiki/lib/LocalSite.cfg” file.

I have set up LocalLib.cfg to point to the lib directory of foswiki. at /var/www/foswiki/bin/view line 43 main::BEGIN() called at /var/www/foswiki/lib/Foswiki.pm line 43 eval {...} called at /var/www/foswiki/lib/Foswiki.pm line 43 BEGIN failed--compilation aborted at /var/www/foswiki/bin/view line 43. This is a high security risk! Solution I simply commented out line 82 or LocalSite.cfg with a '#' and it compiled fine after that.

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 TWiki.spec is still read because so much of the core code doesn't 54 provide defaults, and it would be silly to have them in two places anyway. 55 56 =cut 57 GOLLYGOSH - exit 1; + exit 1; + } + } } # If we got this far without definitions for key variables, then -- OlivierRaginel - 15 Jul 2009 Also, news Send feedback.

Because of this flexibility, TWiki straddles the boundary between web application and web application framework. CDot rewrote many configure routines, and I'm pretty sure this has been fixed. -- OlivierRaginel - 26 Mar 2010 No response from Raul yet, so pinging. -- CrawfordCurrie - 10 Jun Maybe one of the developers is online and from the pastebin oftware error: Content-type: text/plain Perl error when reading LocalSite.cfg: Please inform the site admin. Tags: tag this topic create new tag, view all tags SID-01063: configure won't run, @INC issue Status: Unanswered TWiki version: 5.0.1 Perl version: 5.10.1 Category: CategoryInstallation Server OS: Ubuntu Linux 10.04

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 # Ask community in the support forum.Copyright © 1999-2016 by the contributing authors.