Health Check Error: Inline HTML found

    Overview

    The Health Check wizard must be run when upgrading to evaluate whether your instance is suitable for upgrade. During the health check, various types of issues may be detected which can affect your ability to upgrade. This article will cover how to resolve an “Inline HTML found” error reported by the health check.

    Symptoms

    This error generates an output similar to the following in health check:

    rest/v10/supp_Files/8ed90aab-eda7-e645-ff3c-5502806292a9/file/uploadfile?format=sugar-html-json&platform=base

    Resolution

    The generated error message will help determine the contents of the file causing the health check error. To address this issue, the code-level customization will need to be edited from Sugar before proceeding with the upgrade.

    Breakdown of health check error:

    • The file causing the error can be found in ./custom/Extension/modules/Accounts/Ext/Language/en_us.inlineHtml.php.
    • The health check detects an issue on line 1 of the file.
    rest/v10/supp_Files/40bc5457-1bea-c138-e07d-5502800f030a/file/uploadfile?format=sugar-html-json&platform=base

    In this example, we highlight three potential issues which could trigger this error. Here is the code for the sample file:

    The three issues detected in this file are:

    • Extra white space at the beginning of the file.
    • Missing php after the opening <? in the file. 
    • Extra white space at the end of the file.

    Remove the extra white spaces and add php (if missing) after <? in the file, then re-save the file. The corrected file should then look like:

    rest/v10/supp_Files/a58ce21a-00a0-1426-37f7-5502802f2551/file/uploadfile?format=sugar-html-json&platform=base

    Once the necessary changes have been made, please navigate to Admin > Repair and perform a “Quick Repair and Rebuild” to ensure that the changes are synced between the application and database. Then, perform the health check again to confirm that the error is no longer reported.

    in Troubleshooting Health Check Output

    Reach out to us for help