cslinux Posted April 13, 2010 Share Posted April 13, 2010 Function "AfterModuleCreate" seems to be never called i have many print statements never got them printed outs, don't know what's wrong. I'm using add_hook(); like that : add_hook("AfterModuleCreate",0,"actionhook_AfterModuleCreate",""); Also Error reporting ON: $display_errors="on"; $error_reporting="-1"; Any help or suggestions will be greatly appreciated . 0 Quote Link to comment Share on other sites More sharing options...
MACscr Posted May 31, 2010 Share Posted May 31, 2010 Did you get this resolved? The hook doesnt seem to be running for me either after cpanel accounts are created in whmcs. btw, what do you have in your actionhook_AfterModuleCreate() function? 0 Quote Link to comment Share on other sites More sharing options...
HerrZ Posted May 31, 2010 Share Posted May 31, 2010 Do not debug to screen. on modulecreate hook write to a logfile. maybe you will see it still works. 0 Quote Link to comment Share on other sites More sharing options...
MACscr Posted May 31, 2010 Share Posted May 31, 2010 yeah, i figured it out. There was an issue with the cpanel auto setup not working, so then my function didnt even get a chance to run. Thanks though. 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.