https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=41991 --- Comment #14 from Marcel de Rooy <m.de.rooy@rijksmuseum.nl> --- Created attachment 199228 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=199228&action=edit Bug 41991: Introduce SUSPEND_PLUGIN when running plugins Test plan: See next patch for unit tests. Install the test plugin (Koha::Plugin::Test) from last patch on cmdline: perl -MKoha::Plugin::Test -e"Koha::Plugin::Test->new->install" Run this on cmdline too: perl -MKoha::Plugins -e'Koha::Plugins->call("report")' export SUSPEND_PLUGIN_report=1 perl -MKoha::Plugins -e'Koha::Plugins->call("report")' unset SUSPEND_PLUGIN_report The first call should show output, the second not. Go to plugins home page in staff. Do you see TEST? Click Actions, Run report. You should get a plain text response with "Koha::Plugin::Test->report completed successfully". Now suspend the report method by adding the following two lines in /etc/koha/apached-shared-intranet.conf: SetEnv SUSPEND_PLUGIN_report "1" RequestHeader add X-Koha-SetEnv "SUSPEND_PLUGIN_report 1" Note: this can be done before the DocumentRoot line. Restart apache (apachectl restart). Now refresh plugins-home page, click Run report again for TEST. You should get the Disabled page with a suspended warning. Cleanup: Remove the SetEnv and RequestHeader again from the apache file. Restart Apache. Remove the plugin by clicking Actions, Uninstall from plugins-home. Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> -- You are receiving this mail because: You are watching all bug changes.