Incompatibility with WPC Product Bundles for WooCommerce
-
There is a compatibility issue with the plugin WPC Product Bundles for WooCommerce. More specifically, for some bundles (but not all) that you create with the aforementioned plugin, you get a fatal error 2-3 times at average out of 10 page reloads when in the single product page of the bundle. The error involves the file advanced-dynamic-pricing-for-woocommerce/BaseVersion/Includes/Compatibility/Container/WpcBundleCmp.php at ~ln135 (
$price = $bundledProduct->get_price('edit');
), but I suspect the actual problem is one line above ($bundledProduct = CacheHelper::getWcProduct($bundleItem['id']);
) and it involves some caching issue. But of course I’ll leave the debugging to you. The error is:[03-Apr-2024 19:30:17 UTC] PHP Fatal error: Uncaught Error: Call to a member function get_price() on bool in /home/www/[folder]/[domain]/www/wp-content/plugins/advanced-dynamic-pricing-for-woocommerce/BaseVersion/Includes/Compatibility/Container/WpcBundleCmp.php:135 Stack trace: #0 [internal function]: ADP\BaseVersion\Includes\Compatibility\Container\WpcBundleCmp->ADP\BaseVersion\Includes\Compatibility\Container\{closure}(Array) #1 /home/www/[folder]/[domain]/www/wp-content/plugins/advanced-dynamic-pricing-for-woocommerce/BaseVersion/Includes/Compatibility/Container/WpcBundleCmp.php(145): array_map(Object(Closure), Array) #2 /home/www/[folder]/[domain]/www/wp-content/plugins/advanced-dynamic-pricing-for-woocommerce/BaseVersion/Includes/Compatibility/Container/AbstractContainerCompatibility.php(106): ADP\BaseVersion\Includes\Compatibility\Container\WpcBundleCmp->getListOfPartsOfContainerFromContainerProduct(Object(WC_Product_Woosb)) #3 /home/www/[folder]/[domain]/www/wp-content/plugins/advanced-dynamic-pricing-for-woocommerce/BaseVer in /home/www/[folder]/[domain]/www/wp-content/plugins/advanced-dynamic-pricing-for-woocommerce/BaseVersion/Includes/Compatibility/Container/WpcBundleCmp.php on line 135
- The topic ‘Incompatibility with WPC Product Bundles for WooCommerce’ is closed to new replies.