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 1 reply, has 2 voices.

Last updated by Bobby 1 year, 3 months ago.

Assigned support staff: Bobby.

Author Posts
March 4, 2019 at 1:50 pm


Hello ?
Please help. I have a WooCommerce shop with WPML in English Danish and German.
Some of my products come in different sizes. When I first translated the product pages, it worked fine.
But one day I had to come back to make some changes, I realized the the text in my variable products where white, and page builder buttons where missing. On the frontend the products looked fine.
Now I have deleted some of the products and try to write them again, but I can’t. when I enter the translation of the products I get an error:

Warning: Invalid argument supplied for foreach() in /var/www/ on line 1498

Warning: Invalid argument supplied for foreach() in /var/www/ on line 1498

Warning: Invalid argument supplied for foreach() in /var/www/ on line 1498

Fatal error: Uncaught Error: Call to a member function get_id() on null in /var/www/ Stack trace: #0 /var/www/ yourpay_viabill_js(‘<span class=”wo…’, Object(WC_Product_Variation)) #1 /var/www/ WP_Hook->apply_filters(‘<span class=”wo…’, Array) #2 /var/www/ apply_filters(‘woocommerce_get…’, ‘<span class=”wo…’, Object(WC_Product_Variation)) #3 /var/www/ WC_Product->get_price_html() #4 /var/www/ WC_Product_Variable->get_available_variation(Object(WC_Product_Variation)) #5 /var/www/ in /var/www/ on line 103

I have tried to deactivate all plugins. When I deactivate the currency switcher the white text and buttons turn back, but I still get the error message when trying to translate the product.
Please help.
Thank you
Best regard

Link to a page where the issue can be seen:
hidden link

March 5, 2019 at 8:31 pm #3276017


Languages: English (English )

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

Hi There,

the reason you are getting the white screen or a screen with just an error is because there is a fatal error .

from the above error you have shared it points to the following Plugin : Yourpay Payment Platform


what are your results when you just deactivate this plugin ?

The topic ‘[Closed] Error when trying to translate variable products’ is closed to new replies.