Jump to content

whatever I tried , expiry date remains the same. domainsync.php didn't call registrar_sync() to complete domain sync


LukeW

Recommended Posts

Hello Dear Friends

As it's know to all , the registrar_sync function is called by a separate domainsync.php cron job, so first thing first is to build a registrar_sync() in registrar module.  

so I have built the registrar module like below: 

#####################################################################

function onlinenic_Sync($params) {
    $tld = $params['tld'];
    $sld = $params['sld'];
    $api = onlinenic_getApiClient($params);
    $domainType = $api->getDomainTypeByTld($tld);
    $rs = $api->infoDomain($domainType, $sld . "." . $tld);
    if ( !$rs ) {
        $lastResult = $api->getLastResult();
        $values['error'] = $lastResult['code'] . ' - ' . $lastResult['msg'] . ' - ' . $lastResult['value'];
        return $values;
    }
    $domainInfo = $api->getLastResult("resData");
    $values['active'] = true;
    $values['expired'] = false;
    $values['expirydate'] = $domainInfo['exDate'];

    //Module logging
            logModuleCall(
            'OnlineNICV1.42',
            DomainSync,
            array (onlinenic_getDomainType($tld), $sld.'.'.$tld),
            $values['expirydate']);
    //Module logging
    
    return $values;
}

#####################################################################

And here is what I did in cronjob

0,10 0,3,6,9,12,15,18,21 1,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31 1,5,9 1,2,3,4,5 php -q /home/bigmtulb/public_html/crons/cron.php
0,15,30,45 * * * * php -q /home/bigmtulb/public_html/crons/domainsync.php

I also excuded cronjob maually for test , like:

php -q /home/bigmtulb/public_html/crons/cron.php all -F -vvv

And:

php -q /home/bigmtulb/public_html/crons/domainsync.php all -F -vvv

However, whatever I tried , the domain expiry date remains the same .

What may lead  to this problem? I don't see any problem on both side.

 

 

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