NMod-IWL Posted June 28 Share Posted June 28 Hello everyone, I developed a module to connect our WHMCS to the electronic invoice system and I use the "AdminInvoicesControlsOutput" hook. We upgraded WHMCS from 8.5 to 8.10 and it seems that the hook is not called anymore. I have noticed that if an invoice is displayed within the url admin/invoices.php?action=edit&id=XXXX the "AdminInvoicesControlsOutput" hook is executed, whereas if the same invoice is displayed under admin/billing/invoices/XXXX the hook is NOT executed. Consider that I am not modifying the WHMCS configuration. I have enabled the hooks debug and I saw that the callback is hooked, but the hook is not called. Any suggestion on what is going on? Thank you all! 0 Quote Link to comment Share on other sites More sharing options...
LUIS ALBERTO Posted June 28 Share Posted June 28 you can create a log record in your hook that allows you to record a log of any problem that is causing the hook not to run so you can better see what the problem is. 0 Quote Link to comment Share on other sites More sharing options...
NMod-IWL Posted June 28 Author Share Posted June 28 Thankyou for your reply, Luis Alberto! Could you better specify what you mean, please? My callback does not run at all (it seems to me that the AdminInvoicesControlsOutput hook is not called), how can debug that? 🤔 Thankyou! 0 Quote Link to comment Share on other sites More sharing options...
WhmTools Posted June 28 Share Posted June 28 admin/invoices.php?action=edit&id=XXXX is the invoice edit page, admin/billing/invoices/XXXX is also invoice edit page? AdminInvoicesControlsOutput will be executed on the invoice edit page. 0 Quote Link to comment Share on other sites More sharing options...
NMod-IWL Posted June 28 Author Share Posted June 28 Yes, WhmTools, those are identical admin pages. I don't know why after the upgrade we see that kind of URLs in the admin... 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.