Skip Navigation

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 voice and has 0 replies.

>
Author Posts
February 21, 2025 at 2:43 pm #16734201

desireeM

Background of the issue:
We have the issue described here https://wpml.org/errata/wrong-url-on-translated-media-files-when-using-a-different-domain-per-language/

Method 1) does not work and also isn't feasible, since we cannot manually edit 10000s of images
Method 2) runs. The 2nd "part" which is "Processing strings... 1820 of 87592 done." which does 10 per ~1 second. So this would take more than 24 hours to run. In reality it never finishes, bc after some time it fails bc the nonce is invalid, since it expired.

Additionally though, it doesn't seem to work either. Since I assume for wp-admin image display it's not in strings but in things it fixes in the first step. However when I open the product edit page, I still see the wrong URL for the images on the right side/where I can add/change the image (URL lik hidden link)

Symptoms:
The process 'Processing strings... 1820 of 87592 done.' takes too long and fails because the nonce becomes invalid.
Additionally, the wrong URL is still displayed for images on the product edit page.

Questions:
You need to change your code to provide a new nonce for every AJAX call to prevent the nonce expiration. In the meantime, is there any workaround?

Method 2 (neither 1) seem to work anymore. How to fix this now? This bug is known since almost 3 years, why wasn't this properly fixed in the meantime?