Skip Navigation

This thread is resolved. Here is a description of the problem and solution.

Problem:
If you're using the Final Tiles Gallery plugin on a multilingual WordPress site managed by WPML and encounter an issue where images on the English translation of a page keep loading indefinitely without displaying, the problem might be due to incorrect image links.
Solution:
We recommend you try the following steps:
1. Open the

app/public/wp-content/plugins/final-tiles-grid-gallery-lite/lib/gallery-class.php

file.
2. Around line 75, replace the existing code snippet with:

foreach ( $atts as $att ) {
 
// WPML Workaround for compsupp-7560
if( class_exists('SitePress') ) {
        $my_default_lang = apply_filters('wpml_default_language', NULL );
        $att->ID = apply_filters( 'wpml_object_id', $att->ID, 'attachment', TRUE, $my_default_lang  );
    }
     
    $file = get_post_custom( $att->ID );

3. Check the translated page on the front end to see if the issue is resolved.

Additionally, we suggest contacting the plugin authors to encourage them to join our Go Global Program.

If this solution does not resolve your issue, or if it seems outdated or irrelevant to your case, please open a new support ticket. 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. For further assistance, you can also 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.

Tagged: 

This topic contains 4 replies, has 2 voices.

Last updated by Osama Mersal 10 months, 2 weeks ago.

Assisted by: Osama Mersal.

Author Posts
August 30, 2024 at 10:50 am #16124303

pelicanB

Background of the issue:
I am currently using the Final Tiles Gallery plugin to display images on my WordPress website, which is set up with WPML to manage multiple languages. The default language for the site is Portuguese, and I have an English version as well. The site URL is hidden link.

Symptoms:
While the gallery works perfectly on the Portuguese pages, I am encountering an issue with the English translations. Specifically, when I create a page with the Final Tiles plugin in Portuguese, everything functions as expected. However, on the translated English page, I am unable to open the images when I click on them to expand. The images just keep loading indefinitely without ever displaying. Upon inspecting the issue, I noticed that the link source for the images in the English version is not correct.

Questions:
Could you please assist me in resolving this issue?

September 1, 2024 at 9:56 am #16128668

Osama Mersal
WPML Supporter since 02/2020

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+03:00)

Hi,

Thanks for contacting WPML forums support. I'll be glad to help you today.

First of all, sorry for the late reply; it was due to a higher workload.

Please log in to this hidden link">sandbox site and install the "Final Tiles Gallery" plugin. After that, please try to replicate the issue.

If the issue is replicable, please let me know how to reproduce it so I can consult our compatibility team.

Best regards,
Osama

September 2, 2024 at 9:38 am #16130766

pelicanB

Hi Osama,

I’ve logged in and was able to replicate the issue. It’s occurring exactly as it does on my website.

Thank you.

Screenshot 2024-09-02 at 10.38.28.png
September 2, 2024 at 11:24 am #16131246

Osama Mersal
WPML Supporter since 02/2020

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+03:00)

Hi,

Thanks for replicating the issue. Please note that this plugin is not officially compatible with WPML. Kindly check our compatibility list here.

I've consulted our compatibility team regarding this issue, and I'll update you as soon as they reply.

Best regards,
Osama

September 3, 2024 at 7:27 am #16134161

Osama Mersal
WPML Supporter since 02/2020

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+03:00)

Hi,

1) Please check the following steps:

1-Open the app/public/wp-content/plugins/final-tiles-grid-gallery-lite/lib/gallery-class.php file
2- Around line 75, replace the following snippet:

foreach ( $atts as $att ) {
$file = get_post_custom( $att->ID );

With

foreach ( $atts as $att ) {

// WPML Workaround for compsupp-7560
if( class_exists('SitePress') ) {
        $my_default_lang = apply_filters('wpml_default_language', NULL );
        $att->ID = apply_filters( 'wpml_object_id', $att->ID, 'attachment', TRUE, $my_default_lang  );
    }
    
    $file = get_post_custom( $att->ID );

3- Check the hidden link">translated page on the front end.

I've applied these steps to the sandbox site. Please check if the plugin works correctly there.

2) It would be great if you could contact the authors and urge them to join our Go Global Program.
You can find details about it here.

Best regards,
Osama

September 3, 2024 at 11:00 am #16135105

pelicanB

Hello Osama,
Thank you for your help.
I followed the steps and the issue is fixed.

Best regards