I'm experiencing a critical bug with WPC Composite Products that causes a PHP Fatal Error and a 500 Internal Server Error on the WooCommerce shop page (/store/) when logged in as administrator.
The error does NOT occur for guest visitors, only for logged-in admins, and only on the main shop page (is_shop() = true). Product pages and category pages work fine.
Error from debug.log:
PHP Fatal error: Uncaught Error: Call to undefined method WPCleverWooco::get_setting() in .../wpc-composite-products/includes/class-blocks.php on line 122
The crash is triggered by WooCommerce's 'All Products' block hydration via: WooCommerce Blocks → Hydration → AssetDataRegistry → AllProducts block → WPCleverWooco_Blocks->cart_item_data()
Deactivating WPC Composite Products resolves the issue immediately.
Environment: - WordPress with WooCommerce (latest) - WPC Composite Products (latest available version — no update available) - Theme: Astra - The shop page uses the WooCommerce 'All Products' Gutenberg block
Please patch the get_setting() method call in class-blocks.php line 122.
Hello,
I'm experiencing a critical bug with WPC Composite Products that causes a PHP Fatal Error and a 500 Internal Server Error on the WooCommerce shop page (/store/) when logged in as administrator.
The error does NOT occur for guest visitors, only for logged-in admins, and only on the main shop page (is_shop() = true). Product pages and category pages work fine.
Error from debug.log:
PHP Fatal error: Uncaught Error: Call to undefined method WPCleverWooco::get_setting() in .../wpc-composite-products/includes/class-blocks.php on line 122
The crash is triggered by WooCommerce's 'All Products' block hydration via:
WooCommerce Blocks → Hydration → AssetDataRegistry → AllProducts block → WPCleverWooco_Blocks->cart_item_data()
Deactivating WPC Composite Products resolves the issue immediately.
Environment:
- WordPress with WooCommerce (latest)
- WPC Composite Products (latest available version — no update available)
- Theme: Astra
- The shop page uses the WooCommerce 'All Products' Gutenberg block
Please patch the get_setting() method call in class-blocks.php line 122.
Thank you!
Hi Sistemas,
Thanks for informing us of this issue.
Please update our plugin to the latest version 7.8.1. I've fixed it.
Best regards,
Dustin
Thank u so much, i checked and its fixed