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 5 days, 12 hours ago.
Assisted by: Itamar.