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.
Sun | Mon | Tue | Wed | Thu | Fri | Sat |
---|---|---|---|---|---|---|
- | - | 9:00 – 18:00 | 9:00 – 18:00 | 9:00 – 18:00 | 9:00 – 18:00 | 9:00 – 18:00 |
- | - | - | - | - | - | - |
Supporter timezone: America/Lima (GMT-05:00)
This topic contains 5 replies, has 1 voice.
Last updated by Andreas W. 12 hours, 27 minutes ago.
Assisted by: Andreas W..
Author | Posts |
---|---|
January 7, 2025 at 9:19 am #16568576 | |
lasseC-2 |
Background of the issue: Symptoms: Questions: |
January 7, 2025 at 9:51 am #16568729 | |
Kor Supporter
Languages: English (English ) Timezone: Asia/Singapore (GMT+08:00) |
Hi there. Before your ticket is assigned to one of my colleagues, I will try to help. Can you please enable the WordPress debug log and recreate the issue to see if you are getting a longer error message that is more specific? This will allow us to see if any PHP errors are being produced. More Info: https://codex.wordpress.org/Debugging_in_WordPress In order to do that, edit the wp-config.php file inside your WordPress directory and insert the following lines: define( 'WP_DEBUG', true ); define( 'WP_DEBUG_LOG', true ); define( 'WP_DEBUG_DISPLAY', false ); Now please reproduce the issue once again. Locate the debug log in: /wp-content/debug.log Paste the content (if any) on a site like pastebin.com and then share the link here with us (only you and us will see the URL you are sharing). |
January 7, 2025 at 10:51 am #16569087 | |
lasseC-2 |
Hi, i got this anwser: Fatal error: Uncaught DivisionByZeroError: Division by zero in /var/www/www.mbtshop.dk/www/wp-content/plugins/woocommerce-multilingual/inc/currencies/class-wcml-multi-currency-prices.php:427 Stack trace: #0 /var/www/www.mbtshop.dk/www/wp-content/plugins/woocommerce-multilingual/inc/currencies/class-wcml-multi-currency-shipping.php(117): WCML_Multi_Currency_Prices->unconvert_price_amount() #1 /var/www/www.mbtshop.dk/www/wp-includes/class-wp-hook.php(326): WCML_Multi_Currency_Shipping->woocommerce_evaluate_shipping_cost_args() #2 /var/www/www.mbtshop.dk/www/wp-includes/plugin.php(205): WP_Hook->apply_filters() #3 /var/www/www.mbtshop.dk/www/wp-content/plugins/pakkelabels-for-woocommerce/plugin/shipping-methods/class.shipmondo.php(246): apply_filters() #4 /var/www/www.mbtshop.dk/www/wp-content/plugins/pakkelabels-for-woocommerce/plugin/shipping-methods/class.shipmondo.php(459): ShipmondoForWooCommerce\Plugin\ShippingMethods\Shipmondo->evaluate_cost() #5 /var/www/www.mbtshop.dk/www/wp-content/plugins/pakkelabels-for-woocommerce/plugin/shipping-methods/class.shipmondo.php(334): ShipmondoForWooCommerce\Plugin\ShippingMethods\Shipmondo->getShippingPrice() #6 /var/www/www.mbtshop.dk/www/wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-shipping-method.php(257): ShipmondoForWooCommerce\Plugin\ShippingMethods\Shipmondo->calculate_shipping() #7 /var/www/www.mbtshop.dk/www/wp-content/plugins/woocommerce/includes/class-wc-shipping.php(348): WC_Shipping_Method->get_rates_for_package() #8 /var/www/www.mbtshop.dk/www/wp-content/plugins/woocommerce/includes/class-wc-shipping.php(260): WC_Shipping->calculate_shipping_for_package() #9 /var/www/www.mbtshop.dk/www/wp-content/plugins/woocommerce/includes/class-wc-cart.php(1431): WC_Shipping->calculate_shipping() #10 /var/www/www.mbtshop.dk/www/wp-content/plugins/woocommerce/includes/class-wc-cart-totals.php(346): WC_Cart->calculate_shipping() #11 /var/www/www.mbtshop.dk/www/wp-content/plugins/woocommerce/includes/class-wc-cart-totals.php(857): WC_Cart_Totals->get_shipping_from_cart() #12 /var/www/www.mbtshop.dk/www/wp-content/plugins/woocommerce/includes/class-wc-cart-totals.php(151): WC_Cart_Totals->calculate_shipping_totals() #13 /var/www/www.mbtshop.dk/www/wp-content/plugins/woocommerce/includes/class-wc-cart-totals.php(141): WC_Cart_Totals->calculate() #14 /var/www/www.mbtshop.dk/www/wp-content/plugins/woocommerce/includes/class-wc-cart.php(1409): WC_Cart_Totals->__construct() #15 /var/www/www.mbtshop.dk/www/wp-content/plugins/woocommerce-multilingual/inc/currencies/class-wcml-multi-currency-prices.php(590): WC_Cart->calculate_totals() #16 /var/www/www.mbtshop.dk/www/wp-includes/class-wp-hook.php(324): WCML_Multi_Currency_Prices->recalculate_totals() #17 /var/www/www.mbtshop.dk/www/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters() #18 /var/www/www.mbtshop.dk/www/wp-includes/plugin.php(517): WP_Hook->do_action() #19 /var/www/www.mbtshop.dk/www/wp-content/plugins/woocommerce/includes/class-wc-cart-session.php(219): do_action() #20 /var/www/www.mbtshop.dk/www/wp-includes/class-wp-hook.php(324): WC_Cart_Session->get_cart_from_session() #21 /var/www/www.mbtshop.dk/www/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters() #22 /var/www/www.mbtshop.dk/www/wp-includes/plugin.php(517): WP_Hook->do_action() #23 /var/www/www.mbtshop.dk/www/wp-settings.php(726): do_action() #24 /var/www/www.mbtshop.dk/www/wp-config.php(113): require_once('/var/www/www.mb...') #25 /var/www/www.mbtshop.dk/www/wp-load.php(50): require_once('/var/www/www.mb...') #26 /var/www/www.mbtshop.dk/www/wp-blog-header.php(13): require_once('/var/www/www.mb...') #27 /var/www/www.mbtshop.dk/www/index.php(17): require('/var/www/www.mb...') #28 {main} thrown in /var/www/www.mbtshop.dk/www/wp-content/plugins/woocommerce-multilingual/inc/currencies/class-wcml-multi-currency-prices.php on line 427 |
January 7, 2025 at 3:42 pm #16570602 | |
Andreas W. Supporter Languages: English (English ) Spanish (Español ) German (Deutsch ) Timezone: America/Lima (GMT-05:00) |
Hello, Please chek the following: 1) Check Currency Rates: Inspect your WooCommerce Multilingual plugin settings for any currency conversion rates that might be set to zero or are not configured properly. 2) Double-check product prices, shipping costs, and any custom price calculations to ensure no zero values are involved. 3) Plugin Conflict Testing: Disable other plugins like Shipmondo or any other plugins related to shipping or currency conversion temporarily to check if the error is related to a conflict. I will be awaiting your results. Best regards |
January 8, 2025 at 10:12 am #16572756 | |
lasseC-2 |
Hi, i just testet and the problem seems to be with shipmondo. However i can't see why. It looks like it's trying to converte the shipping cost, before a cost has been calculatet - but im not sure - i can provide you with acces to a test site, so we can test on it? |
January 8, 2025 at 3:37 pm #16574230 | |
Andreas W. Supporter Languages: English (English ) Spanish (Español ) German (Deutsch ) Timezone: America/Lima (GMT-05:00) |
Hi, I would suggest that we try to replicate the issue on a test site and then escalate it towards our compatiblity team. I have created a sandbox with WPML and WooCommerce for that purpose. One-Click-Login: Please try to recreate the issue using a simple example and drop me a comment once you are done with this task. Best regards |