WPML

Overview of the Issue

Users using WooCommerce extensions or other plugins or themes utilizing endpoints like wc-auth/v1 might see those endpoints incorrectly url-encoded to something like wc-auth%2Fv1.

This can cause compatibility issues with those plugins or themes in the latest versions of WPML.

Workaround

This issue is fixed. Updating to the latest version solves it on your site, so you only need this workaround if you can’t update yet.

Our developers are working on a permanent fix for this issue. As a temporary solution, please try the following steps:

Back up your website completely.

  • Make sure that all of your plugins are up-to-date.
  • Edit the file wp-content/plugins/sitepress-multilingual-cms/classes/url-handling/class-wpml-endpoints-support.php and modify Line 95

From:

return urlencode( $endpoint_translation );

To:

return implode('/', array_map('urlencode', explode('/', $endpoint_translation)));

This change should not affect endpoints that do not contain a slash.

Still Seeing This Issue?

If updating doesn’t fix it, ask a support question and we’ll look into it with you.

Ask a support question

All known issues