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.

This topic contains 7 replies, has 2 voices.

Last updated by Subash Chandra Poudel 1 year, 5 months ago.

Assisted by: Subash Chandra Poudel.

Author Posts
May 31, 2023 at 9:38 am

eun-kwangH

I'm developing a multilingual site using WPML. However, I have an issue with a translation of a specific post type: the translation is not recognized by search form.

May 31, 2023 at 10:24 am
June 1, 2023 at 3:04 pm #13755827

Subash Chandra Poudel

Sorry for the delayed response here!

I see the search on the page is built with Ivory Search plugin which is not listed in our compatibility list ( https://wpml.org/plugin/ ) so some anomalies could be expected. But I will try my best to help you with the issue here.

Regarding the issue, Initially I saw that both the pages hidden link and hidden link were working for me so I waiting some time to troubleshoot the issue again.

But now I see the experts page works most of the time and properties page does not works most of the time.

Upon further troubleshooting I see that the ajax request for search has the header wp-wpml_current_language set to "ko" most of the times even though the page is English.

This means both the search form has issues but properties form has issue most of the time and is thus noticeable.

The issue seems to be caused due to some interference from thirdparty plugins or theme on your site. Or it could also be due to interference from caches.

Can you please disable all caches on the site for a moment and see if it works fine? If not, I will need to troubleshoot the issue further. In that case, can you please create a complete package of the site using plugins like Duplicator, upload the package to a file sharing app like Dropbox or GDrive and share with me here the link to download it so that I can deploy the site to my test environment and troubleshoot the issue further there?

More details on how to provide a copy of the site are in:
https://wpml.org/faq/provide-supporters-copy-site/

I have enabled the private reply for you to share the details securely.

Regards,
Subash

June 2, 2023 at 2:29 am
June 2, 2023 at 3:19 pm #13762643

Subash Chandra Poudel

Thank you for the details.

I replicated the site in my local test site. However I was not able to replicate the issue here.

So the issue seems to be only in your site/server. Most probably it is caused by some caches as it looks like on your site the ajax request to the search is sent with the cookie: wp-wpml_current_language set to "ko" instead of "en" , also I see switching between the Korean versions and English version a few times makes the form work fine.

Please contact your hosting provider to disable all caches and proxy setup and see if it helps with the issue.

If the issue persist, will it be possible for you to run the following test:

- Create an exact copy if the site on the same server ( since the issue seems to be only on your site in the server ).

- Deactivate all plugins except WPML and critically required plugins for the Properties feature to work also, activate a default theme like twenty twenty three. and see if it works or not.

- If it works, activate original plugins and theme one at a time to see which one starts the issue.

June 6, 2023 at 7:02 am #13775397

eun-kwangH

Hi Subash,

Thanks again for your engagement.

I am not using any cache system at the server side, so I do not think it is attributable to the server cache.

I tried to turn off all the plugins and turn back on one by one. The search form stops working for English version only when the plugin ‘content views pro’ is on. It’s a little confusing to me as CVP is listed as a compatible plugin at WPML website.

Woud you be able to confirm whether the compatibility between WPML and CVP is still valid?

Thanks.

EK

June 6, 2023 at 7:27 am #13775523

eun-kwangH

It's interesting though that I'm using the same arrangement for my company website(hidden link), but WMPL, CVP and Ivory Search work just fine. The only difference of rebounder.lobin.co is that the search form looks up data in custom post types, while it looks up data in default 'posts' in lobin.co.

June 6, 2023 at 5:15 pm
June 7, 2023 at 12:21 am
June 7, 2023 at 4:35 pm #13788365

Subash Chandra Poudel

Thank you for your efforts in copying the site.

I have made your previous reply private because you shared some sensitive info there.

I can now see the issue in hidden link , however I was not able to replicate the issue when replicating the site in my local environment so possibly it has to be something with the environment the site is deployed on.

Please let me know once you contact the CVP team and more insight on the issue.

June 13, 2023 at 4:39 am #13813423

eun-kwangH

Hi Subash, I would like to let you know that CVP guys resolved the issue by adding a code snippet. Thanks for your help on this!

June 14, 2023 at 7:38 am #13822159

Subash Chandra Poudel

Thank you for confirming the issue is resolved now.