Skip Navigation

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

Problem:
The client is using WPML with Crocoblock on their website. The Crocoblock filter widget and Listing Item work correctly in German, the default language, but issues arise when switching to French: the filter widget appears empty, and no listings are displayed, and the content of a Listing item disappears when switching from German to French.
Solution:
1. For the filter widget appearing empty and no listings displayed in French:
- Edit the French home page and replace the custom query with a standard posts query to ensure items appear correctly.
- Ensure that two fields in the filter have the same values in both languages. Set the correct values in French and verify by checking the strings in String Translation.

2. For the content of a Listing item disappearing when language is switched:
- Navigate to WPML-> Settings-> Custom Fields Translation.
- Enable the "Show 'Multilingual Content Setup' meta box on post edit screen" option and save.
- Edit the post in the default language.
- Scroll down to the "Multilingual Content Setup" section.
- Set the custom fields to Translate, Copy, or Copy once.
- Click "Save" and update the page in the default language.

If these steps do not resolve your issues or if the solution seems outdated or irrelevant to your 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 further assistance is needed, please open a new support ticket 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 9 months, 3 weeks ago.

Assisted by: Osama Mersal.

Author Posts
July 22, 2024 at 6:34 pm #15988525

sparkS-2

Background of the issue:
I recently purchased WPML and am using it to handle dynamic content from Crocoblock on my site hidden link. I am using the Crocoblock filter widget and a Listing Item on the landing page.

Symptoms:
The Crocoblock filter widget and Listing Item work perfectly in German, the site's default language. However, when switching to French, the filter widget appears empty, and no listings are displayed. Additionally, when clicking on a Listing item, the content is displayed in German, but upon switching to French, all content disappears.

Questions:
Why does the Crocoblock filter widget appear empty and no listings are displayed when switching to French?
Why does the content of a Listing item disappear when switching from German to French?

July 23, 2024 at 9:04 am #15991560

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.

1) I would need to look closely at your site, so I would need to request temporary access (WP-Admin and FTP)
Preferably to a test site where the problem has been replicated.

Your answer will be private, meaning only you and I can access it.

❌ Please backup your database and website ❌

✙ I need your permission to deactivate and reactivate the plugins and themes and change site configurations. This is also why the backup is critical.

✙ I also need your permission to take a local copy of your site to debug the issue without affecting your live site.

2) It's not related to the issue, but according to your Debug.info, the WP memory limit needs to be increased. PHP memory is fine, but WordPress uses 40Mb as default. The minimum requirements for WPML are 128 MB. (Kindly check this page https://wpml.org/home/minimum-requirements/)

You can increase it by adding the following code in your wp-config.php file right before the /* That's all, stop editing! Happy publishing. */ line:

/* Memory Limit */
define('WP_MEMORY_LIMIT', '256M');
define( 'WP_MAX_MEMORY_LIMIT', '256M');

Best regards,
Osama

July 24, 2024 at 8:53 am #15996984

Osama Mersal
WPML Supporter since 02/2020

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

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

Hi Florian,

1) Thanks for the access details. Please edit the French home page and replace the custom query with a standard posts query. After that, please check if the items will appear correctly.

2) I checked the 2nd issue and found that some fields are empty in the French post, which causes the problem. Please check the following steps:

1- Go to WPML-> Settings-> Custom Fields Translation
2- Enabled the "Show "Multilingual Content Setup" meta box on post edit screen." option and save
3- Edit the post in the default language
4- Scroll down to the "Multilingual Content Setup" section
5- Set the custom fields to Translate, Copy, or Copy once
6- Click "Save"
7- Update the page in the default language

Best regards,
Osama

2024-07-24_11-04-38.jpg
July 24, 2024 at 9:11 pm #16000491

sparkS-2

Hi Osama,

First of all, thank you very much for your assistance, which is deeply appreciated! I'm learning that translating a relatively complex website is quite an adventure, but with your valuable help, we are making significant progress toward translating the entire website.

Issue #2 has been fully resolved, which is great!
However, I am still struggling with Issue #1. As you recommended, I tried using a post query instead of a custom query (which doesn't entirely make sense to me because I need to specify the query). Unfortunately, the issue remains unresolved even with the post query. I found some documentation from Crocoblock (see hidden link), but it didn't help with my issue. However, I did learn that Crocoblock filters can be translated with WPML, which is really cool.

I noticed that there was no query selected under "Select Query." I changed this for every filter, but the issue persists. As you can see, you can't select any a location ("Lieu") in the translated page: hidden link

Do you have any idea what could potentially be causing this issue?

Thank you very much for your help!

Best regards,
Florian

Filter Issue.jpg
July 25, 2024 at 12:43 pm #16003548

Osama Mersal
WPML Supporter since 02/2020

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

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

Hi Florian,

I checked the filter in both languages and found that there are two fields that don't have the same values. (Kindly check the attached screenshot)

Please set the correct values in French and check if that fixes the issue.

After adding the correct values, please check the strings in hidden link">String Translation.

Best regards,
Osama

2024-07-25_15-39-50.jpg