You are here: Foswiki>Tasks Web>Item2302 (05 Nov 2009, AndrewJones)Edit Attach

Item2302: Wysiwyg gives fatal error when the topic has a header 7

pencil
Priority: Normal
Current State: No Action Required
Released In:
Target Release: n/a
Applies To: Extension
Component: WysiwygPlugin, TinyMCEPlugin
Branches:
Reported By: AndrewJones
Waiting For:
Last Change By: AndrewJones
When a topic has a heading level 7 in it, editing it with the WYSIWYG editor gives the following error:

Foswiki detected an internal error - please check your Foswiki logs and webserver logs for more information. Undefined subroutine CGI::h7

This is with Foswiki 1.0.7, and Wysiwyg plugin 4981 (2009-09-18).

Strangely, I cannot reproduce on fw.org (Sandbox.Heading7Test), which has the same versions.

This worked in TWiki 4.2. Unfortunately I can't test in something more recent to find out when it broke.

-- AndrewJones - 28 Oct 2009

I am using CGI version 3.15, and am running FastCGI.

Our TWiki 4.2 also uses the same CGI version.

-- AndrewJones - 28 Oct 2009

Actually, on this site, if I edit my test topic it removes the heading leaving the plain text.

-- AndrewJones - 28 Oct 2009

Actually, HTML doesn't have a h7 - only h1-h6. The old TinyMCEPlugin was based on TinyMCE 2.x.

In TinyMCE 3.x, they've become very strict about only supporting valid XHTML.

If you study the current 4981 (2009-09-18) release of WysiwygPlugin, tml2html does actually correctly convert and transmit <h7> tags to TinyMCE. But TinyMCE is stripping them out when it posts to html2tml (or maybe it's the browser not recognising them as valid DOM element nodes).

I'm afraid there's not much we can do.

Upgrade your WysiwygPlugin and TinyMCEPlugin to the latest release versions, and if Foswiki no longer crashes when trying to convert <h7>s to/from TML, please close this bug as no action required.

-- PaulHarvey - 05 Nov 2009

Thanks for the explanation.

I have tried it on an up to date SVN based install and Foswiki no longer crashes, so will close the task.

-- AndrewJones - 05 Nov 2009
 

ItemTemplate edit

Summary Wysiwyg gives fatal error when the topic has a header 7
ReportedBy AndrewJones
Codebase 1.0.7
SVN Range Foswiki-1.0.7, Sun, 20 Sep 2009, build 5061
AppliesTo Extension
Component WysiwygPlugin, TinyMCEPlugin
Priority Normal
CurrentState No Action Required
WaitingFor
Checkins
TargetRelease n/a
ReleasedIn
Topic revision: r4 - 05 Nov 2009, AndrewJones
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