Skip to content Skip to sidebar

This thread is resolved. Here is a description of the problem and solution.

Problem:
If you're trying to fix technical SEO issues like improper URLs and need these changes to propagate to different language versions of your site, you might encounter issues where changes do not always apply. This could be due to issues in the Media Translation add-on, specifically causing double slashes (//) in media links.
Solution:
First, ensure you have a backup of your site. Then, if you're comfortable with code changes, you can manually edit the file at

/wpml-media-translation/classes/media-translation/class-wpml-media-image-translate.php

. Around line 211, modify the code as follows:

$filename = array_pop($file_subdirectory_parts);<br />if (!empty($file_subdirectory_parts)) {<br />    $image_url_parts[] = implode('/', $file_subdirectory_parts);<br />}

Save the changes. However, this is a temporary workaround. We have released WPML 4.9.3, which includes a permanent fix for this issue. You can download the new version from https://wpml.org/account/downloads/. After updating, you can remove the manual code edit.

If this solution does not apply to your case, or if it seems outdated, we highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If issues persist, please open a new support ticket at WPML support forum.

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 16 replies, has 0 voices.

Last updated by Itamar 5 days, 12 hours ago.

Assisted by: Itamar.

Author Posts
March 26, 2026 at 11:53 am #17928848

Itamar
WPML Supporter since 02/2016

Languages: Hebrew (עברית )

Timezone: Asia/Jerusalem (GMT+03:00)

Hi,

I can see in our internal tracking ticket for this case that the fix will be included in the next WPML release, version 4.9.3.

As a reminder, the upcoming fix will prevent this problem in new translations. For existing translations already including this problem, an update is required.

Regards,
Itamar.

May 7, 2026 at 7:32 am #18019191

Itamar
WPML Supporter since 02/2016

Languages: Hebrew (עברית )

Timezone: Asia/Jerusalem (GMT+03:00)

Hi,

We have released WPML 4.9.3, which includes a fix for the problem mentioned in this ticket. You can download the new version here: https://wpml.org/account/downloads/. After you activate WPML 4.9.3, you can remove the edit we suggested as a workaround. For reference, please see this comment: https://wpml.org/forums/topic/sumologic-seo-issues/#post-17871513

Regards,
Itamar.