Skip to content Skip to sidebar

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 6 replies, has 0 voices.

Last updated by Bruno Kos 1 day, 22 hours ago.

Assisted by: Bruno Kos.

Author Posts
September 15, 2025 at 9:10 am

mariuszC-6

Background of the issue:
I am trying to configure WPML and Stripe so that the payment gateway enables payments for a selected country. The website hidden link is set up for the German market but also serves customers in Poland.

Symptoms:
Due to the default language, I can’t activate the payment option dedicated to the Polish market.

Questions:
Is there an option to configure WPML and Stripe to enable payments for a selected country?

September 15, 2025 at 9:56 am #17401389

Bruno Kos
WPML Supporter since 12/2018

Languages: English (English ) German (Deutsch ) French (Français )

Timezone: Europe/Zagreb (GMT+02:00)

Here is the ticket, let me know if setting up PLN as default in WooCommerce and setting up hidden link for Germany to use EUR would not work, so I could check with our 2nd tier and possible feature request for our development team.

September 18, 2025 at 8:06 am #17412016

mariuszC-6

Hi. I’m coming back to this topic. Could you first determine why WPML is generating an error? Log below.

[Thu Sep 18 10:02:47.856964 2025] [proxy_fcgi:error] [pid 402072:tid 402199] [client 51.83.196.69:0] AH01071: Got error 'PHP message: PHP Warning: file_exists(): open_basedir restriction in effect. File(WP Endpoints-de_DE.mo) is not within the allowed path(s): (/home/aromende/:/tmp/:/var/tmp/:/opt/alt/php80/usr/share/pear/:/dev/urandom:/usr/local/php80/lib/:/usr/local/php80/lib/:/usr/local/php82/lib/:/usr/local/php74/lib/:/usr/local/php73/lib/:/usr/local/lib/php/) in /home/aromende/domains/aromenderalpen.de/public_html/wp-content/plugins/wpml-string-translation/classes/MO/Hooks/LoadTranslationFile.php on line 82; PHP message: PHP Warning: file_exists(): open_basedir restriction in effect. File(WP Endpoints-de_DE.l10n.php) is not within the allowed path(s): (/home/aromende/:/tmp/:/var/tmp/:/opt/alt/php80/usr/share/pear/:/dev/urandom:/usr/local/php80/lib/:/usr/local/php80/lib/:/usr/local/php82/lib/:/usr/local/php74/lib/:/usr/local/php73/lib/:/usr/local/lib/php/) in /home/aromende/domains/aromenderalpen.de/public_html/wp-content/plugins/wpml-string-translation/classes/MO/Hooks/LoadTranslationFile.php on line 85'

September 18, 2025 at 10:31 am #17412774

mariuszC-6

Your idea with changing the default currency and configuring WPML works.
Question → what’s the most reasonable way to create language and currency switchers in the mobile version when using the Woodmart theme?

September 19, 2025 at 7:48 am #17415563

Bruno Kos
WPML Supporter since 12/2018

Languages: English (English ) German (Deutsch ) French (Français )

Timezone: Europe/Zagreb (GMT+02:00)

About the open_basedir restriction issue, can you go to this directory: wp-content/plugins/wpml-string-translation/classes/MO/Hooks/ and open the file "LoadTranslationFile.php"

Find this line:

$defaultPathDirectory =  $wp_textdomain_registry->get( $domain, $locale );

Insert the following code, below that line:

/** see wpmlsupp-12853  */
if (!is_string($defaultPathDirectory) || trim($defaultPathDirectory) === '') {
    return null;
}

That should fix the problem for now (the issue is escalated to our development team already). Does it work in your case?

As for the currency switcher, can you check this?
https://wpml.org/documentation/related-projects/woocommerce-multilingual/designing-custom-currency-switchers-using-template-files/#understanding-php-templates-for-currency-switchers

September 22, 2025 at 10:05 am #17421177
mariuszC-6

Can you help me resolve this issue?

Deprecated: Creation of dynamic property WC_Shipping_Flat_Rate::$wcml_shipping_cost_in_mc is deprecated in /home/aromende/domains/aromenderalpen.de/public_html/wp-content/plugins/woocommerce-multilingual/classes/Multicurrency/Shipping/FrontEndHooks.php on line 38

Deprecated: Creation of dynamic property WC_Shipping_Flat_Rate::$wcml_shipping_cost_in_mc is deprecated in /home/aromende/domains/aromenderalpen.de/public_html/wp-content/plugins/woocommerce-multilingual/classes/Multicurrency/Shipping/FrontEndHooks.php on line 38

Deprecated: Creation of dynamic property WC_Shipping_Flat_Rate::$wcml_shipping_cost_in_mc is deprecated in /home/aromende/domains/aromenderalpen.de/public_html/wp-content/plugins/woocommerce-multilingual/classes/Multicurrency/Shipping/FrontEndHooks.php on line 38

Fatal error: Uncaught DivisionByZeroError: Division by zero in /home/aromende/domains/aromenderalpen.de/public_html/wp-content/plugins/woocommerce-multilingual/inc/currencies/class-wcml-multi-currency-prices.php:424 Stack trace: #0 /home/aromende/domains/aromenderalpen.de/public_html/wp-content/plugins/woocommerce-multilingual/inc/currencies/class-wcml-multi-currency-shipping.php(137): WCML_Multi_Currency_Prices->unconvert_price_amount() #1 /home/aromende/domains/aromenderalpen.de/public_html/wp-includes/class-wp-hook.php(324): WCML_Multi_Currency_Shipping->woocommerce_evaluate_shipping_cost_args() #2 /home/aromende/domains/aromenderalpen.de/public_html/wp-includes/plugin.php(205): WP_Hook->apply_filters() #3 /home/aromende/domains/aromenderalpen.de/public_html/wp-content/plugins/woocommerce/includes/shipping/flat-rate/class-wc-shipping-flat-rate.php(84): apply_filters() #4 /home/aromende/domains/aromenderalpen.de/public_html/wp-content/plugins/woocommerce/includes/shipping/flat-rate/class-wc-shipping-flat-rate.php(174): WC_Shipping_Flat_Rate->evaluate_cost() #5 /home/aromende/domains/aromenderalpen.de/public_html/wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-shipping-method.php(259): WC_Shipping_Flat_Rate->calculate_shipping() #6 /home/aromende/domains/aromenderalpen.de/public_html/wp-content/plugins/woocommerce/includes/class-wc-shipping.php(353): WC_Shipping_Method->get_rates_for_package() #7 /home/aromende/domains/aromenderalpen.de/public_html/wp-content/plugins/woocommerce/includes/class-wc-shipping.php(261): WC_Shipping->calculate_shipping_for_package() #8 /home/aromende/domains/aromenderalpen.de/public_html/wp-content/plugins/woocommerce/includes/class-wc-cart.php(1517): WC_Shipping->calculate_shipping() #9 /home/aromende/domains/aromenderalpen.de/public_html/wp-content/plugins/woocommerce/includes/class-wc-cart-totals.php(352): WC_Cart->calculate_shipping() #10 /home/aromende/domains/aromenderalpen.de/public_html/wp-content/plugins/woocommerce/includes/class-wc-cart-totals.php(856): WC_Cart_Totals->get_shipping_from_cart() #11 /home/aromende/domains/aromenderalpen.de/public_html/wp-content/plugins/woocommerce/includes/class-wc-cart-totals.php(148): WC_Cart_Totals->calculate_shipping_totals() #12 /home/aromende/domains/aromenderalpen.de/public_html/wp-content/plugins/woocommerce/includes/class-wc-cart-totals.php(138): WC_Cart_Totals->calculate() #13 /home/aromende/domains/aromenderalpen.de/public_html/wp-content/plugins/woocommerce/includes/class-wc-cart.php(1465): WC_Cart_Totals->__construct() #14 /home/aromende/domains/aromenderalpen.de/public_html/wp-content/plugins/woocommerce-multilingual/inc/currencies/class-wcml-multi-currency-prices.php(587): WC_Cart->calculate_totals() #15 /home/aromende/domains/aromenderalpen.de/public_html/wp-includes/class-wp-hook.php(324): WCML_Multi_Currency_Prices->recalculate_totals() #16 /home/aromende/domains/aromenderalpen.de/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters() #17 /home/aromende/domains/aromenderalpen.de/public_html/wp-includes/plugin.php(517): WP_Hook->do_action() #18 /home/aromende/domains/aromenderalpen.de/public_html/wp-content/plugins/woocommerce/includes/class-wc-cart-session.php(285): do_action() #19 /home/aromende/domains/aromenderalpen.de/public_html/wp-includes/class-wp-hook.php(324): WC_Cart_Session->get_cart_from_session() #20 /home/aromende/domains/aromenderalpen.de/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters() #21 /home/aromende/domains/aromenderalpen.de/public_html/wp-includes/plugin.php(517): WP_Hook->do_action() #22 /home/aromende/domains/aromenderalpen.de/public_html/wp-settings.php(749): do_action() #23 /home/aromende/domains/aromenderalpen.de/public_html/wp-config.php(102): require_once('...') #24 /home/aromende/domains/aromenderalpen.de/public_html/wp-load.php(50): require_once('...') #25 /home/aromende/domains/aromenderalpen.de/public_html/wp-blog-header.php(13): require_once('...') #26 /home/aromende/domains/aromenderalpen.de/public_html/index.php(17): require('...') #27 {main} thrown in /home/aromende/domains/aromenderalpen.de/public_html/wp-content/plugins/woocommerce-multilingual/inc/currencies/class-wcml-multi-currency-prices.php on line 424

New threads created by Bruno Kos and linked to this one are listed below:

https://wpml.org/forums/topic/split-dedicated-stripe-options-for-the-country/

September 22, 2025 at 11:42 am #17421585

Bruno Kos
WPML Supporter since 12/2018

Languages: English (English ) German (Deutsch ) French (Français )

Timezone: Europe/Zagreb (GMT+02:00)

I’ll close this topic and open a new one for the other issue, since our support rule is to handle one issue at a time.