SID-02143: ExecutePlugin EXECUTE ERROR: Script named 'uppercase' not found
| Status: |
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
--
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
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.