Resolved
Resolved in: 4.5.0
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
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.
Any update on this issue “Endpoints containing slashes `/` are encoded incorrectly”?
Hey Fanis,
This fix should be added in our next major release, however we don’t have an ETA yet.
We will keep this erratum updated.
Regards
Hi there
Any news about that? can you update when the next version?
If I will follow the instructions here, what will happen when there will be an update?
Thank you
Doron
Hello Doron,
I can’t provide you an ETA so far, however this issue will be fix in our next major release which is in QA already.
We will keep this erratum updated.
Regards
Any update on this issue ? this plugin make OAuth flow break . =.=
Hello there,
This issue should be solved with our latest WPML 4.5.0 release.
Don’t hesitate to make a full backup before proceeding.
Regards
Our customer use version 4.12.1 .
Thanks YangYao but that’s WCML latest version and not WPML’s. If after the update the issue remains, don’t hesitate to open a ticket in our support forum.
Regards