• Hi,

    Whenever I want to authenticate a website with Danish characters in the URL, the plugins won’t allow me to verify.

    Will you support Danish characters anytime soon?

    /Thomas

    The page I need help with: [log in to see the link]

Viewing 15 replies - 1 through 15 (of 16 total)
  • Plugin Contributor iSaumya

    (@isaumya)

    Whenever I want to authenticate a website with Danish characters in the URL, the plugins won’t allow me to verify.

    – Can you share a screen recording of the issue you are facing so that I can clearly understand the problem?

    Thread Starter Thomas Duerlund Falkenberg

    (@thomasduerlund)

    Is there a safe way I can share this recording with you?

    Plugin Contributor iSaumya

    (@isaumya)

    You can record the screen with something like loom and share the URL of the screen recording here.

    Actually in the WordPress forum we are not allowed to share alternate mode of communication as it is against the community guidelines.

    Thread Starter Thomas Duerlund Falkenberg

    (@thomasduerlund)

    The recording is here: https://youtu.be/H3Ivlh1je84

    And it’s understandable. No worries.

    Plugin Contributor iSaumya

    (@isaumya)

    Can you try the global API Key instead of the token the cloudflare domain is supposed to be a dropdown. I will look into it further. In the mean time can you try the global API key and let me know if it worked?

    Thread Starter Thomas Duerlund Falkenberg

    (@thomasduerlund)

    I can confirm the global API works.

    But I would rather use the tokens instead. Thanks for looking into this. ??

    Plugin Contributor iSaumya

    (@isaumya)

    OK. I will test with token further and will let you know.
    In the meantime, please use the API.

    • This reply was modified 3 years, 8 months ago by iSaumya.
    Plugin Contributor iSaumya

    (@isaumya)

    Hey @thomasduerlund, Can you please try the following:
    1. Disable and delete the plugin completely from your site
    2. Download this patched version of the plugin and install it by going to Plugins > Add New > Select the downloaded ZIP
    3. Now when you go to the setup stage, you will select the authentication method as API Token and you should also see that under the domain name it is automatically populated. You don’t need to manually enter anything in the domain name. It should already be showing you the domain name of the site.
    4. Just enter your email and API token and update the settings.

    Please let me know after testing if it is working. I’ve already tested here but I want you to test as well.

    • This reply was modified 3 years, 8 months ago by iSaumya.
    Thread Starter Thomas Duerlund Falkenberg

    (@thomasduerlund)

    Hi Saumya,

    I can’t get it to work here still.

    Plugin Contributor iSaumya

    (@isaumya)

    Hi @thomasduerlund,
    That’s weird cause I think you are doing something wrong. Can you confirm the following things you have done:
    1. Deactivated and DELETED this plugin that you currently have on your website from the WP Admin > Plugins Section
    2. Downloaded this patched version of the plugin and manually install it on your site by uploading the downloaded ZIP file
    3. Now when you go to setup the plugin configuration, if you select the API Token option, you should see that the Domain Name section is already populated automatically and you don’t have to do anything there.

    Can you confirm the above? Cause if it’s working like I am stating above then things should work properly.

    Thread Starter Thomas Duerlund Falkenberg

    (@thomasduerlund)

    Hi @isaumya,

    It’s totally possible I’m doing something wrong.

    I deactivated and then deleted the plugin. I even changed the setting so it deleted the settings when I’m deleted the plugin. Then I went to the server and deleted any folder still there related to the plugin.

    Then I downloaded the version you sent me and installed that and then started the process of verifying the API token and all the settings needed.

    The domainname was populated as xn--hanehj-fya.dk. But nothing happened when I clicked Verify.

    I’ll try and do it again. ??

    Plugin Contributor iSaumya

    (@isaumya)

    Hey @thomasduerlund,

    The domainname was populated as xn--hanehj-fya.dk. But nothing happened when I clicked Verify.

    – After you enter the API Token & Email ID you need to click Update settings and not Verify.
    Once you update the settings you should directly be taken to the settings page with different tabs like cache, others etc. Basically, the plugin is really to go. You should also see the purge cache options.

    Thread Starter Thomas Duerlund Falkenberg

    (@thomasduerlund)

    I tried again @isaumya with the same result.

    I have noticed when I’m using the API key then in the dropdown the name of the domain is spelled with ? (haneh?j.dk), but when using the API token it populates the domain as xn--hanehj-fya.dk.

    Thread Starter Thomas Duerlund Falkenberg

    (@thomasduerlund)

    – After you enter the API Token & Email ID you need to click Update settings and not Verify.

    Yes, my bad. Update Settings. But nothing happens. It stays at step 2.

    Plugin Contributor iSaumya

    (@isaumya)

    Hi @thomasduerlund,
    well, in that case I think there is no other way than to use the API Key,
    as when you are using the API key the domain names are returned from Cloudflare. Whereas when you are using API Token we need to get the domain name and provide that. This is the function that does that:

    function get_second_level_domain() {
    	$site_hostname = parse_url( home_url(), PHP_URL_HOST );
    
    	if( is_null( $site_hostname ) ) {
    		return '';
    	}
    
    	// get the domain name from the hostname
    	$site_domain = preg_replace('/^www\./', '', $site_hostname);
    
    	return $site_domain;
    }

    So, I guess PHP is unable to decode the danish letters. Can you try manually entering the haneh?j.dk in the domain name section and see if that works? If not then unfortunately you have to use the API Key mode with domain names that has characters like that.

Viewing 15 replies - 1 through 15 (of 16 total)
  • The topic ‘Support for danish characters?’ is closed to new replies.