Jump to content

New registrar module, _TransferSync never called by cron


alex.ts

Recommended Posts

Hi!

While develop new registrar module I can`t find the problem with a function `modulename_TransferSync`, that should be called every cron start, but it doesn`t. Details:

- used the latest WHMCS stable build

- function `modulename_TransferSync` placed in the same file, as any other registrar functions. All ather functions are callable.

- checking goes through call logModuleCall('modulename', __FUNCTION__, $params, 'The domain ' . $params['domain'] . ' transfer check start'); inside the `modulename_TransferSync` and turned on module debug log

- cron call got throught GET ..HttpPath../admin/cron.php and php -q ..path../admin/cron.php

- setup->general settings->domains->Domain Sync Enabled checked

- have a 2 domains with a state `pending transfer`

- usual answer from a cron job looks like

Cron Job Report for Wednesday 21st August 2013 @ 15:32:32

0 Invoices Created

0 Late Fees Added

0 Unpaid Invoice Payment Reminders Sent

0 Overdue Invoice Reminders Sent

0 Domain Renewal Notices Sent

0 Cancellation Requests Processed

0 Services Suspended

0 Fixed Term Terminations Processed

Processed Email Marketer Rules

Updated Disk & Bandwidth Usage Stats

 

Link to comment
Share on other sites

Hi,

 

/admin/cron.php and php -q ..path../admin/cron.php

 

You are executing the daily cron. The daily cron never invokes domain related functions such as modulename_TransferSync or modulename_Sync

 

For that you have to execute the domainsync.php script located in /whmcsroot/crons/

 

Regards,

Marco

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • 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