Skip Navigation

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

Problem:
The client is experiencing issues with their site breaking when viewing content in a specific language.
Solution:
We identified a conflict between the "Multi-Carrier Shipping Plugin for WooCommerce" and WPML, where the plugin uses an array in a PHP GetText Call that WPML cannot translate or where trying to translate the string can result in unexpected issues. We suggested two possible solutions:
1. Provide us with the latest version of the plugin for testing, so we can recreate the error on a test site and escalate the issue internally.
2. If providing the plugin is not possible, inform the plugin author about the specific PHP error and the line of code causing it:

__( $text = [0 => 'Sun', 1 => 'Mon', 2 => 'Tue', 3 => 'Wed', 4 => 'Thu', 5 => 'Fri', 6 => 'Sat', 7 => 'eha_multi_carrier_shipping'], $domain = 'eha_multi_carrier_shipping' )

Disabling the "Multi-Carrier Shipping Plugin for WooCommerce" should allow the content to be published and viewed without issues in all languages.

If this solution does not seem relevant, please open a new support ticket with us.

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 30 replies, has 2 voices.

Last updated by Matthew Scott 1 year, 5 months ago.

Assisted by: Andreas W..

Author Posts
October 11, 2023 at 6:32 pm #14561435

Matthew Scott

Hello,
All languages are working fine, except for German.

I followed the instructions in this thread:
https://wpml.org/forums/topic/site-breaks-in-one-language-only/

And tried to fix it. So far, it is still not working. I wonder what step I may be missing.
Example:
hidden link

October 12, 2023 at 3:58 am #14562343

Andreas W.
WPML Supporter since 12/2018

Languages: English (English ) Spanish (Español ) German (Deutsch )

Timezone: America/Lima (GMT-05:00)

Hello,

Could you please increase your WP Memory limit to 256M? 128M is the minimum required by WPML.
Your current values are:

PHP Memory Limit 1024M
WP Memory Limit 40M
Add this code to your wp-config.php to increase WP memory:

define('WP_MEMORY_LIMIT', '256M');

Paste it just before:

/ That's all, stop editing! Happy blogging. /

Now, verify the current settings at WPML > Support > WordPress. Then complete the translation again.

Source:
https://wpml.org/home/minimum-requirements/

If this will not solve the issue, I would like to offer to have a closer look at the problem and request temporary access (wp-admin and FTP) to the website to investigate this issue further.

You can find the required fields below the comment section when you log in to leave the next reply. The information you provide is private, which means only you and I can see and access it.

IMPORTANT
Please be sure to make a backup copy of the website and database before allowing us access.
If you can't see the wp-admin / FTP fields, your post and website credentials are set as PUBLIC. DO NOT publish the data unless you see the required wp-admin / FTP fields.

The private response form looks like this:
hidden link

Next time you reply, click "I still need assistance."

Video:
hidden link

Please note that we are obliged to request this information individually on each ticket. We may not access any access information not specifically submitted on this ticket in the private response form.

Best regards
Andreas

October 12, 2023 at 9:02 pm #14569139

Matthew Scott

Thank you Andreas.

Confirmed: define('WP_MEMORY_LIMIT', '256M');
as done.

So far, (perhaps i have to wait due to page caching, etc.) - but in the immediate, there is no change.

Again, the issue only happens with German. much like the other user in the topic I linked previously:
https://wpml.org/forums/topic/site-breaks-in-one-language-only/

What next steps might we take?

As best as I understand, I also followed the directions in the linked thread. No resolution yet.

thanks for your time,
matt

October 12, 2023 at 9:07 pm #14569145

Andreas W.
WPML Supporter since 12/2018

Languages: English (English ) Spanish (Español ) German (Deutsch )

Timezone: America/Lima (GMT-05:00)

Hello Matt,

I would like to offer to have a closer look at the problem and request temporary access (wp-admin and FTP) to the website to investigate this issue further.

You can find the required fields below the comment section when you log in to leave the next reply. The information you provide is private, which means only you and I can see and access it.

IMPORTANT
Please be sure to make a backup copy of the website and database before allowing us access.
If you can't see the wp-admin / FTP fields, your post and website credentials are set as PUBLIC. DO NOT publish the data unless you see the required wp-admin / FTP fields.

The private response form looks like this:
hidden link

Next time you reply, click "I still need assistance."

Video:
hidden link

Please note that we are obliged to request this information individually on each ticket. We may not access any access information not specifically submitted on this ticket in the private response form.

Best regards
Andreas

October 12, 2023 at 9:10 pm #14569147

Matthew Scott

Thanks Andreas. Quick question: Would you prefer to do this on the live site or a staging site?

October 13, 2023 at 12:56 am #14569487

Andreas W.
WPML Supporter since 12/2018

Languages: English (English ) Spanish (Español ) German (Deutsch )

Timezone: America/Lima (GMT-05:00)

Hello Matt,

I can offer to have first a look into the live site.

If I need to take further steps apart from verifying or adjusting settings, then I could create a copy of the site for testing or you could provide a staging site, which saves time for me in this case.

Best regards
Andreas

October 19, 2023 at 3:57 pm #14617553

Matthew Scott

Ok, thank you Andreas.

I will proceed with some other work on the site today and tomorrow, and then provide access for you later tomorrow afternoon. Thanks again.

October 19, 2023 at 5:22 pm #14618153

Andreas W.
WPML Supporter since 12/2018

Languages: English (English ) Spanish (Español ) German (Deutsch )

Timezone: America/Lima (GMT-05:00)

Hello,

Thank you for your message.

It would be ideal if could setup a staging site on which I can test without affecting the production site.

If you can not provide such a staging site then I would install the plugin "All In One WP Migration" and create a local copy of the site on a virtual server.

The private reply form is now enabled again.

Best regards
Andreas

October 19, 2023 at 10:49 pm #14619567

Andreas W.
WPML Supporter since 12/2018

Languages: English (English ) Spanish (Español ) German (Deutsch )

Timezone: America/Lima (GMT-05:00)

Hello,

The provided username is not registered on this site.

Could you please verify the provided information and adjust it accordingly?

Let me know on this ticket once access is granted.

Best regards
Andreas

October 20, 2023 at 2:59 am #14620219

Matthew Scott

thank you Andreas. the credentials provided are now active.

October 20, 2023 at 8:50 pm #14627145

Andreas W.
WPML Supporter since 12/2018

Languages: English (English ) Spanish (Español ) German (Deutsch )

Timezone: America/Lima (GMT-05:00)

Hello,

Please take kindly note, that before reporting an issue you always first should make sure to update all components (theme, plugins, WordPress) in order to verify if the issue persists.

After updating WPML Multilingual CMS and WPML String Translation to their latest available versions the issue appears to be solved on the staging site.

Please go to Plugins > Add new > Commercial and click "Search for updates".

Then update the plugin and clear the cache.

Take note, that I also update any other plugin that had an update available.

Best regards
Andreas

October 20, 2023 at 9:55 pm #14627285

Matthew Scott

Thank you Andreas.

Yes, I previously tried updating all plugins, (even those that say they have not yet been tested with current WordPress), and my issue was not resolved.

(I then restored from backup, because I don't like to update plugins that have not been tested with current WP version), then I later created the staging site for you.

At your advice, I tried again today, updating all plugins that are available. I cleared WP Rocket cache, Object cache, and CDN cache (for test pages).

On the live site, the issue remains with German.

Back to my original question, and the referenced topic: is it possible I am overlooking something from this thread with the same issue - site only broken in German...
https://wpml.org/forums/topic/site-breaks-in-one-language-only/

Thanks for your patient assistance!

October 21, 2023 at 3:46 am #14627671

Andreas W.
WPML Supporter since 12/2018

Languages: English (English ) Spanish (Español ) German (Deutsch )

Timezone: America/Lima (GMT-05:00)

Hello,

I am not sure why this does not solve the issue for you, but on the staging, the page is working now.

hidden link

Please compare the installed version with those from your live site.

The latest version of our plugins are:

WPML Multilingual CSM 4.6.7
WPML String Translation 3.2.8

If this will still not solve the issue, then I would kindly offer to have a look at your live site.

The private reply form is enabled again.

Best regards
Andreas

October 23, 2023 at 9:44 pm #14641501

Matthew Scott

Hello Andreas,

I don't know if this can be related in any way - but we still have some of the old additional WPML plugins also installed. (They were apparently used several years ago, but these have not been updated in 3 years by WPML).
- WPML CMS Nav (just tried to deactivate it and brief test)
- WPML Sticky Links (still active)

1. Could these be causing any redundant conflicts?
2. Can I safely delete these?

Thank you.

October 25, 2023 at 1:11 am #14651663

Andreas W.
WPML Supporter since 12/2018

Languages: English (English ) Spanish (Español ) German (Deutsch )

Timezone: America/Lima (GMT-05:00)

Hello,

Could you please confirm if you still need assistance with the issue reported on this ticket, as I was no longer able to replicate the issue on your staging site?

Those are additional WPML plugins that you are using that are still valid and still getting updates.

For more details please read this:

WPML Sticky Links:
https://wpml.org/documentation/getting-started-guide/sticky-links/

WPML CMS Nav:
https://wpml.org/documentation/getting-started-guide/site-navigation/

If you do not need those features, then you can disable and delete those plugins.

In the case of WPML Sticky Links I would suggest you first use the "Revert sticky URLs to permalinks" option before deactivating and deleting the plugin.

Best regards
Andreas