Menu

#64 HTML generator error

pending
v1.6
5
2012-05-15
2011-04-23
lexoyo
No

In the theme "html5-editor.org-theme" (in apps/themes/)
I go tu URL apps/themes/html5-editor.org/silex_server/?/html5-editor.org-theme-2/&format=html
And have the haXe error bellow
There are only these components: label buttons, geometry, image, text

uncaught exception: Xml parse error (Mismatched tag) line #1

in file: C:\Users\lexa\Documents\repositories\silex-apps\themes\html5-editor.org\silex_server\plugins\htmlGenerator\generator\lib\Xml.class.php line 261

0 C:\Users\lexa\Documents\repositories\silex-apps\themes\html5-editor.org\silex_server\plugins\silexComponents\html5\org\silex\ui\components\buttons\LabelButtonBase.class.php(35): Xml::parse('returnHTML()

2 C:\Users\lexa\Documents\repositories\silex-apps\themes\html5-editor.org\silex_server\plugins\htmlGenerator\generator\lib\org\silex\htmlGenerator\SubLayer.class.php(21): org_silex_ui_UiBase->getHTML()

3 C:\Users\lexa\Documents\repositories\silex-apps\themes\html5-editor.org\silex_server\plugins\htmlGenerator\generator\lib\org\silex\htmlGenerator\Main.class.php(179): org_silex_htmlGenerator_SubLayer->returnHTML()

4 C:\Users\lexa\Documents\repositories\silex-apps\themes\html5-editor.org\silex_server\plugins\htmlGenerator\index.php(39): org_silex_htmlGenerator_Main::main()

5 [internal function]: htmlGenerator->htmlGeneratorStart(Object(_hx_anonymous))

6 C:\Users\lexa\Documents\repositories\silex-apps\themes\html5-editor.org\silex_server\cgi\includes\HookManager.php(71): call_user_func_array(Array, Array)

7 C:\Users\lexa\Documents\repositories\silex-apps\themes\html5-editor.org\silex_server\framework\hx\org\silex\serverApi\HookManager.class.php(8): HookManager->callHooks('pre-index-head', Array)

8 C:\Users\lexa\Documents\repositories\silex-apps\themes\html5-editor.org\silex_server\framework\hx\org\silex\html\SilexIndex.class.php(183): org_silex_serverApi_HookManager->callHooks('pre-index-head', Object(_hx_array))

9 C:\Users\lexa\Documents\repositories\silex-apps\themes\html5-editor.org\silex_server\index.php(9): org_silex_html_SilexIndex::main()

10 {main}

Discussion

  • Benjamin Dasnois

    So, there are two parts in this bug:

    • First one is that some code has been added for the Geometry component directly inside baseComponents/index.php which outputs code although redirection headers, if needed, are still not sent (resulting in an headers already sent if redirection is needed)

    Second part is that HTML code from HTML supporting components such as LabelButton should be XML compliant elsewhat it can't be parsed to be transformed to "true" HTML code.

     
  • Benjamin Dasnois

    Now falls back to error-safe parser.

     

Log in to post a comment.

MongoDB Logo MongoDB