Skip to content Skip to sidebar

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

Problem:
If you're experiencing issues with your website loading indefinitely after changing the default language to German, while it works fine when set to English, we have identified a potential solution.
Solution:
We recommend modifying a specific piece of code in the YITH WooCommerce Product Bundles Premium plugin. Please navigate to

/wp-content/plugins/yith-woocommerce-product-bundles-premium/includes/objects/class.yith-wc-product-bundle-premium.php

and locate the code at line 186. Change the existing code from:

if ( isset( $sitepress ) ) {
    $found = false;
 
    $details = $sitepress->get_element_language_details( $id );
    if ( $details->trid ) {
        $current_id  = absint( $details->trid );
        $bundle_data = get_post_meta( $current_id, '_yith_wcpb_bundle_data', true );
        if ( !! $bundle_data ) {
            $id    = $current_id;
            $found = true;
        }
    }

to:

if ( isset( $sitepress ) ) {
    $found = false;
 
    $details = $sitepress->get_element_language_details( $id );
    if ( $details->element_id ) {
        $current_id  = absint( $details->element_id );
        $bundle_data = get_post_meta( $current_id, '_yith_wcpb_bundle_data', true );
        if ( !! $bundle_data ) {
            $id    = $current_id;
            $found = true;
        }
    }

This modification has been tested and found effective in resolving the loading issue. However, please note that this solution might become outdated or may not apply to your specific case. We highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins.

If this solution does not resolve your issue, please do not hesitate to open a new support ticket with us for further assistance at WPML Support Forum.

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

Last updated by Shekhar Bhandari 4 months, 1 week ago.

Assisted by: Shekhar Bhandari.

Author Posts
September 8, 2025 at 1:04 pm #17383675

panagiotisL-3

Hi Shekar,

That worked.

Thank you so much for your help. You're the best!

September 9, 2025 at 3:47 am #17385346

Shekhar Bhandari
WPML Supporter since 03/2015

Languages: English (English )

Timezone: Asia/Kathmandu (GMT+05:45)

Glad to know that it helped.