Skip Navigation

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.

No supporters are available to work today on this forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.

Tagged: 

This topic contains 5 replies, has 2 voices.

Last updated by Waqas Bin Hasan 1 year, 8 months ago.

Assisted by: Waqas Bin Hasan.

Author Posts
March 2, 2023 at 10:37 am #13153447

natalijaV-2

I am trying to:

Templates - Saved templates - Single product - preview.

Templates - Single product, when you click to view, a critical website error appears (attached). However, it appears only in Lithuanian, when you press the same button in English or Russian it does not happen. I tried to delete and make a new one, but it doesn't help.

This error does not occur if the LiteSpeed ​​cache plugin is disabled.

I've contacted Elementor support - I'm attaching their response:
" Hi Natalija,

This only happens when you click on the view button in the Saved Templates tab but if you edit it with Elementor and preview it there is no critical error. This could also be related to a conflict between WPML and WooCommerce since this only happens to a translated page.

Could you please try to reach out to the WPML support team and let them know what's happening? They might be able to provide you with a possible fix or an alternative.

Thank you for your patience and understanding.

Kind regards,
Rica"

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

I also add the php code error:
2023-03-02T05:35:20+00:00 CRITICAL Klaidos žinutė: Uncaught Error: Call to a member function is_type() on bool in /home/u566806793/domains/telesante.lt/public_html/wp-content/plugins/woocommerce-product-bundles/includes/class-wc-pb-display.php:398
Stack trace:
#0 /home/u566806793/domains/telesante.lt/public_html/wp-includes/class-wp-hook.php(308): WC_PB_Display->add_edit_in_cart_notice('')
#1 /home/u566806793/domains/telesante.lt/public_html/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters('', Array)
#2 /home/u566806793/domains/telesante.lt/public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
#3 /home/u566806793/domains/telesante.lt/public_html/wp-content/plugins/elementor-pro/modules/woocommerce/documents/product.php(117): do_action('woocommerce_bef...')
#4 /home/u566806793/domains/telesante.lt/public_html/wp-content/plugins/elementor-pro/modules/theme-builder/documents/theme-document.php(156): ElementorPro\Modules\Woocommerce\Documents\Product->before_get_content()
#5 /home/u566806793/domains/telesante.lt/public_html/wp-content/plugi (rasta faile /home/u566806793/domains/telesante.lt/public_html/wp-content/plugins/woocommerce-product-bundles/includes/class-wc-pb-display.php, eilutės numeris 398)

Instead, I got:

error log.png
critical error.png
preview.jpg
March 2, 2023 at 1:00 pm #13155087

Waqas Bin Hasan
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Hi,

Thank you for contacting the support.

From the error looks like it is coming from "woocommerce-product-bundles" plugin and trace isn't pointing anything related to WPML.

However, I checked that you are using an older version of the said plugin, while current version is 6.18.1 (https://woocommerce.com/products/product-bundles/).

Before proceeding further, may I ask you to try the following?

IMPORTANT: Take full backup of your website and database beforehand. It is highly advised to try the following on a staging/dev site first, so your live website isn't compromised.

- Update the said plugin to the latest version, and check for the issue.
- Update all other plugins and theme to the latest version as needed, and check for the issue.
- If problem continues to appear, deactivate all plugins except WPML and its addons and check for the issue. If you see the problem is still there then continue with the following steps. Otherwise, I'll advise to contact the above mentioned plugin author for a solution.
- Activate each plugin one-by-one, while keeping check on the issue after a plugin is activated. This way you'll be able to pinpoint a plugin having a conflict (or problem), if any.
- If the problem persists, repeat the above steps with a default theme of WordPress (i.e. 2023).
- Also check the browser's console for any JavaScript errors. If you find any, copy that in your next reply. See https://wordpress.org/support/article/using-your-browser-to-diagnose-javascript-errors/ for details on how to find these errors.

Regards.

March 2, 2023 at 2:00 pm #13155705

natalijaV-2

Hi,
Thanks for the reply
woocommerce-product-bundles - I saw this one. I don't seem to use this plugin, I tried to disable it, but not uninstall, the error remains. Probably need to buy and try to update? Should I uninstall it?

6e4e676a.js:9 [ANALYTICS DEBUGGER] v2.0.2 [David Vallejo > @thyng] ttl:1625.60ms
js:1 Failed to load resource: net::ERR_BLOCKED_BY_CLIENT
jquery-migrate.min.js?ver=3.3.2:2 JQMIGRATE: Migrate is installed, version 3.3.2
telesante.lt/:1 Failed to load resource: the server responded with a status of 500 ()

debug.jpg
March 2, 2023 at 2:19 pm #13155965

natalijaV-2

I deleted unused plugins. Now the error looks like this:

2023-03-02T14:17:59+00:00 CRITICAL Klaidos žinutė: Uncaught Error: Call to a member function is_type() on bool in /home/u566806793/domains/telesante.lt/public_html/wp-content/plugins/woocommerce-google-analytics-integration/includes/class-wc-google-gtag-js.php:47
Stack trace:
#0 /home/u566806793/domains/telesante.lt/public_html/wp-includes/class-wp-hook.php(308): WC_Google_Gtag_JS->setup_frontend_scripts('')
#1 /home/u566806793/domains/telesante.lt/public_html/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters(NULL, Array)
#2 /home/u566806793/domains/telesante.lt/public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
#3 /home/u566806793/domains/telesante.lt/public_html/wp-content/plugins/elementor-pro/modules/woocommerce/documents/product.php(117): do_action('woocommerce_bef...')
#4 /home/u566806793/domains/telesante.lt/public_html/wp-content/plugins/elementor-pro/modules/theme-builder/documents/theme-document.php(156): ElementorPro\Modules\Woocommerce\Documents\Product->before_get_content()
#5 /home/u566806793/domains/telesante.lt/public_ (rasta faile /home/u566806793/domains/telesante.lt/public_html/wp-content/plugins/woocommerce-google-analytics-integration/includes/class-wc-google-gtag-js.php, eilutės numeris 47)

March 2, 2023 at 2:29 pm #13156035

natalijaV-2

I found the problem. This is this plugin - WooCommerce Google Analytics Integration
What would you advise to do? What could it be changed to?

March 3, 2023 at 6:50 am #13160687

Waqas Bin Hasan
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Hi,

Thank you for the updates.

The "500" error refers to "Internal Server Error" and this may be caused due to several reasons. To check this in detail you can enable debugging and log the errors. See https://wpml.org/documentation/support/debugging-wpml/ for details.

For the said plugin, I 'll advise to contact the plugin author and report issue on their support forum. I am not sure what should be good alternative, but I am sure there are several good ones out there.

Regards.