• Do not register here on develop.twiki.org, login with your twiki.org account.
• Use View topic Item7848 for generic doc work for TWiki-6.1.1. Use View topic Item7851 for doc work on extensions that are not part of a release. More... Close
• Anything you create or change in standard webs (Main, TWiki, Sandbox etc) will be automatically reverted on every SVN update.
Does this site look broken?. Use the LitterTray web for test cases.

Item6072: Can't call method "generate" on unblessed reference at lib/TWiki/Plugins/WysiwygPlugin/HTML2TML/Node.pm line 630.

Item Form Data

AppliesTo: Component: Priority: CurrentState: WaitingFor: TargetRelease ReleasedIn
Extension WysiwygPlugin Normal Closed   major 6.0.0

Edit Form Data

Summary:
Reported By:
Codebase:
Applies To:
Component:
Priority:
Current State:
Waiting For:
Target Release:
Released In:
 

Detail

Sorry, this is not very complete report but the bug seems serious. I can't reproduce the bug since I don't know what the user exactly did - reportedly just plain edit. From the logs: the call:

"POST /bin/save/Main/FIUGINET HTTP/1.1" 200 157 "http://geoinformatics.tkk.fi/bin/edit/Main/FIUGINET?t=1224047956" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.6) Gecko/20070725 Firefox/2.0.0.6"

the error

Use of uninitialized value in pattern match (m//) at /var/www/geoinformatics/lib/TWiki/Plugins/WysiwygPlugin/HTML2TML/Node.pm line 620.,referer: http://geoinformatics.tkk.fi/bin/edit/Main/FIUGINET?t=1224047956
Use of uninitialized value in pattern match (m//) at /var/www/geoinformatics/lib/TWiki/Plugins/WysiwygPlugin/HTML2TML/Node.pm line 626.,referer: http://geoinformatics.tkk.fi/bin/edit/Main/FIUGINET?t=1224047956
Can't call method "generate" on unblessed reference at /var/www/geoinformatics/lib/TWiki/Plugins/WysiwygPlugin/HTML2TML/Node.pm line 630., referer: http://geoinformatics.tkk.fi/bin/edit/Main/FIUGINET?t=1224047956

The TWiki is 4.2.3

-- TWiki:Main.AriJolma

The first two uninitialized value warnings suggest something is badly wrong with the HTML it is processing, possibly a partial page, or some previously-unseen damage to a list caused in Tiny MCE. The problem occurred in or near a bullet (or numbered, or definition) list. If you can get any more information e.g "user deleted a list item" that would help. If you can recover the original topic that was edited, that would also help. Otherwise, it would be pure guesswork.

-- TWiki:Main.CrawfordCurrie - 16 Oct 2008

When I saw this I remembered that I was supposed to report this bug also.

As I remember (did not have time to verify it this morning) the trigger is to

  • Use Firefox
  • Edit in Wysiwyg
  • Write some text as bullet points
  • On the last line make a bullet point which is only the bullet and no text
  • Try to either save or click the pickaxe

As I remember this was how I could trigger the error in 4.2.3

-- TWiki:Main.KennethLavrsen - 17 Oct 2008

OK took the time to try it and now I cannot trigger it here at home on SVN TWikiRelease04x02 branch.

Either it is fixed on SVN OR it is something more that is required. I need to try and find the exact topic at work where I saw the problem. It happened when I urgently needed to write some minutes from meeting between two meetings and that is why I forgot all about it again.

It could also be a Firefox update that has cured it. I'll be back.

-- TWiki:Main.KennethLavrsen - 17 Oct 2008

I have found the proximate cause of the error, and wrote it up on my TWiki.org page at http://twiki.org/cgi-bin/view/Main/JimSchneider#Fix_for_Item6072_in_the_bug_list while I was waiting for my registration to percolate through to this system. If you just want a fix, change line #620 in lib/TWiki/Plugins/WysiwygPlugin/HTML2TML/Node.pm (starting from your TWiki install directory) from this:

        if( $grandkid->{tag} =~ /^div$/i

to this:

        if($grandkid && $grandkid->{tag} =~ /^div$/i

-- TWiki:Main.JimSchneider - 22 Jan 2009

Reading the code, this is fixed in the latest WysiwygPlugin.

-- TWiki:Main.PeterThoeny - 2013-10-02

ItemTemplate
Summary Can't call method "generate" on unblessed reference at lib/TWiki/Plugins/WysiwygPlugin/HTML2TML/Node.pm line 630.
ReportedBy TWiki:Main.AriJolma
Codebase 4.2.3
SVN Range TWiki-5.0.0, Sun, 05 Oct 2008, build 17588
AppliesTo Extension
Component WysiwygPlugin
Priority Normal
CurrentState Closed
WaitingFor

Checkins

TargetRelease major
ReleasedIn 6.0.0
Edit | Attach | Watch | Print version | History: r7 < r6 < r5 < r4 < r3 | Backlinks | Raw View |  Raw edit | More topic actions
Topic revision: r7 - 2013-10-15 - PeterThoeny
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2023 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback