Jump to content

dylanhansch

Member
  • Posts

    5
  • Joined

  • Last visited

Everything posted by dylanhansch

  1. Thank you - that's very helpful to know. Annoying to work with though *sigh*. Is that even mentioned anywhere in the docs, or am I missing something?
  2. This is the only code in the hook file. Can't imagine it's outdated. Nothing get's logged in the module log. I should add that I tried adding that hook to the "includes/hooks/example.php" file and it worked. I also have an addon module on the WHMCS installation, and it's hooks are working fine too. Seems to be just the provisioning module. <?php if (!defined("WHMCS")) die("This file cannot be accessed directly"); add_hook('EmailTplMergeFields', 1, function ($params) { return array( 'multicraft_server_id'=>'Multicraft Server ID', ); logModuleCall('server module', 'testhook'); });
  3. Oddly enough I'm running into the exact same issue as this thread now. I updated my dev whmcs install to 7.2.2 this morning..
  4. I have several local API calls within my module. I'm curious if there's a way to automatically detect a full administrator on the WHMCS installation and use that username when making the API calls. Or even better, have them execute as the system rather than a user.
  5. I've been working to create a module to automate some simple order management stuff for me. However after struggling with my existing code, I cleared it all out just to test if the hook was even running. I'll eventually use the "AfterCronJob" hook but for testing I've tried both Pre and PostAutomationTask. It doesn't run every 2 minutes like I have the cron set to for this dev install, but it runs every other or so.. The main issue is that it seems the local API call isn't even returning anything even if it's completed. Hopefully someone has an idea to help. https://dylanhansch.net/paste/view/f266d048
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated