jacksoggetto Posted May 5, 2019 Share Posted May 5, 2019 I created a hook, and it apperas that DailyCronJob is not being called at all. I created a simple testing hook file: function whmcstricks_cancel_invoices($vars) { logactivity('Hook cancel invoice run, check if something was cancelled'); } function whmcstricks_cancel_invoices_bis($vars) { logactivity('Hook cancel invoice_bis run, check if something was cancelled'); } function whmcstricks_cancel_invoices_tris($vars) { logactivity('Hook cancel invoice_tris run, check if something was cancelled'); } add_hook('AfterCronJob', 1000, 'whmcstricks_cancel_invoices'); add_hook('DailyCronJobPreEmail', 1000, 'whmcstricks_cancel_invoices_bis'); add_hook('DailyCronJob', 1000, 'whmcstricks_cancel_invoices_tris'); And only the whmcstricks_cancel_invoices function is being called. is it possible that these hooks are not working anymore? is this hook file logging correctly for the 4 functions for you? 0 Quote Link to comment Share on other sites More sharing options...
jacksoggetto Posted May 5, 2019 Author Share Posted May 5, 2019 I found the problem, a hook that was using the same hook point was generating an error (not reported in the log) and that was preventing all the hooks to run 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.