Jump to content

Domain Sync in Custom Registrar Module - not working as it should


ptomter

Recommended Posts

Few versions a go think around WHMCS 7.6 EVERY domain of ours is now get status "Transferred Away" even if they shouldnt. We have used the same sync function for years in our module but now it markes every domain wrong even if they havent transferred.

We have also checked and there is no changes to the XML eather. Please advice.

 

	// Domain is moved to another registrar if not Username ours
    if(trim($results["EPP"]["RESPONSE"]["RESDATA"]["DOMAIN:INFDATA"]["DOMAIN:CLID"] != $params["Username"])) && $status == "Active"){
       return array ("transferredAway" => true);
    }

 

Link to comment
Share on other sites

Obviously the if condition is fulfilled, otherwise it would not happen. Without seeing the API response and more code, it's hard to be more specific.

What does the variable $status contain?
Do you verify that the API call returns something at all? If not, and the $status variable does not come from the API query, that may be the problem.

Edited by string
Link to comment
Share on other sites

I found out what  causing the problem {original] before tld. params was no longer working, so have happend in one the last WHMCS versions. And since this was not working anymore then the next point was to do som IDN conversation of domain and after this the problem where solved.

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