Item8298: Stand-alone HTML -> TML conversion broken
Priority: Normal
Current State: Closed
Released In: 1.1.0
Target Release: minor
--
AdamRoybal - 02 Oct 2009
In the closed
Tasks.Item8071 item, the error reported using the stand-alone html->tml conversion is having the exact same issue.
I looked at this Item and I saw that it was fixed in v1.1. But, i have the latest Foswiki patch release and the latest
WysiwygPlugin installed.
Is there something wrong with my execution method:
- Log as Application Wiki user.
- go to tools/ directory.
- Execute ./html2tml.pl
- Then, I take the error - Can't call method "getPreferencesValue" on an undefined value at /var/opt/mctwiki/lib/Foswiki/Func.pm line 446, <> chunk 1.
HERE IS THE DEBUG TRACE:
mc1pue059 $ perl -d ./html2tml.pl general_info.htm
Loading DB routines from perl5db.pl version 1.25
Editor support available.
Enter h or `h h' for help, or `man perldebug' for more help.
main::(./html2tml.pl:14): my $html2tml = new Foswiki::Plugins::WysiwygPlugin::HTML2TML();
DB<1> c
Can't call method "getPreferencesValue" on an undefined value at /var/opt/mctwiki/lib/Foswiki/Func.pm line 446, <> chunk 1.
Foswiki::Func::getPreferencesValue('WYSIWYGPLUGIN_STICKYBITS') called at /var/opt/mctwiki/lib/Foswiki/Plugins/WysiwygPlugin.pm line 695
Foswiki::Plugins::WysiwygPlugin::protectedByAttr('body', 'link') called at /var/opt/mctwiki/lib/Foswiki/Plugins/WysiwygPlugin/HTML2TML/Node.pm line 657
Foswiki::Plugins::WysiwygPlugin::HTML2TML::Node::_isProtectedByAttrs('Foswiki::Plugins::WysiwygPlugin::HTML2TML::Node=HASH(0xbb0920)') called at /var/opt/mctwiki/lib/Foswiki/Plugins/WysiwygPlugin/HTML2TML/Node.pm line 488
Foswiki::Plugins::WysiwygPlugin::HTML2TML::Node::generate('Foswiki::Plugins::WysiwygPlugin::HTML2TML::Node=HASH(0xbb0920)', 16) called at /var/opt/mctwiki/lib/Foswiki/Plugins/WysiwygPlugin/HTML2TML/Node.pm line 571
Foswiki::Plugins::WysiwygPlugin::HTML2TML::Node::_flatten('Foswiki::Plugins::WysiwygPlugin::HTML2TML::Node=HASH(0xb9ba58)', 16) called at /var/opt/mctwiki/lib/Foswiki/Plugins/WysiwygPlugin/HTML2TML/Node.pm line 1383
Foswiki::Plugins::WysiwygPlugin::HTML2TML::Node::_handleHTML('Foswiki::Plugins::WysiwygPlugin::HTML2TML::Node=HASH(0xb9ba58)', 16) called at /var/opt/mctwiki/lib/Foswiki/Plugins/WysiwygPlugin/HTML2TML/Node.pm line 534
Foswiki::Plugins::WysiwygPlugin::HTML2TML::Node::generate('Foswiki::Plugins::WysiwygPlugin::HTML2TML::Node=HASH(0xb9ba58)', 16) called at /var/opt/mctwiki/lib/Foswiki/Plugins/WysiwygPlugin/HTML2TML/Node.pm line 571
Foswiki::Plugins::WysiwygPlugin::HTML2TML::Node::_flatten('Foswiki::Plugins::WysiwygPlugin::HTML2TML::Node=HASH(0xb5d52c)', 16) called at /var/opt/mctwiki/lib/Foswiki/Plugins/WysiwygPlugin/HTML2TML/Node.pm line 542
Foswiki::Plugins::WysiwygPlugin::HTML2TML::Node::generate('Foswiki::Plugins::WysiwygPlugin::HTML2TML::Node=HASH(0xb5d52c)', 16) called at /var/opt/mctwiki/lib/Foswiki/Plugins/WysiwygPlugin/HTML2TML/Node.pm line 247
Foswiki::Plugins::WysiwygPlugin::HTML2TML::Node::rootGenerate('Foswiki::Plugins::WysiwygPlugin::HTML2TML::Node=HASH(0xb5d52c)', 16) called at /var/opt/mctwiki/lib/Foswiki/Plugins/WysiwygPlugin/HTML2TML.pm line 133
Foswiki::Plugins::WysiwygPlugin::HTML2TML::convert('Foswiki::Plugins::WysiwygPlugin::HTML2TML=HASH(0xb9cd48)', '<html>\x{d}\x{a}\x{d}\x{a}<head>\x{d}\x{a}<title>General Info</title>\x{d}\x{a}<meta name="GE...', 'HASH(0x9b87ec)') called at ./html2tml.pl line 17
Debugged program terminated. Use q to quit or R to restart,
use O inhibit_exit to avoid stopping after program termination,
h q, h R or h O to get additional info.
--
AdamRoybal - 02 Oct 2009
Fixed in 1.1
--
CrawfordCurrie - 26 Jun 2010