Jump to content
Remitur

IDN and Registrar module

Recommended Posts

I'm getting crazy with IDN...  😞

There's a registrar module, which worked fine with IDN : in client area the domain was specified in punycode, the module when needed did the conversion in UTF8, everything worked fine.

Worked fine until... I don't know. Maybe until last WHMCS update to 7.6.1 , and/or the update to PHP 7.2

Now, it's (not) working so:

  • if the domain is specified in Punycode, WHMCS converts it in (wrongly) UTF8 before passing the paramenters to the module
    That's to say:
    domain   xn--cicciobello-39a.it (ciccioèbello.it )
    To the module, WHMCS is passing:
    $params['sld']  = 'ciccioebello'
    $params['tld'] = 'it'
     
  • if the domain is specified in UTF8, WHMCS converts it in (wrongly) UTF8 before passing the parameters to the module
    That's to say:
    domain   ciccioèbello.it
    To the module, WHMCS is passing:
    $params['sld']  = 'ciccioebello'
    $params['tld'] = 'it'
    (so, changing an "è" in "e")
     

Checking ou unchecking the "general settings" => "domains" => Allow IDN Domains .... nothing change. 

I digged deep in WHMCS documentation about it, but found anything useful...    😓

Share this post


Link to post
Share on other sites
27 minutes ago, Remitur said:

Worked fine until... I don't know. Maybe until last WHMCS update to 7.6.1 , and/or the update to PHP 7.2

have you tried changing the PHP version back to the previous version ?? that should at least tell you whether the PHP 7.2 is the cause, or if the issue lies elsewhere.

Share this post


Link to post
Share on other sites
6 minutes ago, brian! said:

have you tried changing the PHP version back to the previous version ?? that should at least tell you whether the PHP 7.2 is the cause, or if the issue lies elsewhere.

Just tried... switched back to php 5.6 .... nothing change, still same issue...

 

Share this post


Link to post
Share on other sites
15 minutes ago, Remitur said:

Just tried... switched back to php 5.6 .... nothing change, still same issue...

oh well, it was worth a try. 🙂

if you're using v7.6.1 now, what version did you upgrade from? e.g with which version was this module working correctly with ??

 

Share this post


Link to post
Share on other sites
7 minutes ago, brian! said:

 

if you're using v7.6.1 now, what version did you upgrade from?

7.5

Share this post


Link to post
Share on other sites
9 minutes ago, Remitur said:

7.5

ok, I knew there were IDN changes in v7.4 - but if they were the cause of this, it should have affected you in v7.5 too, but apparently not.

can you get in touch with the developer of the module to see if there's an updated version ??

Share this post


Link to post
Share on other sites

WHMCS's support answered and gave the fix (thanks!).
I report it here for the community:

Quote

WHMCS strips out certain characters to remain compatible with numerous registrars and control panels that do not fully conform to IDN standard. However, this behavior can be overridden by using a custom transliteration hook: http://docs.whmcs.com/Custom_Transliteration

 

Share this post


Link to post
Share on other sites
1 minute ago, Remitur said:

WHMCS's support answered and gave the fix (thanks!).

good to hear. ☺️

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.

×

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated