## page was renamed from MoinMoinBugs/expath error
= Description =
{{{
ExpatError: mismatched tag: line 376, column 1239 (see dump in /var/www/moin/home/data/expaterror.log)

If you want to report a bug, please save this page and attach it to your bug report.

    * Show debugging information
    * Report bug
    * Visit MoinMoin wiki

}}}
== Steps to reproduce ==
## Describe the steps needed to reproduce the bug. If we can't reproduce it, we  probably can't fix it.
 1. do this...

== Example ==
##Add URL that show the bug, screenshot or test wiki markup that fail...

##URL: 

##attachment:screenshot.png

##{{{
##Example wiki markup that fail
##}}}

== Details ==

## If you got a traceback, please save the traceback page as html and attach here:
## attachment:traceback.html

## if the bug is in this wiki, just kill the table and write: This Wiki.

## If a traceback is not available, please fill in the details here:
|| '''!MoinMoin Version''' ||  ||
|| '''OS and Version''' ||  ||
|| '''Python Version''' ||  ||
|| '''Server Setup''' || ||
|| '''Server Details''' || ||
|| '''Language you are using the wiki in''' (set in the browser/UserPreferences) || ||

== Workaround ==
## How to deal with the bug until it is fixed


= Discussion =
This issue is covered by other GUI editor bugs. It mainly means that you pasted or copied text that contains incorrect (not wellformed) HTML. MoinMoin uses a strict parser and cannot do anything about this.




I have come across this issue with the GUI editor in Chrome(7.0 on Windows 32bit) Windows and Chromium(6.0.4 on Ubuntu 10.10(i386)).

No cut and paste is necessary, simply try to save a new page with Google chrome.(I was able to reproduce with chromium, creating http://moinmo.in/MoinMoinBugs/ExpatError/Test with the default text)

This patch fixed the issue for me:

{{{
--- ./moin-1.9.3/MoinMoin/web/static/htdocs/applets/moinfckconfig.js    2010-06-26 22:46:46.000000000 +0100
+++ ../new/moin-1.9.3/MoinMoin/web/static/htdocs/applets/moinfckconfig.js       2010-11-13 23:22:21.282645001 +0000
@@ -37,9 +37,10 @@
  //['Bold', 'Italic', 'Typewriter', 'Underline', 'StrikeThrough', '-', 'Big', 'Small', 'Superscript', 'Subscript'],
  ['Bold', 'Italic', 'Underline', 'StrikeThrough', 'RemoveFormat'],
  ['OrderedList','UnorderedList','-','Indent','Outdent'],
- ['Link','Unlink','Attachment','Image','Smiley'],
+ ['Link','Image','Smiley'],
+// ['Link','Unlink','Attachment','Image','Smiley'],
  ['Table','Rule','SpecialChar'],
- ['Macro'],
+// ['Macro'],
  ['Source']
 ] ;

@@ -74,13 +75,13 @@
 */
 FCKConfig.Plugins.Add( 'selection') ;
 FCKConfig.Plugins.Add( 'moinbehaviour') ;
-FCKConfig.Plugins.Add( 'restrict_actions' ) ;
+//FCKConfig.Plugins.Add( 'restrict_actions' ) ;
 FCKConfig.Plugins.Add( 'moinunlink' );
 FCKConfig.Plugins.Add( 'macro', 'en,it' ) ;
-FCKConfig.Plugins.Add( 'moinlink' ) ;
-FCKConfig.Plugins.Add( 'moinattachment' ) ;
+//FCKConfig.Plugins.Add( 'moinlink' ) ;
+//FCKConfig.Plugins.Add( 'moinattachment' ) ;
 FCKConfig.Plugins.Add( 'moinformat' ) ;
-FCKConfig.Plugins.Add( 'moinimage' ) ;
+//FCKConfig.Plugins.Add( 'moinimage' ) ;
 FCKConfig.Plugins.Add( 'smiley' );

 /* The list of the smiley images. MUST be done from here, auto-generating in MoinMoin-Code does not work! */
}}}


This fixed the issue for me on chrome, 'restrict_actions', 'moinlink', 'moinimage', 'moinattachment' seem to cause the post to become truncated, and therefore breaks the XML parsing.


= Plan =
## This part is for Moin``Moin developers:

 * Priority: 
 * Assigned to:
 * Status: 

----
## If you are a moin core developer, replace the category to Category* in these cases:
## Category MoinMoinNoBug - if this is not a bug.
## Category MoinMoinBugConfirmed - if you can confirm the bug on current code.
## Category MoinMoinBugFixed - after the bug is fixed in current code.
CategoryMoinMoinNoBug