This question about Using an extension: More info required

PerlPlugin fails with HTTP_INTERNAL_SERVER_ERROR

Hello,

I tried to use PerlPlugin but when I save a Topic with the %PERL% directive in it or when I go to the PerlPlugin Page on my installation, i'll get the following foswiki error message

Access Denied

Attention

Missing or illegal web name

The Web/Topic path: 'error/HTTP_INTERNAL_SERVER_ERROR/html' has missing components, or contains invalid characters. A Foswiki site is divided into webs; each one represents one subject, one area of collaboration. You are trying to 'view' in a web that does not exist.
A link to a topic located in another web is written like Otherweb.TopicName. Make sure that the name of the web is not spelt wrongly on the previous page; fix the link if necessary.

Nothing special in the working/logs/error.log nor in the working/logs/events.log

Thanks in advance for the answer

-- JeanPhilippeRutault - 11 Jan 2017

I installed PerlPlugin on a couple of sites and I'm not seeing any issues. All I can think of is to check bin/configure and make sure that the PerlPlugin settins under the Extensions tab are all correct.

If you are running a mod_perl or fastcgi site it's also best to reload your web server.

-- GeorgeClark - 11 Jan 2017

PerlPlugin is activated and all settings are the default values.

Web server restarted. Still the same error. Only the topics with the %PERL% directive crash. All the other topics works well.

-- JeanPhilippeRutault - 11 Jan 2017

Is there any perl in the body of the directive? Try %PERL{"my $x = 0"}%

-- Main.CrawfordCurrie - 12 Jan 2017 - 08:35

Yes there is. I tried %PERL{"my $x = 0"}%, same result

-- JeanPhilippeRutault - 12 Jan 2017

I continue to investigate and I see in the apache error_log the full html page correctly generated with the perl directive interpreted but with the following error message

[Thu Jan 12 09:40:33.716316 2017] [core:error] [pid 17338:tid 140673449678592] [client 127.0.0.1:46748] End of script output before headers: foswiki.fcgi, referer: h ttp://foswiki.nemocorp.info/bin/login/Sandbox/TestPerlPlugin?foswikiloginaction=validate;foswikioriginalquery=df2a61fc5b2369f35a88a0240856a604

-- JeanPhilippeRutault - 12 Jan 2017
 

QuestionForm edit

Subject Using an extension
Extension PerlPlugin
Version Foswiki 2.1.2
Status More info required
Related Topics
Topic revision: r6 - 12 Jan 2017, JeanPhilippeRutault
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy