Technote Details :: When I switch to Code view or try to save content I get an error

Issue

After entering content in the KTML online editor, when I hit the submit button I get an error message:

Cannot convert to XHTML. Make sure you have HTML Tidy installed. Error returned: error executing command: C:/utils/dlls/tidy.exe "--version". Exit code: 1.

I get the same error when I try to switch to code view as well.

Reason

This happens because you have configured the KTML control to display and save content XHTML compliant. The conversion to XHTML is made through an external application, HTML Tidy. If this application is not installed on your system, the conversion cannot be completed and this error will be displayed.

Solution

There are two ways to solve this issue:

  1. Edit the page that contains the KTML control and configure it not to use XHTML compliance when saving and displaying the source code.
  2. Download and install HTML Tidy. Then, in the includes/common/KT_config.inc.xxx file set the correct path for the KT_prefered_tidy_path entry.

Home > Support > Knowledge Base > Technote Details
Search the Knowledge Base
© Adobe Systems Romania. All rights reserved.