Saroha Posted April 14, 2018 Share Posted April 14, 2018 Hi everyone, I facing an issue with hooks in my custom addon module in WHMCS 7.5 . My module work fine on WHMCS 7.4.2 but it hooks not fired in WHMCS 7.5. Beside of this my module work fine in addon configuration and managing in Admin Panel in WHMCS 7.5 only hooks not fired. i use three hooks. Please help me to solve this issue. add_hook( 'ClientAreaHeadOutput', 1, 'mymodule_ClientAreaHeadOutput_Hook' ); add_hook( 'ClientAreaPage', 1, 'mymodule_ClientAreaPage_Hook' ); add_hook('ClientAreaHeaderOutput', 1, 'mymodule_ShowSocialSharing'); Link to comment Share on other sites More sharing options...
WHMCS Support Manager WHMCS John Posted April 14, 2018 WHMCS Support Manager Share Posted April 14, 2018 Hi @saroha, To confirm whether the hook point is being called and whether your file is being loaded, please navigate to Setup > General Settings > Other tab and enable the "Hooks Debug Mode" option. Now reproduce the issue. Then immediately switch Hooks Debug Mode off. Now review Utilities > Logs > Activity Log, amongst the log entries you should see the hook point being called and your file being loaded. If your hook file is loaded then this indicates that the problem lies with your code and you'll need to debug that at your end. Link to comment Share on other sites More sharing options...
Recommended Posts