dixonjoseph.k Posted October 7, 2016 Share Posted October 7, 2016 Hi, We have a hook to terminate the cpanel license. It was working earlier. Now it is not working. When I checked, there is no $vars values are coming to that hook. Used the below code. function terminate_hook_check($vars) { echo "<pre>"; var_dump($vars); die(); } add_hook('AfterModuleTerminate', 1, 'terminate_hook_check'); It just printed as null array (size=1) 'params' => null Also tried 'PreModuleTerminate' hook and it returned values. So please let me know the issue. 0 Quote Link to comment Share on other sites More sharing options...
dixonjoseph.k Posted October 7, 2016 Author Share Posted October 7, 2016 Hi, I disabled all the files which are using 'PreModuleTerminate' hook and now the termination is working fine. I have to check that code. 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.