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.
This error generates an output similar to the following in health check:
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:
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:
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:
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.