Item8298: Stand-alone HTML -> TML conversion broken

pencil
Priority: Normal
Current State: Closed
Released In: 1.1.0
Target Release: minor
Applies To: Extension
Component: WysiwygPlugin
Branches:
Reported By: Foswiki:Main.AdamRoybal
Waiting For:
Last Change By: KennethLavrsen
-- 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:
  1. Log as Application Wiki user.
  2. go to tools/ directory.
  3. Execute ./html2tml.pl
  4. 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&#39; for help, or `man perldebug&#39; for more help.

main::(./html2tml.pl:14):       my $html2tml = new Foswiki::Plugins::WysiwygPlugin::HTML2TML();
                                                                                                                                                                              DB&#60;1&#62; c
Can&#39;t call method &#34;getPreferencesValue&#34; on an undefined value at /var/opt/mctwiki/lib/Foswiki/Func.pm line 446, &#60;&#62; chunk 1.
        Foswiki::Func::getPreferencesValue(&#39;WYSIWYGPLUGIN_STICKYBITS&#39;) called at /var/opt/mctwiki/lib/Foswiki/Plugins/WysiwygPlugin.pm line 695
        Foswiki::Plugins::WysiwygPlugin::protectedByAttr(&#39;body&#39;, &#39;link&#39;) called at /var/opt/mctwiki/lib/Foswiki/Plugins/WysiwygPlugin/HTML2TML/Node.pm line 657
        Foswiki::Plugins::WysiwygPlugin::HTML2TML::Node::_isProtectedByAttrs(&#39;Foswiki::Plugins::WysiwygPlugin::HTML2TML::Node=HASH(0xbb0920)&#39;) called at /var/opt/mctwiki/lib/Foswiki/Plugins/WysiwygPlugin/HTML2TML/Node.pm line 488
        Foswiki::Plugins::WysiwygPlugin::HTML2TML::Node::generate(&#39;Foswiki::Plugins::WysiwygPlugin::HTML2TML::Node=HASH(0xbb0920)&#39;, 16) called at /var/opt/mctwiki/lib/Foswiki/Plugins/WysiwygPlugin/HTML2TML/Node.pm line 571
        Foswiki::Plugins::WysiwygPlugin::HTML2TML::Node::_flatten(&#39;Foswiki::Plugins::WysiwygPlugin::HTML2TML::Node=HASH(0xb9ba58)&#39;, 16) called at /var/opt/mctwiki/lib/Foswiki/Plugins/WysiwygPlugin/HTML2TML/Node.pm line 1383
        Foswiki::Plugins::WysiwygPlugin::HTML2TML::Node::_handleHTML(&#39;Foswiki::Plugins::WysiwygPlugin::HTML2TML::Node=HASH(0xb9ba58)&#39;, 16) called at /var/opt/mctwiki/lib/Foswiki/Plugins/WysiwygPlugin/HTML2TML/Node.pm line 534
        Foswiki::Plugins::WysiwygPlugin::HTML2TML::Node::generate(&#39;Foswiki::Plugins::WysiwygPlugin::HTML2TML::Node=HASH(0xb9ba58)&#39;, 16) called at /var/opt/mctwiki/lib/Foswiki/Plugins/WysiwygPlugin/HTML2TML/Node.pm line 571
        Foswiki::Plugins::WysiwygPlugin::HTML2TML::Node::_flatten(&#39;Foswiki::Plugins::WysiwygPlugin::HTML2TML::Node=HASH(0xb5d52c)&#39;, 16) called at /var/opt/mctwiki/lib/Foswiki/Plugins/WysiwygPlugin/HTML2TML/Node.pm line 542
        Foswiki::Plugins::WysiwygPlugin::HTML2TML::Node::generate(&#39;Foswiki::Plugins::WysiwygPlugin::HTML2TML::Node=HASH(0xb5d52c)&#39;, 16) called at /var/opt/mctwiki/lib/Foswiki/Plugins/WysiwygPlugin/HTML2TML/Node.pm line 247
        Foswiki::Plugins::WysiwygPlugin::HTML2TML::Node::rootGenerate(&#39;Foswiki::Plugins::WysiwygPlugin::HTML2TML::Node=HASH(0xb5d52c)&#39;, 16) called at /var/opt/mctwiki/lib/Foswiki/Plugins/WysiwygPlugin/HTML2TML.pm line 133
        Foswiki::Plugins::WysiwygPlugin::HTML2TML::convert(&#39;Foswiki::Plugins::WysiwygPlugin::HTML2TML=HASH(0xb9cd48)&#39;, &#39;&#60;html&#62;\x{d}\x{a}\x{d}\x{a}&#60;head&#62;\x{d}\x{a}&#60;title&#62;General Info&#60;/title&#62;\x{d}\x{a}&#60;meta name=&#34;GE...&#39;, &#39;HASH(0x9b87ec)&#39;) 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
 

ItemTemplate edit

Summary Stand-alone HTML -> TML conversion broken
ReportedBy Foswiki:Main.AdamRoybal
Codebase 1.0.7, trunk
SVN Range Foswiki-1.0.7, Sun, 20 Sep 2009, build 5061
AppliesTo Extension
Component WysiwygPlugin
Priority Normal
CurrentState Closed
WaitingFor
Checkins distro:eaf5ccc2f271
TargetRelease minor
ReleasedIn 1.1.0
Topic revision: r5 - 04 Oct 2010, KennethLavrsen
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy