Health Check Error: Logic hook after_ui_footer detected

    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 a “Logic hook after_ui_footer detected” error reported by the health check.

    Symptoms

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

    image1

    Resolution

    To address this issue, the code-level customization will need to be edited from Sugar before proceeding with the upgrade.

    In this example, the health check error is identifying a custom file invoking an after_ui_frame logic hook in one of the following locations:

    • ./custom/Extension/application/Ext/LogicHooks/{file name}.php
    • ./custom/modules/logic_hooks.php

    The after_ui_footer hook is no longer supported in the upgrade target version. So, the lines of code that contain this hook will need to be commented out or removed from the file. Once the offending file is identified, you will see that it contains code such as the following:

    image2_rev

    In this example, the following line must be removed from the file:

    $hook_array['after_ui_footer'][] = Array(1, 'after_ui_footer_example', 'custom/logic_hooks/logic_hooks_class.php', 'logic_hooks_class, 'after_ui_footer_method');

    The corrected file should then look similar to this:

    image3_rev

    Once the necessary change has 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