Skip Navigation

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

Problem:
The client reported an issue where WooCommerce Subscriptions was not working correctly with WPML. The site's default language is English, but when attempting to edit a subscription, the backend would open in the user's language and display a blank page.
Solution:
1. We asked the client to provide the error log.
2. After reviewing the log, we identified that the error originated from WooCommerce, specifically at

wp-content/plugins/woocommerce/src/Internal/Admin/Orders/MetaBoxes/CustomerHistory.php:28

.
3. We advised the client to deactivate WPML plugins to check if the issue persists.
4. We then suggested that the client contact the WooCommerce support team and share the error log with them for further assistance.

Please note that the solution provided might be irrelevant due to being outdated or not applicable to your case. If the issue persists, we highly recommend checking the related known issues, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If necessary, do not hesitate to open a new support ticket with us for further assistance.

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

Last updated by Osama Mersal 9 months, 2 weeks ago.

Assisted by: Osama Mersal.

Author Posts
February 16, 2024 at 8:56 am #15310469

jamesC-40

Hi.

WPML is not working correctly with Woocommerce Subscriptions. I have spoken to WS and they said the error is with your plugin.

Our site is default in English. When we go to edit a subscription, the subscription backend is opened in the users language and not english and is a blank page. I have attached a screenshot.

Screenshot 2024-02-16 at 09.52.37.png
February 16, 2024 at 8:12 pm #15313085

Bobby
Supporter

Languages: English (English )

Timezone: America/Los_Angeles (GMT-08:00)

Hi there,

While waiting for one of my colleagues to help you, please review the following Errata documentation that might be related to the issue you are experiencing.

https://wpml.org/errata/woocommerce-subscriptions-fatal-error-on-viewing-woocommerce-subscription-related-orders/

Let us know, your results.

February 17, 2024 at 12:33 pm #15313703

jamesC-40

Hi. That caused our website to break with a critical error

February 19, 2024 at 9:44 am #15316882

Osama Mersal
Supporter

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+02:00)

Hi,

I'm Osama from WPML forums support. I'll be glad to help you today.

First of all, sorry for the late reply; it was due to a higher workload. Please provide me with the WordPress debug.log; this will allow us to see if any PHP errors are being produced. More Info: https://wordpress.org/support/article/debugging-in-wordpress/

To enable it, open your wp-config.php file and look for the following line:

define('WP_DEBUG', false);

And change it to:

define('WP_DEBUG', true);
// Enable Debug logging to the /wp-content/debug.log file
define('WP_DEBUG_LOG', true);
// Disable display of errors and warnings, which is recommended on a live site.
define('WP_DEBUG_DISPLAY', false);
@ini_set('display_errors',0);

Then try to reproduce the issue and check if any errors were saved to the debug.log log file inside the /wp-content/ directory.
If you can paste your debug.log to https://pastebin.com/ and provide me with that link, it would be great!

Best regards,
Osama

February 19, 2024 at 11:11 am #15317572

jamesC-40

Hello Osama,

Please see the error log here:
https://pastebin.com/MMbBTmMP

Thank you

February 19, 2024 at 11:22 am #15317678

Osama Mersal
Supporter

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+02:00)

Hi,

Thanks for the log. I can see that the error comes from WooCommerce.

wp-content/plugins/woocommerce/src/Internal/Admin/Orders/MetaBoxes/CustomerHistory.php:28

Please deactivate WPML plugins and check the issue.

Best regards,
Osama

February 19, 2024 at 1:05 pm #15318304

jamesC-40

Hi. Yes the problem is still there if i deactivate WPML. Should i contact woocommerce?

February 19, 2024 at 1:07 pm #15318325

Osama Mersal
Supporter

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+02:00)

Hi,

Yes, please contact the WooCommerce support team regarding this issue and share the error log with them.

Best regards,
Osama

February 19, 2024 at 1:07 pm #15318327

jamesC-40

Ok. Thank you.

February 19, 2024 at 1:08 pm #15318358

Osama Mersal
Supporter

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+02:00)

Hi,

You are more than welcome. 🙂 Please don't hesitate to open a new ticket if you face any other issues. We are always happy to help you.

Have a great day!

Best regards,
Osama