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.

Tagged: 

This topic contains 6 replies, has 2 voices.

Last updated by Mohamed Sayed 1 year, 7 months ago.

Assisted by: Mohamed Sayed.

Author Posts
October 14, 2023 at 9:49 am #14576617

majaR

Hello, can you please help us solve the bellow issue.

Warning: strstr(): Empty needle in /home/u851885474/domains/agrotiga.com/public_html/wp-content/plugins/woocommerce-multilingual/inc/class-wcml-wc-strings.php on line 414

We are translating our spanish site to catalan with WPML and on each product as well as other pages like categories, this error appears.

Thanks

example2.png
example1.png
October 16, 2023 at 9:37 am #14582967

Mohamed Sayed

Hi there,
Thanks for contacting WPML support.

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

I tested translating products with the latest versions of WPML, WooCommerce and WooCommerce Multilingual plugins but I can't see the same warning. Please see here: hidden link

This means that it might be caused by another plugin/theme on your site.

I suggest checking if the issue persists in a minimal environment by following these steps:

- Deactivate all the plugins that are not related to WPML.
- Switch for a moment to a WordPress default theme like Twenty Twenty-one.
- If the issue is gone, activate one by one to see with which one there is an interaction issue.

❌ Please backup your database and website before performing the above test ❌

Also, kindly note that the warnings and notices from WordPress are not errors, they won't affect the way your site or plugins are functioning.

So you can safely remove these warnings with the following steps:

- Go into your wp-config.php file
- Look for the following code:

define('WP_DEBUG', true);.

- Change it to:

define('WP_DEBUG', false);

Let me know please if that helps.

Kind regards,
Mohamed

October 16, 2023 at 2:10 pm #14585829

majaR

Hi, Thanks, it didn't really work out. We have connected the other theme and removed plugins.

The issue seems to be coming from wocommerce multilingual - but this one is compatible with WPML, right?

We weren't able to find within wocommerce multilingual the issue itself as it seems all well translated.

Any idea?

October 16, 2023 at 2:31 pm #14586007
majaR

Quick question, as I was just thinking, as there is another issue, which might be related...as it is on the same error example and it might be releted to this vendor string

This is the product in Spanish, with the click on the wendors link - it leads perfectly to its selection
Spanish: example product: hidden link
Spanish: Correct link to catalogue: hidden link

Catalan: same product translated (automatically) and all good
hidden link
Catalan: But the link to catalogue leads to wrong catalogue page:
hidden link

The issue seems to be in the ? mark (as it is the only difference)
Correct catalogue page would be: hidden link
Wrong: hidden link

Maybe if we fix that we remove the error?

Where are we able to translate - change those links? We are using WP vendors to create Sold by (vendido por) and have a marketplace website

That's an example, but it is happening with all the translations on all products and all wendors.

Thanks a lot in advance for support.
Maja

New threads created by Mohamed Sayed and linked to this one are listed below:

https://wpml.org/forums/topic/split-catalogue-link-points-to-the-wrong-language/

correct-catalan catalogue.png
Wrong Catalan - catalogue page.png
October 16, 2023 at 6:57 pm #14588221

Mohamed Sayed

Hi Maja,

1. WooCommerce Multilingual is one of the WPML add-ons and using them together won't cause any issues. I've also tested this on a clean installation but I couldn't replicate the issue.

I would need to request temporary access (WP-Admin and FTP) so I can investigate this issue further.
– preferably to a test site where the problem has been replicated if possible –

Your next answer will be private, which means only you and I have access to it.

❌ Please backup your database and website before providing us with access details ❌

✙ I would additionally need your permission to de-activate and re-activate Plugins and the Theme and to change configurations on the site if needed. This is also a reason the backup is critical.

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

If you don't see the form below, please don't add your credentials as they will be publicly exposed:
hidden link

Privacy and Security when Providing Debug Information for Support:
https://wpml.org/purchase/support-policy/privacy-and-security-when-providing-debug-information-for-support/

2. Regarding the other question, I've created a new ticket because we can handle one issue per ticket and I don't think this one is related.

We will update you here: https://wpml.org/forums/topic/split-catalogue-link-points-to-the-wrong-language/

Thanks for your cooperation

October 19, 2023 at 8:44 pm #14619257

Mohamed Sayed

I've escalated this issue to the 2nd tier support team for further investigation, I will update you once I get their reply.

Kind regards,
Mohamed

October 22, 2023 at 12:05 pm #14630639

Mohamed Sayed

Hi,
Sorry for the late reply due to the weekend.

The translation of the shop page slug was missing in the secondary language.

After adding the slug translation in WooCommerce > WooCommerce Multilingual > Store URLs tab, the warning disappeared from the translated products.

Please check and confirm if the issue is resolved.

Kind regards,
Mohamed

Screenshot_251.png
Screenshot_252.png
October 22, 2023 at 4:18 pm #14631369

majaR

Thank you very much for this. Yes the issue is solved and everything works now! Thank you!