This question about Using an extension: Asked
Undefined subroutine &Foswiki::decode_utf8 called at /var/www/foswiki/lib/Foswiki/Engine.pm line 196
Hello guys,
I'm facing issues trying to use the
TABLE2EXCEL macro.
Here is the error log I'm getting:
Undefined subroutine &Foswiki::decode_utf8 called at /var/www/foswiki/lib/Foswiki/Engine.pm line 196.
Undefined subroutine &Foswiki::encode_utf8 called at /var/www/foswiki/lib/Foswiki/Response.pm line 442.
BEGIN failed--compilation aborted at /var/www/foswiki/lib/Foswiki.pm line 654.
Compilation failed in require at /var/www/foswiki/lib/Foswiki/UI.pm line 168.
BEGIN failed--compilation aborted at /var/www/foswiki/lib/Foswiki/UI.pm line 168.
Compilation failed in require at /var/www/foswiki/bin/table2excel line 30.
BEGIN failed--compilation aborted at /var/www/foswiki/bin/table2excel line 30.
Can't call method "finalize" on an undefined value at /var/www/foswiki/lib/Foswiki/Engine/Legacy.pm line 72.
END failed--call queue aborted at /var/www/foswiki/bin/table2excel line 30.
[Wed Oct 14 08:23:31.154449 2020] [cgid:error] [pid 66684:tid 139843380172544] [client 192.168.188.56:46672] End of script output before headers: table2excel, referer:
http://192.168.188.42/Main/AlleVNBs
Any help would be appreciate. Thank you!
Samuel
SamuelMbianda - 14 Oct 2020
Which Foswiki version and
ExcelImportExportPlugin are you using?
--
MichaelDaum - 14 Oct 2020
Hello Michael,
Sorry for the delay.
Foswiki: Foswiki version v2.1.6 , Release Foswiki-2.1.6, Foswiki API version 2.4
ExcelImportExportPlugin:
ExcelImportExportPlugin (11 Jun 2018, 3050)
Thank you.
--
SamuelMbianda - 19 Oct 2020
Could you try this patch:
diff --git a/bin/table2excel b/bin/table2excel
index db9a152..18a3257 100755
--- a/bin/table2excel
+++ b/bin/table2excel
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -wT
+#!/usr/bin/env perl
#
# Foswiki - The Free and Open Source Wiki, http://foswiki.org/
#
@@ -27,6 +27,7 @@ BEGIN {
require 'setlib.cfg';
}
-use Foswiki::UI;
-use Foswiki::Plugins::ExcelImportExportPlugin::Export;
+use Foswiki ();
+use Foswiki::UI ();
+use Foswiki::Plugins::ExcelImportExportPlugin::Export ();
Foswiki::UI::run( \&Foswiki::Plugins::ExcelImportExportPlugin::Export::table2excel );
Thanks.
--
MichaelDaum - 19 Oct 2020
Hi Michael,
I tried it but I'm still getting the exact same errors.
--
SamuelMbianda - 20 Oct 2020
Hello Michael,
I have the same error.
Foswiki release Foswiki-2.1.6, Plugin API version 2.4.
Apache/2.2.15 (Unix) DAV/2 mod_perl/2.0.4 Perl/v5.10.1 configured
--
TobiasVincze - 07 Dec 2020