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.