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 4 replies, has 3 voices.

Last updated by Nigel 1 year, 9 months ago.

Assisted by: Nigel.

Author Posts
August 22, 2023 at 12:36 pm #14271183

francoisV-4

Dear support Team,

I hope you are feeling well because this one is a tricky one.

Context

I'm a professional WordPress developper for 10+ years. I have made a WPML+WooCommerce webshop 2 years ago using your plugin. Everything was fine since a few weeks.

The website is in french (native language), with two other languages: English and German. For now, only the English part is translated, the German part is pending some translations.

WordPress and Plugins used on this website are on "auto update" mode.

The problem

From a few days, the server is running out of memory when trying to view the english part of the website. After lots of research and test, I see that it occurs only when I activate a third party plugin: Extra Product Options & Add-Ons for WooCommerce -> aka "EPO" (link on CodeCanyon:hidden link) AND WPML String Translation. Only if BOTH are activate:
- if EPO is activate and WPML String Translation desactivate, no problem.
- if EPO is desactivate and WPML String Translation is active, no problem.

The problem can be replicated on a standard environnement. Switch to basic WordPress theme (twenty-three) or to Storefront by Automattic :the problem occurs. All plugins desactivated except the necessary WPML plugins, WooCommerce and the EPO plugin (all are up to date): the problem occurs.

The problem only happens on language with translated product that use EPO plugin. In this case, English is a secondary language, product using EPO plugins are translated. The english part of the website is broken. Note that it is all the pages, even the one not querying products.

Language with product using EPO plugin that are not yet translated, seems fine (German for example).

First I check with EPO plugin

So I get in touch with EPO plugin support. They pointed out that the error is coming from WPML String Translation.

So it's from WPML String Translation

While, yes, when you disable the EPO plugin, you can see the english part of the website, however even when EPO is disabled the server still returns the same message.

Fatal error: Allowed memory size of 671088640 bytes exhausted (tried to allocate 323584 bytes) in .../wp-includes/functions.php on line 5349

This error is also trigger when try to view the settings of the string WPML String Translation plugin at hidden link

Sandbox environment

The server configuration :
Apache server
640 Mo of memory allocated, which is quite fair and should not represent a bottleneck i think.
timeout : 60 seconds, which is also enough. The crash appends within 10 seconds.
Max input var : 3000, not sure why this should be higher for this type of website (not so many products).
Running PHP 8.0 and MariaDB 10.4

I have duplicated the original website and everything is ready for you to check.
Could you tell me how to send you the credentials? And if you need more than an admin access to the backend (FTP access, Database accces, ...).

If you want more precisions or a close follow-up from my side, I'm here to assist

Thanks for your precious help.

August 22, 2023 at 7:56 pm #14273453

Mateus Getulio
Supporter

Languages: English (English ) Portuguese (Brazil) (Português )

Timezone: America/Sao_Paulo (GMT-03:00)

Hi there,

Thanks for your contact.

Before your ticket is assigned to one of my colleagues, please allow me to walk you through some initial debugging steps. This will help speed up the support process.

Please take a look on this errata page and check if one of the workarounds help you: https://wpml.org/errata/wordpress-6-3-performance-issues-with-string-translation-in-specific-scenarios/

Looking forward to your reply. Thank you.

Kind regards,
Mateus.

August 23, 2023 at 7:53 am #14275281

francoisV-4

Hi Mateus,

Thanks for pointing me the errata.
FYI: I can't resolve the issue with "option 1" because it's impossible to load de WPML String Translation admin page (server memroy crash). So I went with "option 2" and downgrade WordPress to 6.2.2.

This type of bug is mindblowing! How your QC did not see anything before release?
I really hope it will be fixed quickly.

Anyways, thanks for your help and your time.

August 23, 2023 at 3:31 pm #14279229

Nigel
WPML Supporter since 02/2016

Timezone: Europe/Madrid (GMT+02:00)

We run a whole battery of automated tests before releasing updates, and the circumstances required to trigger this issue simply didn't arise during testing.

The developers have proposed a fix and it is currently undergoing testing, and we will hopefully soon be in a position to publish an update.

Thanks for confirming your issue was covered by this same problem.

August 24, 2023 at 8:29 am #14282655

Nigel
WPML Supporter since 02/2016

Timezone: Europe/Madrid (GMT+02:00)

Just an update to let you know that we have released a beta of String Translation 3.2.8 with a fix for this issue. If you test it, let us know if it helps, otherwise you may want to wait for the full release.