Jump to content

daily cron job on demand


Dkuzik

Recommended Posts

7 hours ago, Dkuzik said:

No its in default folder.  All my other hooks work.  Hooks debug doesn't show anything wrong.  Using Blend admin theme.  See image nothing showing

image.thumb.png.850f086c82b8c55d28a7abc9e18050d5.png

It's possible WHMCS has changed how the crons are run, I'll have a look later.

If you run the cron file manually (e.g. https://yourdomain.com/crons/cron.php), can you confirm it works?

Check Last Cron Invocation under Automation Status.

Edited by leemahoney3
Link to comment
Share on other sites

There are no hook errors

hooks in default directory

 

Hooks Debug: Hook File Loaded: /www/wwwroot/mydomain.com/billing/includes/hooks/DailyCronJobOnDemand.php
None Admin ID 1
 
 
09/20/2022 18:22
Hooks Debug: Hook Defined for Point: AdminAreaHeaderOutput - Priority: 1 - Function Name: (anonymous function)
None Admin ID 1
 
 
09/20/2022 18:22
Hooks Debug: Attempting to load hook file: /www/wwwroot/mydomain.com/billing/includes/hooks/DailyCronJobOnDemand.php

image.thumb.png.397d65b7ca149b8f95f2e88bfa5ec755.png

image.png.2d8e7eea90b20809d2975f3d06609f59.png

Link to comment
Share on other sites

  • 1 month later...
On 9/20/2022 at 5:06 AM, Dkuzik said:

No its in default folder.  All my other hooks work.  Hooks debug doesn't show anything wrong.  Using Blend admin theme.  See image nothing showing

image.thumb.png.850f086c82b8c55d28a7abc9e18050d5.png

It doesn't show anything because the hook was made for WHMCS v5, v6 and v7. The current admin template has changes that prevent jQuery from finding a CSS selector on the page. Btw I updated the code so that the Run Daily Cron button is displayed on top of the sidebar as follows.

whmcs-run-cron-on-demand.png

 

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • 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