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

Solution I simply commented out line 82 or LocalSite.cfg with a '#' and it compiled fine after that. restore the line Alias /foswiki "/var/www/foswiki/bin/view" comment the lines AuthUserFile, AuthName, AuthType and the FilesMatch "^(configure)$" block (or just that block, or the require user in that block) restart Apache the Tasks Log In Register Quick Links Extensions and Components Waiting For Feedback Website Tasks Project Tasks Tools Create New Topic Index Search Changes Notifications RSS Feed Statistics Preferences The copyright of The problem is only when configure is run for the 1st time, with this Apache directive recommended by the installation procedure, while lib/LocalSite.cfg does not yet exist. http://newmexicosupercomputer.com/perl-error/perl-error-when-reading-localsite.html

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 Send feedback. The only thing I had error with was HTML::Tree module, but for now thats ok. BEGIN failed--compilation aborted at /apps/twiki-root/twiki/lib/TWiki.pm line 526.

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 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 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 -

Compilation failed in require at /apps/twiki-root/twiki/bin/view line 41. Configure Software Configure Apache Web Server Create a virtual host specification that resembles the following. Send feedback. i.e., I applied the following patch to the Load.pm from a Foswiki 1.0.9: http://trac.foswiki.org/changeset/6313 After applying the patch, the access to configure as described in this error report, without an existing

When I go to http://localhost/foswiki/bin/configure , I get "perl error reading LocalSite.cfg" (see below). All material on this collaboration platform is the property of the contributing authors. What am I doing wrong? Can you verify that you run the configure script?

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. 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 at a stage where LocalSite.cfg is not supposed to exist, since that's the 1st time configure is ran. -- RaulFRodriguez - 15 Jul 2009 As for 1. I have tried with and without LocalSite.cfg.

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 BEGIN failed--compilation aborted at /data/twiki/bin/view line 41. See for Protecting Your Configuration for more information on limiting access to configuration."). This guide outlines a basic TWiki installation, setup, and configuration process.

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 this contact form 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 This problem blocks the user from reaching the configuration page though it is following the documentation by using the Apache Config Generator and using the recommended settings for it by choosing BEGIN failed--compilation aborted at F:\twiki\bin\view.pl line 30.

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 ErrorDocument for configure is now set to "default" which causes it to use the apache default messages. -- GeorgeClark - 22 Aug 2010 Also updating the supplied bin/.htaccess.txt to use a Thanks! have a peek here 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

BEGIN failed--compilation aborted at /opt/hpws/apache/htdocs/twiki/lib/TWiki.pm line 528. 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. Normally, configure should work just fine without a LocalSite.cfg.

Ask community in the support forum.Copyright © 1999-2016 by the contributing authors.

Compilation failed in require at /data/twiki/bin/view line 41. 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 Enter an administrative password, and click the “Configure” button. Send feedback.

Considering to try on Ubuntu already.... 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. For more information about access control with Apache, consider the Rule Based Access Control document. Check This Out I have set up LocalLib.cfg to point to the lib directory of foswiki.

Now I'm having the "The specified CGI application misbehaved by not returning a complete set of HTTP headers." problem with both the view.pl or configure.pl Any hints appreciated. See also Support.Faq19 -- PaulHarvey - 22 Feb 2010 I think I fixed this in the recent ApacheConfigGenerator. Next, click on the “General path settings” option to ensure that the configuration script has properly deduced the location of all required files. at /usr/share/perl/5.10/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/share/perl/5.10/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/foswiki/lib/Foswiki/Configure/Load.pm line 56 Foswiki::Configure::Load::readConfig() called at /var/foswiki/lib/Foswiki.pm line

Compilation failed in require at /opt/hpws/apache/htdocs/twiki/bin/view line 41. SupportForm Status Unanswered Title configure won't run, @INC issue SupportCategory CategoryInstallation TWiki version 5.0.1 Server OS Ubuntu Linux 10.04 Web server Apache 2.2.14 Perl version 5.10.1 Edit|Attach|Watch|Print version|History: r4

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. -- 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 #