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 1 reply, has 2 voices.

Last updated by Nigel 1 year, 10 months ago.

Assisted by: Nigel.

Author Posts
August 23, 2023 at 4:01 pm #14279383

nguyenL-2

Dear WPML,

I have activated WPML String Translation, and nothing happen. When I switching to 2nd language in page edit, the system is memories exhausted

I tried to research and find out:

Fatal error: Uncaught Error: Xdebug has detected a possible infinite loop, and aborted your script with a stack depth of '256' frames
in /plugins/sitepress-multilingual-cms/vendor/wpml/collect/src/Illuminate/Support/Collection.php on line 1324
wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/collect/src/Illuminate/Support/Collection.php:1324
WPML\C\S\Collection::offsetSet()
wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/collect/src/Illuminate/Support/Collection.php:819
WPML\C\S\Collection::put()
wp-content/plugins/wpml-string-translation/classes/MO/LoadedMODictionary.php:57
WPML\S\M\LoadedMODictionary::addFile()
wp-content/plugins/wpml-string-translation/classes/MO/Hooks/LoadTextDomain.php:74
WPML\S\M\H\LoadTextDomain::overrideLoadTextDomain()
wp-includes/class-wp-hook.php:312
WP_Hook::apply_filters()
wp-includes/plugin.php:205
apply_filters()
wp-includes/l10n.php:755
load_textdomain()
wp-content/plugins/wpml-string-translation/classes/MO/JustInTime/MO.php:90
WPML\S\M\J\MO::WPML\S\M\J\{closure}()
wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/collect/src/Illuminate/Support/Collection.php:228
WPML\C\S\Collection::each()
wp-content/plugins/wpml-string-translation/classes/MO/JustInTime/MO.php:91
WPML\S\M\J\MO::loadTextDomain()
wp-content/plugins/wpml-string-translation/classes/MO/JustInTime/MO.php:71
WPML\S\M\J\MO::load()
wp-content/plugins/wpml-string-translation/classes/MO/JustInTime/MO.php:48
WPML\S\M\J\MO::translate()
wp-includes/l10n.php:253
translate_with_gettext_context()
wp-includes/l10n.php:1381
translate_user_role()
wp-content/plugins/woocommerce/includes/wc-user-functions.php:981
wc_translate_user_roles()
wp-includes/class-wp-hook.php:310
WP_Hook::apply_filters()
wp-includes/plugin.php:205
apply_filters()
wp-includes/l10n.php:265
translate_with_gettext_context()
wp-includes/l10n.php:400
_x()
wp-content/plugins/wpml-string-translation/classes/MO/JustInTime/MO.php:49

I temporarily fixed it by removing the code at path /wpml-string-translation/classes/MO/LoadedMODictionary.php

// $this->mo_files->put( $hash, $entity );

I have deployed server test, can you active private notes for me.

Thank you,
Nguyen

CleanShot 2023-08-23 at 22.53.02@2x.png
August 24, 2023 at 7:57 am #14282427

Nigel
WPML Supporter since 02/2016

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

Hi there

I suspect you are affected by this known issue affecting String Translation with the update to WordPress 6.3: https://wpml.org/errata/wordpress-6-3-performance-issues-with-string-translation-in-specific-scenarios/

Could you try the remedies described there and see if they resolve the issue?

We should have an update to String Translation fairly soon.

August 24, 2023 at 8:16 am #14282497

nguyenL-2

Thanks Nigel, I will follow https://wpml.org/errata/wordpress-6-3-performance-issues-with-string-translation-in-specific-scenarios/