Hey, can you please record a video reproducing the issue? I mean, fixing the issue, editing the template and breaking it again.
I'm asking that because I wasn't able to reproduce this behavior in the staging version. There, I edited the original template and the translation, and it kept working.
After editing the layout, all the image_id="" change back to image_id="0" and the gallery disappears again.
This is on the live website at hidden link because launched the staging version last week. I've set the gallery section to drafts, so non-admins don't see it, wether it's working or not.
Languages: English (English )Spanish (Español )German (Deutsch )
Timezone: America/Lima (GMT-05:00)
Hello,
My colleague Lucas is currently on vacation.
Did you try to edit the original template, save it and complete its translation again?
Also, please run WPML > Settings > Media Translation > Start. This dialog will create any missing entries for uploaded media inside the media library for all languages.
If this will not solve the issue, I can offer to take a closer look at the site as admin user.
I would like to offer to have a closer look at the problem and request temporary access (wp-admin and FTP) to the website to investigate this issue further.
You can find the required fields below the comment section when you log in to leave the next reply. The information you provide is private, which means only you and I can see and access it.
IMPORTANT
Please be sure to make a backup copy of the website and database before allowing us access.
If you can't see the wp-admin / FTP fields, your post and website credentials are set as PUBLIC. DO NOT publish the data unless you see the required wp-admin / FTP fields.
The private response form looks like this: hidden link
Next time you reply, click "I still need assistance."
Video: hidden link
Please note that we are obliged to request this information individually on each ticket. We may not access any access information not specifically submitted on this ticket in the private response form.
Languages: English (English )Spanish (Español )German (Deutsch )
Timezone: America/Lima (GMT-05:00)
Hello,
About the duplicated images:
I suggested to run WPML > Settings > Media Translation > Start on your website, which will create one entry in each language inside the media library for for each media item.
WPML needs those entries to be able to display images in second languages. This will not duplicate the files, it will only create database entries for each language.
If this action creates physical image duplicates, then it might be that you have uploaded images to the media library while using different admin languages.
If so, take note that it is recommended to only upload images in site default language. WPML will use those images in all languages, if sunced properly. If you need alternative images in second languages you can use WPML > Media Translation.
---
About the reported Gallery issue:
This appears to be an issue with the translation of the Avada Gallery Widget. This widgets is based on a shortcode and this shortcode come with specific attributes which we can translate. In this case, the dyanamic property attribute is used to display the images with ACF.
We can translate this dynamic value (identically) but it will not solve the issue in this case.
I see you were able to recreate the issue on our test site and I will be escalating this issue to the compatilbity team for further revision.
Once I have feedback for you I will be on contact again on this ticket.
Thank you for your efforts. If don't mind, I'll revoke your access to the live website, so I better manage that section. I can temporarily fix the issue by editing the database, but that won't be a sustainable solution.
Languages: English (English )Spanish (Español )German (Deutsch )
Timezone: America/Lima (GMT-05:00)
Hello,
We would like to propose the following workaround, which will solve the image gallery issue on your post templates:
// WPML Workaround for compsupp-7640
function wpml_compsupp7640_filter_fusion_gallery_image_shortcode($out, $pairs, $atts) {
if (isset($atts['image_id']) && $atts['image_id'] == 0 && !empty($atts['image'])) {
$atts['image_id'] = '';
}
// Re-build the shortcode output with the modified attributes
$out = shortcode_atts($pairs, $atts);
return $out;
}
add_filter('shortcode_atts_fusion_gallery_image', 'wpml_compsupp7640_filter_fusion_gallery_image_shortcode', 10, 3);
This workaround needs to be placed into the functions.php file of the Avada Theme. It would be better to use a Child Theme, so that an Avada Theme Update will not overwrite the changes.
This issue will be escalated towards our development team for further revision and a proper fix.
Hi there! I'd like to let you know that editing the DB doesn't work anymore. I don't know if there has been a WMP or Avada update, but even with [image_id=""] the gallery is not showing in English.
The topic ‘[Closed] ACF repeater field images don't show up in English. Not in the translation editor either’ is closed to new replies.