Tags:
create new tag
view all tags

SID-02143: ExecutePlugin EXECUTE ERROR: Script named 'uppercase' not found

Status: Answered Answered TWiki version: 6.0.1 Perl version: v5.18.1 built for x86_64-linux
Category: ExecutePlugin Server OS: Scientific Linux release 6.4 (Carbon) 2.6.32-504.8.1.el6.x86 Last update: 10 years ago

I have enabled the plugin and configured the "uppercase" and "echo" examples properly, yet: I always get Script named "x" (x=echo or uppercase) not found. Is there anything lese I have to configure? Looked already into PluginsOrder, AllowInlineScript, SafeEnvPath

Cheers Michael

-- Michael Naumann - 2016-01-04

Discussion and Answer

Not sure. Did you specify the full path to the script, such as command => '/bin/echo foo bar', ? Is selinux enabled and interfering? The uppercase example is a type 'perl'.

-- Peter Thoeny - 2016-01-05

All configuration was copied from the plugin's home page, i.e. "uppercase" was set as "perl". SELINUX is enabled, but I don't think it is interfering as all other majually installed plugins are running fine: LdapContrib, FormQueryPlugin, FormPlugin, GluePlugin, JqPlotPlugin, LdapNgPlugin, NewUserPlugin, OrphansPlugin, QuickCalendarPlugin, RevisionLinkPlugin, SubscribePlugin, TreeBrowserPlugin, WebPermissionsPlugin, MacrosPlugin, LdapContribAdminPlugin, RedirectPlugin, SyntaxHighlightingPlugin, SourceHighlightPlugin, GlobalReplacePlugin, JQueryPlugin, AutoSectionsPlugin, FilterPlugin, ExecutePlugin

-- Michael Naumann - 2016-01-05

Try to disable all non-standard plugins to see if one of the plugins interferes.

Do you run TWiki under mod_perl or Fast CGI? If so, did you restart the webserver?

-- Peter Thoeny - 2016-01-05

We're running neither mod_perl nor FCGI ... just plain CGI smile

-- Michael Naumann - 2016-01-07

I read the code, the "Script named 'uppercase' not found" error means that $TWiki::cfg{Plugins}{ExecutePlugin}{Scripts} is not properly formatted in LocalSite.cfg. Please double-check. Default should be:

$TWiki::cfg{Plugins}{ExecutePlugin}{Scripts} = [
 {
  name => 'echo',
  type => 'script',
  command => '/bin/echo "%text%"',
  filter => '[^a-zA-Z0-9_\\- ]',
 },
 {
  name => 'uppercase',
  type => 'perl',
  command => 'return uc("%text%");',
  filter => '[^a-zA-Z0-9_\\-\\+ \\.\\,\\:\\!\\?\\(\\)/]',
 },
];

-- Peter Thoeny - 2016-01-07

Great tip, thanks a lot ... now the examples are working fine and also my own scripts inside $TWiki::cfg{Plugins}{ExecutePlugin}{Scripts} = [...]; are working.

-- Michael Naumann - 2016-01-07

BTW: I got confused by the fact that once you have to use $TWiki::cfg{Plugins}{ExecutePlugin}{Commands} and once $TWiki::cfg{Plugins}{ExecutePlugin}{Scripts}, see http://twiki.org/cgi-bin/view/Plugins/ExecutePlugin#Execute_Perl_Code

-- Michael Naumann - 2016-01-07

Oops, my bad, this is a documentation bug. I fixed the docs and released the new package. Thanks for pointing out.

-- Peter Thoeny - 2016-01-08

      Change status to:
ALERT! If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.
SupportForm
Status Answered
Title ExecutePlugin EXECUTE ERROR: Script named 'uppercase' not found
SupportCategory ExecutePlugin
TWiki version 6.0.1
Server OS Scientific Linux release 6.4 (Carbon) 2.6.32-504.8.1.el6.x86
Web server Apache 2
Perl version v5.18.1 built for x86_64-linux
Browser & version Chrome 47, FF 43
Edit | Attach | Watch | Print version | History: r9 < r8 < r7 < r6 < r5 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r9 - 2016-01-08 - PeterThoeny
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.