[En attente du retour de l'utilisateur] 503 error on WPML woocommerce multilingual
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.
Sun
Mon
Tue
Wed
Thu
Fri
Sat
-
7:00 – 15:00
7:00 – 15:00
7:00 – 15:00
7:00 – 15:00
7:00 – 15:00
-
-
-
-
-
-
-
-
Fuseau horaire du support : Pacific/Easter (GMT-06:00)
Les langues: Anglais (English )Espagnol (Español )Italien (Italiano )
Fuseau horaire: Europe/Rome (GMT+02:00)
Hello there!
I have asked a french speaker supporter to take your case but while he starts I'd like to tell you that I saw the debug log lines you sent us:
[17-Jul-2025 07:02:58 UTC] wc_get_product was called incorrectly. N'appelez pas wc_get_product avant l'exécution des actions woocommerce_init, woocommerce_after_register_taxonomy et woocommerce_after_register_post_type. Backtrace: require_once('wp-load.php'), require_once('wp-config.php'), require_once('wp-settings.php'), do_action('init'), WP_Hook->do_action, WP_Hook->apply_filters, WooCommerce->init, wc_load_cart, WooCommerce->initialize_cart, WC_Customer->__construct, WC_Data_Store->read, WC_Customer_Data_Store->read, WC_Data->read_meta_data, WC_Data->init_meta_data, maybe_unserialize, unserialize, WC_Data->__wakeup, WC_Product_Variation->__construct, WC_Product_Simple->__construct, WC_Product->__construct, WC_Data_Store->read, WC_Product_Variation_Data_Store_CPT->read, WC_Product_Variation_Data_Store_CPT->generate_attribute_summary, wc_get_formatted_variation, wc_attribute_label, wc_get_product, wc_doing_it_wrong. This message was added in version 3.9.
[17-Jul-2025 07:03:33 UTC] PHP Warning: include(.../public_html/wp-content/languages/plugins/wpforms-lite-es_ES.l10n.php): Failed to open stream: No such file or directory in /home/u512217528/domains/canidefit.com/public_html/wp-includes/l10n.php on line 1608
[17-Jul-2025 07:03:33 UTC] PHP Warning: include(): Failed opening '.../public_html/wp-content/languages/plugins/wpforms-lite-es_ES.l10n.php' for inclusion (include_path='.:/opt/alt/php82/usr/share/pear:/opt/alt/php82/usr/share/php:/usr/share/pear:/usr/share/php') in /home/u512217528/domains/canidefit.com/public_html/wp-includes/l10n.php on line 1608
Now, these aren't errors, they are notifications meaning that they are not the ones that create the 503 error, but may be related to the main problem.
I'd like you to follow a few steps and let me know the outcome since they will probably help us understand where the problem lies:
1) Can you temporarily disable the WP Forms plugin? it's creating a notification because of a missing language (spanish) that it tries to read, probably because you've enabled Spanish on your site. this way we remove one error from the debug.log
2) One of the notifications reads " wc_get_product was called incorrectly. N’appelez pas wc_get_product avant l’exécution des actions woocommerce_init"
This means that you either have a WooCommerce Extension doing something at a wrong time OR that you have custom code for WooCommerce that might be ok but it's hooked incorrectly.
2.1) Can you tell me if you have custom code on your theme about WooCommerce?
2.2) Can you try to disable the WC Related plugins and leave only WooCommerce Multilingual and Woocommerce Enabled. Preferably on a theme like Storefront or a default WordPress Theme like TwentyTwenty Five, just to see if that 503 error still appears.
----------------------------
PLEASE NOTE
- We never suggest you run these tests on a LIVE site. You can use a plugin like lien caché">WP Staging to create a quick staging site and test there
- If you do decide to do this on a live site, please create a site backup. these tests should not break anything but it's better to always have a secure "checkpoint" to return to.
- Make sure the debug.log is enabled and check it after each test or send us the file after you run your tests (you can upload them to a place like wetransfer, dropbox or any other similar service and share the links with us, they will be private by default!).
I delete the WPForms plugin as advised – no change.
I checked for any custom WooCommerce code in my theme – there is none. I’m using Blocksy, and apart from a few plugins, I don’t have any WooCommerce-specific custom code added manually.
I deactivated all WooCommerce-related plugins, keeping only WooCommerce and WooCommerce Multilingual active.
I switched to a default theme (Twenty Twenty-Five) – still getting the 503 error.
I made sure the debug.log is active and checked it after each test – same errors keep appearing, especially the wc_get_product one.
Nothing changed after these tests.
Let me know what we can do next, because at this stage the issue seems to be coming either from a conflict within WooCommerce Multilingual or from an internal misfire with how it handles wc_get_product.
Les langues: Anglais (English )Français (Français )Arabe (العربية )
Fuseau horaire: Pacific/Easter (GMT-06:00)
Hello,
Sorry for the delay in response, I marked this ticket "waiting for your feedback" at the same time as your last reply from last week, hence i missed your message,
I would like to ask for temporary access to your test site’s wp-admin and FTP to investigate the issue further.
If necessary, I may need to replicate your site locally. To do this, I will temporarily install a plugin called “Duplicator” on your site, which will enable me to create a copy of your site and its content. Once the problem has been resolved, I will delete the local site. Please let me know if you agree to this.
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é
For your privacy and security, please ensure that you make your reply a private one.