Skip Navigation

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

Problem:
The client reported that the search function on their website stopped working in the French version, while it continued to work correctly in the English version. The issue persisted even after switching from the Customify Child theme to the main Customify theme.
Solution:
We first confirmed the issue by testing the search function with various terms. We identified that the search widget was provided by the Customify theme and tested it in a sandbox environment, where it worked as expected. We suggested the client switch from the child theme to the parent Customify theme to see if this resolves the issue. Additionally, we recommended preserving the URL argument for the search parameter 's' by following the documentation here: Preserve URL Arguments Documentation.

If this solution does not apply to your case, or if it seems outdated, we recommend opening a new support ticket. We also highly suggest 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, please 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 6 replies, has 2 voices.

Last updated by Bobby 9 months, 1 week ago.

Assisted by: Bobby.

Author Posts
May 8, 2024 at 3:16 pm #15606941

brianC-17

Search function suddenly stoped working on my site in French. It works fine on the english version of the site. When I type a French word on the FR site, I get no result.

You can test using BORA as a search term in EN then try in FR. The product exists. The issue happens for all the products I've tested

May 8, 2024 at 10:55 pm #15607976

Bobby
Supporter

Languages: English (English )

Timezone: America/Los_Angeles (GMT-08:00)

Hi,

I was able to reproduce the behavior on your site. You can test this by searching even a random term.

It looks like the overall search function is not working, not just searching for specific items, translated or not.

If the search could not find something it would return a warning, you can test this by searching for something random such as "fdsfsf".

hidden link

1. Is this search coming from WordPress, the theme, or a third-party plugin?

2. What are your results after going to WPML->Lnaguages -> switch to using Language name as a parameter (most likely will not work)

3. Preserve the URL argument for the search 's'

https://wpml.org/documentation/getting-started-guide/language-setup/language-switcher-options/preserve-url-arguments-when-switching-languages/?utm_source=plugin&utm_medium=gui&utm_campaign=languages

Let me know your results, please.

May 9, 2024 at 12:35 pm #15610565

brianC-17

The search function works correctly on the EN side for both a correct term and an invalid term. See PIC_2.jpg and PIC_3.jpg. Only the FR search does not function.

1- The search is not from a third party See PIC_1.jpg

2- Switching to language name does not change anything

3- I'm not sure what is meant in the "Preserve URL argument" point?

In the WPML section : See PIC_4.jpg

"How to handle languages without translation

Skip language
Link to home of language for missing translations"

I changed from "Link to home..." to "Skip language"

PIC_4.jpg
PIC_1.jpg
PIC_2.jpg
PIC_3.jpg
May 9, 2024 at 7:32 pm #15612264

Bobby
Supporter

Languages: English (English )

Timezone: America/Los_Angeles (GMT-08:00)

I would like to request temporary access (wp-admin and FTP) to your site to test the issue.
(preferably to a test site where the problem has been replicated if possible)

**Before we proceed It is necessary to take FULL BACKUP of your database and your website. Providing us with access, you agree that a backup has been taken **

I often use the Duplicator plugin for this purpose: http://wordpress.org/plugins/duplicator/
You will find the needed fields for this below the comment area when you log in to leave your next reply.
The information you enter is private which means only you and I have access to it.

NOTE: If access to the live site is not possible and the staging site does not exist please provide me with a duplicator package created with the duplicator plugin.

Thank you,
Bobby

May 10, 2024 at 7:47 pm #15616261

Bobby
Supporter

Languages: English (English )

Timezone: America/Los_Angeles (GMT-08:00)

Thank you for the access details!

The search widget is provided by the theme Customify.

Testing this plugin on a sandbox environment I can verify that it's working as expected.

See here an example:
hidden link

You can also access this sandbox backend using this hidden link">link

What are your results if you switch from the child theme to the parent theme of Customify?

May 10, 2024 at 9:13 pm #15616417

brianC-17

The search function works as expected in the ENGLISH version but not in the FRENCH version. Something is interfering with WPML and not allowing the Customify search function to work in FRENCH only.

I changed the theme from Customify Child to plain Customify and still get the same results.

What can be done to resolve this issue?

May 13, 2024 at 8:42 pm #15622556

Bobby
Supporter

Languages: English (English )

Timezone: America/Los_Angeles (GMT-08:00)

Hi,

Were you able to verify that this is working OK in the sandbox environment?

Please share access to your site's backend again for us to further investigate, the old access is no longer working.

May 14, 2024 at 11:52 am #15625172

brianC-17

I was able to resolve the issue by installing and using WOO Search plugin instead to the Customify search function.