Skip Navigation

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.

Sun Mon Tue Wed Thu Fri Sat
9:00 – 18:00 9:00 – 18:00 9:00 – 18:00 9:00 – 18:00 9:00 – 18:00 - -
- - - - - - -

Supporter timezone: Africa/Cairo (GMT+02:00)

This topic contains 4 replies, has 0 voices.

Last updated by Osama Mersal 1 month, 2 weeks ago.

Assisted by: Osama Mersal.

Author Posts
January 3, 2025 at 7:30 pm #16562495

Chad Warner

Background of the issue:
On hidden link, if you try to filter using the "MARCHÉ" or "LE SERVICE" filters, the results never appear. If you do the same on hidden link, the original English translation, the "MARKET" and "SERVICE" filters work fine. The URLs differ. For example, "Aviation et transport" in French links to hidden link, but "Aviation & Transportation" in English links to hidden link. When I look at the Markets CPT, those are the correct IDs for the different translations. hidden link also uses these filters, and they work properly there.

Symptoms:
When using the 'MARCHÉ' or 'LE SERVICE' filters on the French page, no results appear, unlike the English page where the filters work fine.

Questions:
Why are the filters not displaying results on the French page?

January 5, 2025 at 10:59 am #16564292

Osama Mersal
Supporter

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

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

Hi,

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

1) I tried to check the mentioned page, but there is a critical error. (hidden link)

2) Please let me know how these filters are created and translated.

Best regards,
Osama

January 6, 2025 at 2:43 pm #16566784

Chad Warner

1) Those links don't work if you try to visit them directly. I just grabbed those links by seeing what the markets and services in the filters pointed to. hidden link (and hidden link) doesn't navigate to a new page after filtering; the page uses AJAX to filter and show results.

2) The filters are created in custom theme template files. The markets and services they display are the names of CPTs. In Settings > Post Types Translation, we have these CPTs set to "Translatable. only show translated items." We're using automatic translation (Translate Everything Automatically) with Microsoft's translation engine.

January 6, 2025 at 3:48 pm #16566970

Osama Mersal
Supporter

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

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

Hi,

1) Thanks for your reply. I checked the French page and noticed an error in the browser console when using the filters. (500 (Internal Server Error))

2) Please log in to this hidden link">sandbox site and install your theme. After that, please create a test page with these filters to replicate the issue.

If the issue is replicable, please let me know so I can check it and consult our 2nd tier support team if needed.

Please note that custom code is outside the scope of our support, but we will do our best to help you with the issue.

Best regards,
Osama

January 6, 2025 at 4:28 pm #16567102

Chad Warner

We already have a dev site with the problem: hidden link. Could I give you access to it, instead?

January 7, 2025 at 8:28 am #16568333

Osama Mersal
Supporter

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

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

Hi,

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.

Best regards,
Osama

January 8, 2025 at 10:06 am #16572735

Osama Mersal
Supporter

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

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

Hi,

Thanks for the access details. Please update WordPress core, ACF, and WPML plugins.

After that, please deactivate all plugins except WPML CMS, String Translation ACF, and ACF Multilingual.

If the issue persists, please let me know to install the duplicator plugin to install a local copy of your site and consult our 2nd tier support team.

Best regards,
Osama

January 8, 2025 at 2:22 pm #16573913

Chad Warner

I'll need to coordinate with the site owner to do that, and it may take a few days. I'll get back to you.

January 8, 2025 at 6:15 pm #16574932

Osama Mersal
Supporter

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

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

Hi,

Sure, please take your time.

Best regards,
Osama

January 13, 2025 at 2:00 pm #16588847

Chad Warner

Please keep this ticket open. It will take some work for us to get the dev site updated so you can continue your troubleshooting.

January 13, 2025 at 2:03 pm #16588849

Osama Mersal
Supporter

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

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

Hi,

Please take your time and let me know when the site is available.

Best regards,
Osama

The topic ‘[Closed] Filters not working in French’ is closed to new replies.