Skip Navigation

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

Problem:
The client was experiencing a fatal error when trying to manually renew a subscription with WooCommerce Subscriptions after activating the WPML String Translation plugin. The error suggested a problem with a string that was not well translated.

Solution:
We recommended the client to:

Perform WPML troubleshooting steps such as clearing the cache in WPML, removing ghost entries, fixing element_type collation, setting language information, and cleaning up string tables. Detailed instructions can be found at WPML Troubleshooting Options.

The client resolved the issue by deleting the selected strings related to WooCommerce Subscriptions inside the WPML String Translation, which solved the problem.

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.

Tagged: 

This topic contains 5 replies, has 2 voices.

Last updated by Waqas Bin Hasan 1 year, 2 months ago.

Assisted by: Waqas Bin Hasan.

Author Posts
December 3, 2023 at 9:17 pm #14981305

frederickE-2

I try to renewall a subscription on a website :

The website URL is : hidden link

I have this error when I proceed the renewall manually with Woo Subscription

Fatal error: Uncaught ValueError: Unknown format specifier "m" in /var/www/vhosts/montrealenligne.ca/montrealenligne.dev/protectioncsl/wp-content/plugins/woocommerce-subscriptions/vendor/woocommerce/subscriptions-core/templates/emails/subscription-info.php:63 Stack trace: #0 /var/www/vhosts/montrealenligne.ca/montrealenligne.dev/protectioncsl/wp-content/plugins/woocommerce-subscriptions/vendor/woocommerce/subscriptions-core/templates/emails/subscription-info.php(63): sprintf() #1 /var/www/vhosts/montrealenligne.ca/montrealenligne.dev/protectioncsl/wp-content/plugins/woocommerce/includes/wc-core-functions.php(345): include('...') #2 /var/www/vhosts/montrealenligne.ca/montrealenligne.dev/protectioncsl/wp-content/plugins/woocommerce-subscriptions/vendor/woocommerce/subscriptions-core/includes/class-wc-subscriptions-order.php(710): wc_get_template() #3 /var/www/vhosts/montrealenligne.ca/montrealenligne.dev/protectioncsl/wp-includes/class-wp-hook.php(326): WC_Subscriptions_Order::add_sub_info_email() #4 /var/www/vhosts/montrealenligne.ca/montrealenligne.dev/protectioncsl/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters() #5 /var/www/vhosts/montrealenligne.ca/montrealenligne.dev/protectioncsl/wp-includes/plugin.php(517): WP_Hook->do_action() #6 /var/www/vhosts/montrealenligne.ca/montrealenligne.dev/protectioncsl/wp-content/plugins/woocommerce-subscriptions/vendor/woocommerce/subscriptions-core/templates/emails/email-order-details.php(71): do_action() #7 /var/www/vhosts/montrealenligne.ca/montrealenligne.dev/protectioncsl/wp-content/plugins/woocommerce/includes/wc-core-functions.php(345): include('...') #8 /var/www/vhosts/montrealenligne.ca/montrealenligne.dev/protectioncsl/wp-content/plugins/woocommerce-subscriptions/vendor/woocommerce/subscriptions-core/includes/class-wc-subscriptions-email.php(291): wc_get_template() #9 /var/www/vhosts/montrealenligne.ca/montrealenligne.dev/protectioncsl/wp-includes/class-wp-hook.php(324): WC_Subscriptions_Email::order_details() #10 /var/www/vhosts/montrealenligne.ca/montrealenligne.dev/protectioncsl/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters() #11 /var/www/vhosts/montrealenligne.ca/montrealenligne.dev/protectioncsl/wp-includes/plugin.php(517): WP_Hook->do_action() #12 /var/www/vhosts/montrealenligne.ca/montrealenligne.dev/protectioncsl/wp-content/plugins/woocommerce-subscriptions/vendor/woocommerce/subscriptions-core/templates/emails/customer-processing-renewal-order.php(22): do_action() #13 /var/www/vhosts/montrealenligne.ca/montrealenligne.dev/protectioncsl/wp-content/plugins/woocommerce/includes/wc-core-functions.php(345): include('...') #14 /var/www/vhosts/montrealenligne.ca/montrealenligne.dev/protectioncsl/wp-content/plugins/woocommerce/includes/wc-core-functions.php(364): wc_get_template() #15 /var/www/vhosts/montrealenligne.ca/montrealenligne.dev/protectioncsl/wp-content/plugins/woocommerce-subscriptions/vendor/woocommerce/subscriptions-core/includes/emails/class-wcs-email-processing-renewal-order.php(142): wc_get_template_html() #16 /var/www/vhosts/montrealenligne.ca/montrealenligne.dev/protectioncsl/wp-content/plugins/woocommerce/includes/emails/class-wc-email.php(588): WCS_Email_Processing_Renewal_Order->get_content_html() #17 /var/www/vhosts/montrealenligne.ca/montrealenligne.dev/protectioncsl/wp-content/plugins/woocommerce-subscriptions/vendor/woocommerce/subscriptions-core/includes/emails/class-wcs-email-processing-renewal-order.php(101): WC_Email->get_content() #18 /var/www/vhosts/montrealenligne.ca/montrealenligne.dev/protectioncsl/wp-includes/class-wp-hook.php(324): WCS_Email_Processing_Renewal_Order->trigger() #19 /var/www/vhosts/montrealenligne.ca/montrealenligne.dev/protectioncsl/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters() #20 /var/www/vhosts/montrealenligne.ca/montrealenligne.dev/protectioncsl/wp-includes/plugin.php(517): WP_Hook->do_action() #21 /var/www/vhosts/montrealenligne.ca/montrealenligne.dev/protectioncsl/wp-content/plugins/woocommerce-subscriptions/vendor/woocommerce/subscriptions-core/includes/class-wc-subscriptions-email.php(151): do_action() #22 /var/www/vhosts/montrealenligne.ca/montrealenligne.dev/protectioncsl/wp-includes/class-wp-hook.php(326): WC_Subscriptions_Email::send_renewal_order_email() #23 /var/www/vhosts/montrealenligne.ca/montrealenligne.dev/protectioncsl/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters() #24 /var/www/vhosts/montrealenligne.ca/montrealenligne.dev/protectioncsl/wp-includes/plugin.php(517): WP_Hook->do_action() #25 /var/www/vhosts/montrealenligne.ca/montrealenligne.dev/protectioncsl/wp-content/plugins/woocommerce/includes/class-wc-order.php(404): do_action() #26 /var/www/vhosts/montrealenligne.ca/montrealenligne.dev/protectioncsl/wp-content/plugins/woocommerce/includes/class-wc-order.php(253): WC_Order->status_transition() #27 /var/www/vhosts/montrealenligne.ca/montrealenligne.dev/protectioncsl/wp-content/plugins/woocommerce/includes/class-wc-order.php(151): WC_Order->save() #28 /var/www/vhosts/montrealenligne.ca/montrealenligne.dev/protectioncsl/wp-content/plugins/woocommerce-gateway-beanstream/vendor/skyverge/wc-plugin-framework/woocommerce/payment-gateway/class-sv-wc-payment-gateway-direct.php(407): WC_Order->payment_complete() #29 /var/www/vhosts/montrealenligne.ca/montrealenligne.dev/protectioncsl/wp-content/plugins/woocommerce-gateway-beanstream/vendor/skyverge/wc-plugin-framework/woocommerce/payment-gateway/integrations/class-sv-wc-payment-gateway-integration-subscriptions.php(370): SkyVerge\WooCommerce\PluginFramework\v5_11_12\SV_WC_Payment_Gateway_Direct->process_payment() #30 /var/www/vhosts/montrealenligne.ca/montrealenligne.dev/protectioncsl/wp-includes/class-wp-hook.php(324): SkyVerge\WooCommerce\PluginFramework\v5_11_12\SV_WC_Payment_Gateway_Integration_Subscriptions->process_renewal_payment() #31 /var/www/vhosts/montrealenligne.ca/montrealenligne.dev/protectioncsl/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters() #32 /var/www/vhosts/montrealenligne.ca/montrealenligne.dev/protectioncsl/wp-includes/plugin.php(517): WP_Hook->do_action() #33 /var/www/vhosts/montrealenligne.ca/montrealenligne.dev/protectioncsl/wp-content/plugins/woocommerce-subscriptions/includes/gateways/class-wc-subscriptions-payment-gateways.php(97): do_action() #34 /var/www/vhosts/montrealenligne.ca/montrealenligne.dev/protectioncsl/wp-content/plugins/woocommerce-subscriptions/includes/gateways/class-wc-subscriptions-payment-gateways.php(81): WC_Subscriptions_Payment_Gateways::trigger_gateway_renewal_payment_hook() #35 /var/www/vhosts/montrealenligne.ca/montrealenligne.dev/protectioncsl/wp-includes/class-wp-hook.php(324): WC_Subscriptions_Payment_Gateways::gateway_scheduled_subscription_payment() #36 /var/www/vhosts/montrealenligne.ca/montrealenligne.dev/protectioncsl/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters() #37 /var/www/vhosts/montrealenligne.ca/montrealenligne.dev/protectioncsl/wp-includes/plugin.php(517): WP_Hook->do_action() #38 /var/www/vhosts/montrealenligne.ca/montrealenligne.dev/protectioncsl/wp-content/plugins/woocommerce-subscriptions/vendor/woocommerce/subscriptions-core/includes/admin/class-wcs-admin-meta-boxes.php(244): do_action() #39 /var/www/vhosts/montrealenligne.ca/montrealenligne.dev/protectioncsl/wp-includes/class-wp-hook.php(324): WCS_Admin_Meta_Boxes::process_renewal_action_request() #40 /var/www/vhosts/montrealenligne.ca/montrealenligne.dev/protectioncsl/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters() #41 /var/www/vhosts/montrealenligne.ca/montrealenligne.dev/protectioncsl/wp-includes/plugin.php(517): WP_Hook->do_action() #42 /var/www/vhosts/montrealenligne.ca/montrealenligne.dev/protectioncsl/wp-content/plugins/woocommerce/includes/admin/meta-boxes/class-wc-meta-box-order-actions.php(173): do_action() #43 /var/www/vhosts/montrealenligne.ca/montrealenligne.dev/protectioncsl/wp-includes/class-wp-hook.php(324): WC_Meta_Box_Order_Actions::save() #44 /var/www/vhosts/montrealenligne.ca/montrealenligne.dev/protectioncsl/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters() #45 /var/www/vhosts/montrealenligne.ca/montrealenligne.dev/protectioncsl/wp-includes/plugin.php(517): WP_Hook->do_action() #46 /var/www/vhosts/montrealenligne.ca/montrealenligne.dev/protectioncsl/wp-content/plugins/woocommerce/includes/admin/class-wc-admin-meta-boxes.php(263): do_action() #47 /var/www/vhosts/montrealenligne.ca/montrealenligne.dev/protectioncsl/wp-includes/class-wp-hook.php(326): WC_Admin_Meta_Boxes->save_meta_boxes() #48 /var/www/vhosts/montrealenligne.ca/montrealenligne.dev/protectioncsl/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters() #49 /var/www/vhosts/montrealenligne.ca/montrealenligne.dev/protectioncsl/wp-includes/plugin.php(517): WP_Hook->do_action() #50 /var/www/vhosts/montrealenligne.ca/montrealenligne.dev/protectioncsl/wp-includes/post.php(4760): do_action() #51 /var/www/vhosts/montrealenligne.ca/montrealenligne.dev/protectioncsl/wp-includes/post.php(4862): wp_insert_post() #52 /var/www/vhosts/montrealenligne.ca/montrealenligne.dev/protectioncsl/wp-admin/includes/post.php(453): wp_update_post() #53 /var/www/vhosts/montrealenligne.ca/montrealenligne.dev/protectioncsl/wp-admin/post.php(227): edit_post() #54 {main} thrown in /var/www/vhosts/montrealenligne.ca/montrealenligne.dev/protectioncsl/wp-content/plugins/woocommerce-subscriptions/vendor/woocommerce/subscriptions-core/templates/emails/subscription-info.php on line 63

When I deactivate WPML I don't have problem.

I think is related to a translated strings

Thanks

December 4, 2023 at 12:11 pm #14986501

Waqas Bin Hasan
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Hi,

Thank you for contacting the support.

Apparently I don't see any reference to a WPML plugin in the said error log. So it could be a conflict from another plugin or theme too. I see references to WooCommerce and woocommerce-gateway-beanstream.

Before proceeding further, may I ask you to try the following?

IMPORTANT: Take full backup of your website and database beforehand. It is highly advised to try the following on a staging/dev site first, so your live website isn't compromised.

- Fix “WP Memory Limit” to at least 128MB while 256MB is recommended. See https://wpml.org/home/minimum-requirements/ for detailed information. You can set this in your wp-config.php file by adding following code:

define( 'WP_MEMORY_LIMIT', '128M' );
define( 'WP_MAX_MEMORY_LIMIT', '256M' );

Remember to add these lines before the line where it says:
/* That's all, stop editing! Happy publishing. */

- Deactivate all plugins except WPML, WooCommerce and WooCommerce Subscriptions and check for the issue.
- Activate each plugin one-by-one, while keeping check on the issue after a plugin is activated. This way you'll be able to pinpoint a plugin having a conflict (or problem), if any.
- If the problem persists, repeat the above steps with your parent theme, as well as, a default theme of WordPress (i.e. 2021 or 2023).

Please let me know your findings and I'll try my best to further help you on the matter.

Regards.

December 4, 2023 at 1:39 pm #14987399

frederickE-2

Hello,
I adjust the Memory limit and deactivated all plugins except Woocommerce, Woo Subscription, Woo Bambora and WPML.

I made after I payment test and it's working.

When I activated the WPML Strings Translation plugin, I made the payment test and I have the Fatal Error when I process the renewal.

I think is a string who are not well translated.

Thanks!

December 5, 2023 at 6:26 am #14993027

Waqas Bin Hasan
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Thank you for the updates and trying those steps.

Can you try these WPML troubleshooting options in the following order?

!! Before running any steps, create a backup of your website!!

- Go to WPML -> Support -> Troubleshooting.
- Clear the Cache in WPML.
- Remove ghost entries from the translation tables.
- Fix element_type collation.
- Fix WPML table collation.
- Set language information.
- Cleanup and optimise string tables.
- Clear invalid strings.

Remember to apply these one by one and wait for the one to finish before moving to the other. See https://wpml.org/documentation/support/wpml-troubleshooting-options/ for details.

After trying these, please check for the issue again and let me know.

December 5, 2023 at 12:46 pm #14997319

frederickE-2

Hello, I made all the steps above and it doesn’t resolve the issue.

I'm awaiting your reply!

Thanks!

December 5, 2023 at 1:53 pm #14998505

Waqas Bin Hasan
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Thank you for the updates.

I need to take a closer look at your site. So I request temporary access (WP-Admin and FTP), preferably to a test site where the problem has been replicated.

Your next answer will be private, to share this information safely.

Also provide detailed steps to reproduce the issue and links to pages in admin and on frontend.

IMPORTANT: Please take a complete backup of the site to avoid data loss. I may need to activate/deactivate plugins also.

See https://wpml.org/purchase/support-policy/privacy-and-security-when-providing-debug-information-for-support/ for details on privacy and security.

December 5, 2023 at 2:27 pm #14999211

frederickE-2

Hello, the issue is solved.

I deleted the selected strings related to Woo Subscription inside WPML Strings Translation and it solves the problem.

Thanks for your assistance!