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 6 replies, has 1 voice.
Last updated by Andreas W. 1 day, 20 hours 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 |
January 10, 2025 at 8:12 am #16580530 | |
lasseC-2 |
Hi Andreas, I think i would be easy'er to work in at testversion of the site. As i said, i have one ready we can use. What mail do you want me to add as a user? It will be way faster, to just test where the problem are. Testsite: |
January 10, 2025 at 5:18 pm #16582820 | |
Andreas W. Supporter Languages: English (English ) Spanish (Español ) German (Deutsch ) Timezone: America/Lima (GMT-05:00) |
I need to try to recreate the issue on our test site to confirm if we are handling a general compatibility issue and then escalate the issue together with access and a copy of this test site. I would appreciate it if you could cooperate on this matter, as we do not have access to the Shipmondo API, as they are not our partners. Do they maybe have an option to set up a Developer API key for testing purposes? In case not, I can offer to take a look at your test site to see if I can figure out this way what is causing the issue. I would like to request temporary access (wp-admin and FTP) to the site to investigate the issue further. The required fields are below the comment section when you log in to leave the next reply. The information you provide is private, meaning only you and I can see and access it. IMPORTANT If you cannot see the "wp-admin / FTP" fields, your post and site credentials will be set to "PUBLIC". DO NOT publish the data unless you see the required wp-admin / FTP fields. The private reply form looks like this: The next time you reply, click on "I still need assistance". Video: Please note that we are obliged to request this information individually on each ticket. We are not permitted to access any access information that was not specifically submitted on this ticket in the private response form. |
January 14, 2025 at 7:59 pm #16594786 | |
Andreas W. Supporter Languages: English (English ) Spanish (Español ) German (Deutsch ) Timezone: America/Lima (GMT-05:00) |
I had no issue with setting the user role for customer "aase.vigen" to SE/NO-Forhandler. Take note that I updated all the plugins before running this test. Let me know if you can replicate the issue on the test site and provide me with detailed steps and an example. |
January 15, 2025 at 7:19 am #16595676 | |
lasseC-2 |
Hi, im not sure why you think the problem is setting the user. The problem is browsing the site as a se-forhandler. I've set the user you are on "b2bking" as SE – Forhandler. When you then try to "view site" the site crashes and the cause is the one listed in the beginning 🙂 |
January 15, 2025 at 5:34 pm #16598683 | |
Andreas W. Supporter Languages: English (English ) Spanish (Español ) German (Deutsch ) Timezone: America/Lima (GMT-05:00) |
Do you mean the "Customer Group" > "SE - Forhandler"? I can currently not experience any issues. Please send me the URL of a page that is causing the error. |
January 22, 2025 at 7:57 am #16621348 | |
lasseC-2 |
Hi i made a screenrecording to show it hidden link |
January 22, 2025 at 6:24 pm #16624821 | |
Andreas W. Supporter Languages: English (English ) Spanish (Español ) German (Deutsch ) Timezone: America/Lima (GMT-05:00) |
You had old debug.log and error.log files on the server, which were very huge. I deleted them. Please revise the current debug.log file inside the folder /wp_content/. There are various warnings for other plugins, but I can see not any error pointing to WCML. |