This thread is resolved. Here is a description of the problem and solution.
Problem:
You are experiencing an issue where your media files, stored on DigitalOcean Spaces, are incorrectly loading from your local domain on translated pages (e.g., the French version), despite previously functioning correctly.
Solution:
1. Ensure you have a full backup of your website, including the database.
2. Use a search and replace plugin to update incorrect media URLs in your database. This will correct instances where the translated domain is used instead of your DigitalOcean Spaces URL.
3. Re-save your permalinks and clear any existing cache to see if the issue resolves.
4. If the problem persists, consider using the code provided to rewrite URLs conditionally based on the language. This involves adding filters to modify attachment URLs, image src arrays, responsive images, and hardcoded images in post content.
If these steps do not resolve your issue or if the solution becomes outdated, we recommend opening a new support ticket. Additionally, check related known issues at https://wpml.org/known-issues/, verify the version of the permanent fix, and confirm that you have installed the latest versions of themes and plugins. For further assistance, please visit our support forum 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 2 replies, has 0 voices.
Last updated by 2 months, 3 weeks ago.
Assisted by: Carlos Rojas.
