This is the technical support forum for WPML - the multilingual WordPress plugin.

Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.

This topic contains 1 reply, has 1 voice.

Last updated by poramateM 10 months, 2 weeks ago.

Author Posts
July 22, 2019 at 8:10 am #4254615


EDIT: Nevermind. Please ignore and close the ticket. It was my fault. This happens to be an issue about Cloudflare's flexi ssl. WordPress did not aware that the user visited using https.

I am trying to: Finishing the setup wizard in step 4 and 5.

Link to a page where the issue can be seen:


I expected to see:

can proceed to the next step with no problem

Instead, I got:
A javascript error in console.

admin.php?page=sitepress-multilingual-cms/menu/languages.php:177 Uncaught DOMException: Failed to execute 'replaceState' on 'History': A history state object with URL 'hidden link' cannot be created in a document with origin 'hidden link' and URL 'hidden link'.
at hidden link

Simply the plugin attempt to make an ajax request using HTTP on the HTTPS site. However, I already found a way to workaround.

By executing this script in the console can solve the problem in both step 4 and 5

icl_ajx_url = icl_ajx_url.replace('hidden link','hidden link');

Since I already found a workaround, this ticket is only to inform you that the plugin has a problem.

July 22, 2019 at 8:19 am #4254787


My issue is resolved now. Thank you!