• Resolved princeofabyss

    (@princeofabyss)


    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
Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter princeofabyss

    (@princeofabyss)

    Let me also add that this is happening even with no active pricing rules in ADP.

    Plugin Author algol.plus

    (@algolplus)

    Hello

    1. Do you see this error if cart is empty ?
    2. Can you edit bundle product and share screenshot of section “Bundled Products” ? my settings https://snipboard.io/wPBzSN.jpg
    • This reply was modified 7 months, 4 weeks ago by algol.plus.
    Thread Starter princeofabyss

    (@princeofabyss)

    Hi, thanks for your reply.

    1. The error appears in the single product page of the bundle. The cart isn’t involved in any way. I mean, it doesn’t matter whether it has products in it or not.
    2. https://prnt.sc/5kJuDwdUgq1D
    Plugin Author algol.plus

    (@algolplus)

    hello

    We fixed similiar bug for another bundle plugin, so everything is ok after I set 2.12 discount https://snipboard.io/VkaAbe.jpg

    If you submit ticket to https://algolplus.freshdesk.com/ – we’ll share fixed version .
    Otherwise – please wait till next week, when we’ll release new version.

    Thread Starter princeofabyss

    (@princeofabyss)

    So the problem was the decimal discounted price? Actually, in the regional settings of the site, a comma is used as a decimal separator and a dot as a thousands separator. Does it have to do with that? I’m just trying to understand!

    I’m OK with waiting I think, no need to rush.

    Plugin Author algol.plus

    (@algolplus)

    You misunderstand me, I didn’t mean regional settings .
    And I’m unsure if new version will solve the problem.

    WPC Product Bundles for WooCommerce — free or paid version?

    Thread Starter princeofabyss

    (@princeofabyss)

    It’s the latest free version; WPC Product Bundles for WooCommerce v8.0.2

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Incompatibility with WPC Product Bundles for WooCommerce’ is closed to new replies.