Sauter la navigation

Il s'agit du forum d'assistance technique de WPML, le plug-in multilingue pour WordPress.

Il est accessible à tous, toutefois seuls les clients de WPML peuvent y publier leurs messages. L'équipe du WPML répond sur le forum 6 jours par semaine, 22 heures par jour.

Ce sujet contient 11 réponses, a 2 voix.

Dernière mise à jour par lamineD Il y a 1 année et 7 mois.

Assisté par: Ilyes.

Auteur Articles
août 20, 2023 à 10:13 am #14257989

lamineD

Hi,

This is the error message I got after upgrading. Please advise.

Error Details
=============
An error of type E_ERROR was caused in line 13 of the file /srv/htdocs/wp-content/plugins/sitepress-multilingual-cms/classes/translation-proxy/api/class-wpml-tp-xliff-parser.php. Error message: Uncaught ArgumentCountError: Too few arguments to function WPML_TP_Xliff_Parser::__construct(), 0 passed in /srv/htdocs/wp-content/plugins/sitepress-multilingual-cms/inc/functions-load-tm.php on line 677 and exactly 1 expected in /srv/htdocs/wp-content/plugins/sitepress-multilingual-cms/classes/translation-proxy/api/class-wpml-tp-xliff-parser.php:13
Stack trace:
#0 /srv/htdocs/wp-content/plugins/sitepress-multilingual-cms/inc/functions-load-tm.php(677): WPML_TP_Xliff_Parser->__construct()
#1 /srv/htdocs/wp-content/plugins/sitepress-multilingual-cms/classes/API/REST/class-wpml-tm-rest-tp-xliff-factory.php(8): wpml_tm_get_tp_xliff_api()
#2 /srv/htdocs/wp-content/plugins/sitepress-multilingual-cms/classes/action-filter-loader/class-wpml-action-filter-loader.php(148): WPML_TM_REST_TP_XLIFF_Factory->create()
#3 /srv/htdocs/wp-content/plugins/sitepress-multilingual-cms/classes/action-filter-loader/class-wpml-action-filter-loader.php(125): WPML_Action_Filter_Loader->run_factory(Object(WPML_TM_REST_TP_XLIFF_Factory))
#4 /wordpress/core/6.3/wp-includes/class-wp-hook.php(310): WPML_Action_Filter_Loader->deferred_loader(Object(WP_REST_Server))
#5 /wordpress/core/6.3/wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters(NULL, Array)
#6 /wordpress/core/6.3/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
#7 /wordpress/core/6.3/wp-includes/rest-api.php(587): do_action('rest_api_init', Object(WP_REST_Server))
#8 /wordpress/core/6.3/wp-includes/rest-api.php(545): rest_get_server()
#9 /wordpress/core/6.3/wp-includes/rest-api.php(2911): rest_do_request(Object(WP_REST_Request))
#10 [internal function]: rest_preload_api_request(Array, '/wc-analytics/r...')
#11 /wordpress/plugins/woocommerce/8.0.2/src/Internal/Admin/Settings.php(146): array_reduce(Array, 'rest_preload_ap...')
#12 /wordpress/core/6.3/wp-includes/class-wp-hook.php(310): Automattic\WooCommerce\Internal\Admin\Settings->add_component_settings(Array)
#13 /wordpress/core/6.3/wp-includes/plugin.php(205): WP_Hook->apply_filters(Array, Array)
#14 /wordpress/plugins/woocommerce/8.0.2/src/Internal/Admin/WCAdminSharedSettings.php(61): apply_filters('woocommerce_adm...', Array)
#15 /wordpress/plugins/woocommerce/8.0.2/packages/woocommerce-blocks/src/Assets/AssetDataRegistry.php(267): Automattic\WooCommerce\Internal\Admin\WCAdminSharedSettings->Automattic\WooCommerce\Internal\Admin\{closure}()
#16 /wordpress/plugins/woocommerce/8.0.2/packages/woocommerce-blocks/src/Assets/AssetDataRegistry.php(368): Automattic\WooCommerce\Blocks\Assets\AssetDataRegistry->execute_lazy_data()
#17 /wordpress/core/6.3/wp-includes/class-wp-hook.php(310): Automattic\WooCommerce\Blocks\Assets\AssetDataRegistry->enqueue_asset_data('')
#18 /wordpress/core/6.3/wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters('', Array)
#19 /wordpress/core/6.3/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
#20 /wordpress/core/6.3/wp-admin/includes/template.php(2216): do_action('admin_print_foo...')
#21 /wordpress/core/6.3/wp-admin/update.php(53): iframe_footer()
#22 {main}
thrown

août 21, 2023 à 8:22 am #14260869

Ilyes
Supporter

Les langues: Anglais (English ) Français (Français ) Arabe (العربية )

Fuseau horaire: Pacific/Easter (GMT-06:00)

Hello,

Thank you for contacting WPML support team,

It seems the error is in relation to Woocommerce, I only had one case similar to this before.

It was related to a conflict between plugins and/or theme, could you please run your site on a minimal environment to find the culprit? (You could do it on a staging site)

After doing a backup, change your theme to a default one , e.g Twenty-twenty two

If the issue persists, start disabling all other plugins and only leave WPML Core, WPML string translation and WooCommerce plugin active.

If the issue disappears, start enabling the plugins one by one until you get the error again.

Please let us know once done,

août 21, 2023 à 8:44 am #14261149

lamineD

Well, I am using a very basic theme: Hello theme from Elementor, and yes, I am using Woocommerce.
My site is running, so I just wanted to understand the impact of the error on my site. Please explain.

août 21, 2023 à 2:45 pm #14265093

Ilyes
Supporter

Les langues: Anglais (English ) Français (Français ) Arabe (العربية )

Fuseau horaire: Pacific/Easter (GMT-06:00)

Hello again,

We cannot pinpoint the cause or the origin of this issue without doing this kind of tests,

I would like to ask for temporary access to your test site’s wp-admin and FTP to investigate the issue further.

Kindly provide me with the steps on how to replicate the problem.

It is important to note that you should back up your site and database before proceeding, and you can use a plugin like Duplicator for this purpose. Here’s a link to the plugin: http://wordpress.org/plugins/duplicator/

If you do not see the form below, please do not enter your credentials as they will be publicly exposed:

lien caché

Best,

août 21, 2023 à 2:58 pm #14265381

lamineD

Instead of sharing access to my site is it possible do share with you a backup created with Jetpack ?

août 21, 2023 à 3:23 pm #14265629

Ilyes
Supporter

Les langues: Anglais (English ) Français (Français ) Arabe (العربية )

Fuseau horaire: Pacific/Easter (GMT-06:00)

If you think I could upload this backup locally using the free Jetpack plugin, then yes,

Else, you could use Duplicator or All In One WP migration.

Looking forward to your copy 🙂 !

août 22, 2023 à 8:16 am #14268695

Ilyes
Supporter

Les langues: Anglais (English ) Français (Français ) Arabe (العربية )

Fuseau horaire: Pacific/Easter (GMT-06:00)

Hello again,

Unfortunately, JetPACK doesn't work in the offline environment,

Could you please export your site using All in one WP migration or Duplicator plugins ?

août 28, 2023 à 7:29 am #14297729

Ilyes
Supporter

Les langues: Anglais (English ) Français (Français ) Arabe (العربية )

Fuseau horaire: Pacific/Easter (GMT-06:00)

Hello again,

I tried the backup you sent us, it kept failing on any environment we upload it on, with this error :

[28-Aug-2023 07:19:49 UTC] PHP Fatal error:  Allowed memory size of 268435456 bytes exhausted (tried to allocate 1196032 bytes) in D:\Local\belc\app\public\wp-includes\class-wpdb.php on line 2425

So I tried to debug the error that you initially got from WooCommerce, it turns out, we only had one case of a similar issue that I already fixed: https://wpml.org/forums/topic/translations-are-not-live-on-my-website/

If this is the same issue, I highly recommend disabling all plugins and only leave WPML and Woocommerce core plugins enabled.

It might be either related to a conflict with caching plugin/system that you have under your
site.

If the issue disappears, then start enabling the plugins one by one until you find the cause of this conflict,

If the issue persists with this minimal environment, send me another copy of your site with only those plugins (I won't need the rest, as they seem to be too huge for them to be restored).

You could also share the staging access instead if you can,

août 28, 2023 à 12:33 pm #14300883

lamineD

Hi,

I will give you temporary access to the admin panel in 24h or 48h.

For now, I try to finish resolving another issue:

https://wpml.org/forums/topic/wpml-string-translation-update-slowdown-my-site-by-60/page/2/#post-14300837

One of the recommendations is to update to the beta version.

Regards

Septembre 4, 2023 à 7:51 am #14334197

lamineD

Hi, Ilyes,

I am still working with the support team to fix my performance issue.

Regards

Septembre 4, 2023 à 9:04 am #14334651

Ilyes
Supporter

Les langues: Anglais (English ) Français (Français ) Arabe (العربية )

Fuseau horaire: Pacific/Easter (GMT-06:00)

Hi,

Please let us know once you change the WPML version and have the access available,

Thanks!

Septembre 6, 2023 à 11:29 am #14351745

lamineD

Hi Ilyes,

Today, I did the September 6th release upgrade. No error message.

I close this ticket.

Thanks for your support and patience.

Regards