Technote Details :: Cannot convert content to XHTML
Issue
When I try to submit a form that has the Convert to XHTML trigger applied, I get an error message:
Error Executing Tidy!
Reason
This happens because the trigger is trying to execute an external program - HTML Tidy - and this attempts fails. The Convert to XHTML trigger relies on an external library / program to perform the actual operations on the selected content. This error occurs due to several reasons:
- The path you provided for the HTML Tidy executable is not correct.
- The web server user does not have permissions to run programs on the server.
Solution
There are two solutions to this problem:
- Check that you have specified the correct path to the HTML Tidy executable. Verify that the file exists on disk in the specified location.
- Check the access permissions for the web server user: you must allow read and execute rights on the file and folder. On Microsoft Windows you must also allow execution rights on the cmd.exe file.