WooCommerce Multilingual & Multicurrency and Product Filter by WBW. We now deactivated the product filter and the WPML plugin works again. In debug.log I see the following error. How to solve?
03-May-2024 12:10:59 UTC] PHP Fatal error: Uncaught Error: Call to a member function raw_price_filter() on null in /home/simracewebshop/simracewebshop.com/public/wp-content/plugins/woocommerce-multilingual/inc/wcml-core-functions.php:110
Stack trace:
#0 /home/simracewebshop/simracewebshop.com/public/wp-content/plugins/woo-product-filter/modules/woofilters/mod.php(2204): wcml_convert_price()
#1 /home/simracewebshop/simracewebshop.com/public/wp-content/plugins/woo-product-filter/modules/woofilters/views/woofilters.php(2667): WoofiltersWpf->getCurrencyPrice()
#2 /home/simracewebshop/simracewebshop.com/public/wp-content/plugins/woo-product-filter/modules/woofilters/mod.php(3596): WoofiltersViewWpf->wpfGetFilteredPriceFromProductList()
#3 /home/simracewebshop/simracewebshop.com/public/wp-content/plugins/woo-product-filter/modules/woofilters/mod.php(3050): WoofiltersWpf->getExistsMore()
#4 /home/simracewebshop/simracewebshop.com/public/wp-content/plugins/woo-product-filter/modules/woofilters/views/woofilters.php(425): WoofiltersWpf->getFilterExistsItems()
#5 /home/simracewebshop/simracewebshop.com/public/wp-content/plugins/woo-product-filter/modules/woofilters/views/woofilters.php(664): WoofiltersViewWpf->setFilterExistsItems()
#6 /home/simracewebshop/simracewebshop.com/public/wp-content/plugins/woo-product-filter/modules/woofilters/views/woofilters.php(233): WoofiltersViewWpf->generateFiltersHtml()
#7 /home/simracewebshop/simracewebshop.com/public/wp-content/plugins/woo-product-filter/modules/woofilters/mod.php(2336): WoofiltersViewWpf->renderHtml()
#8 /home/simracewebshop/simracewebshop.com/public/wp-includes/shortcodes.php(433): WoofiltersWpf->render()
It doesn't mean it is necessarily incompatible, only that it has not been tested with WPML. If possible, please reach out to the plugin's author and ask them to join our go global program so we can test and include this plugin in our compatible list: https://wpml.org/documentation/support/go-global-program/
Also, since the issue seems to be related to compatibility between Product Filter by WBW and WPML. To pinpoint the exact cause, we need to isolate variables by replicating the issue in a sandbox environment:
Login link: hidden link
Here's what is needed to be done:
1- Install Essential Components Only: In the sandbox provided above, please install your theme and only the plugins necessary to replicate the issue. Avoid importing the entire site.
2- Set Up the Page and Configurations: Mirror your current setup that's causing the issue, focusing on the dynamic text, we only need the site to be partially replicated up to a point where we can debug this issue.
3- Notify Us Once Done: After replicating the issue in the sandbox, inform us through this ticket so we can proceed with further analysis.
The goal here is to identify if the problem is indeed a compatibility issue, reproducing it in a controlled environment.
We appreciate your cooperation in this matter. Let us know once you've set up the sandbox.
Best,
Mateus
The topic ‘[Closed] Fatal error on category page’ is closed to new replies.