[Resolved] Gallery images not displaying on translated pages
This thread is resolved. Here is a description of the problem and solution.
Problem: The client was experiencing an issue where the product image gallery was not displaying correctly on translated pages using Beaver Builder and Astra. This problem persisted even after updating core, plugins, and themes, and following media translation updates. Solution: We recommended the client to try the following steps: 1. Add an image to each gallery and save the changes. 2. Delete the image and save again. 3. Clear the Beaver Builder cache via Settings > Beaver Builder > Tools. This sequence of actions helped reset the display of the correct images in the product gallery.
If you're experiencing a similar issue, we recommend trying these steps. However, this solution might be outdated or not applicable to your specific case. 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 the problem persists, please open a new support ticket.
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.
Background of the issue:
I am working on a site under development using Beaver Builder and Astra (not WooCommerce). After updating a link on each of the translated product pages, the product image gallery stopped displaying on all translated pages. I updated core, plugins, and themes, which resolved the issue for all products except one. I followed the media translation update as recommended in the WPML forum, which fixed the issue for the one product but caused it to appear on multiple other products, displaying no images or only one gallery image on the translated pages. Backend images are displaying appropriately.
Symptoms:
Translated pages are not displaying the product image gallery correctly, showing no images or only one gallery image for some products.
Questions:
Can you please recommend a solution for this issue?
Thank you for contacting WPML support, I’m happy to help you with this issue.
I'm checking a product page and its translation. The gallery images are the same in both languages; see the attached screenshot.
Can you please share a product page URL where I can see the issue? You can also try to edit the product page in English > Make a small change to the content > Save > Update the translation and see how it goes.
I would like to request temporary access (wp-admin and FTP) to your site so I can take a better look at the issue. It would be better to have a testing site where the issue is replicated. Your next reply is set to private to share the info.
❌ IMPORTANT: Please backup your database and website before proceeding ❌
You can use this plugin to create the backup: https://wordpress.org/plugins/duplicator/
✙ I would need your permission to de-activate and re-activate Plugins and the Theme to change configurations on the site if needed. This is also a reason the backup is critical.
It might be a caching issue somewhere else. For this product page hidden link
I change the gallery image but it isn't displayed in the frontend even in the original language English. Please check the attached screenshots. I suggest you clear the cache in WP Engine hosting or disable that module and recheck the issue.
After restoring your site on my localhost, all the gallery images are displayed on the translation product pages. So I'm sure that it is related to the caching issue. Maybe the WP Engine cache, please follow their documentation to purge the cache and let me know if it helps. hidden link
It turns out there is a cache that can be cleared in Settings/Beaver builder/tools.
Adding an image in each gallery and saving, then deleting the image and saving, then clearing the Beaver builder cache reset it enough to display the correct images in the product gallery.
Issue resolved.
Cheers,
Graham.
grahamT-4 confirmed that the issue was resolved on 2024-10-31 04:49:15.
This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.