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?
Even though the symptoms are the same as in your open issue, it seems like the actual cause of the bug is https://wpml.org/forums/topic/wrong-uploads-url-in-wp-admin/ - since the media is correct, the issue is that WPML returns the wrong URL for uploads in wp-admin
Languages: English (English )Spanish (Español )German (Deutsch )
Timezone: America/Lima (GMT-05:00)
Hello,
As this is a CORS issue there is not really something we can do from our end. Any browser's security mechanism will not allow to access the same site's backend from two different domains.
Basically, if you use different domains, it will be like this:
Original: hidden link hidden link
To make sure of the media on your second domain, you will need to be logged in on that domain. On WPML > Languages inside the site's URL settings, you find an option to automatically log in between different domains.
Languages: English (English )Spanish (Español )German (Deutsch )
Timezone: America/Lima (GMT-05:00)
Sure, we can leave the ticket open for a maximum of 14 days.
Please make sure that at WPML > Languages > Language URL format > A different domain per language the option "Auto sign-in and sign-out users from all domains" is enabled.
The topic ‘[Closed] Wrong URL on translated media files when using “A different domain per language”’ is closed to new replies.
Manage Cookie Consent
We use cookies to optimize our website and services. Your consent allows us to process data such as browsing behavior. Not consenting may affect some features.
Functional
Always active
Required for our website to operate and communicate correctly.
Preferences
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
Statistics
We use these to analyze the statistics of our site. Collected information is completely anonymous.The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
Marketing
These cookies track your browsing to provide ads relevant to you.