• Resolved rivmedia

    (@rivmedia)


    Getting this on 4.7 . Rolling back to 4.6.2 its fine :

    2024-03-26T01:33:15+00:00 Critical Uncaught TypeError: Argument 1 passed to ADP\BaseVersion\Includes\CartProcessor\ToPricingCartItemAdapter\SimpleToPricingCartItemAdapter::removeImmutableAdjustmentsFromInitialPrice() must be of the type float, null given, called in /home/stc/public_html/wp-content/plugins/advanced-dynamic-pricing-for-woocommerce/BaseVersion/Includes/CartProcessor/ToPricingCartItemAdapter/SimpleToPricingCartItemAdapter.php on line 58 and defined in /home/stc/public_html/wp-content/plugins/advanced-dynamic-pricing-for-woocommerce/BaseVersion/Includes/CartProcessor/ToPricingCartItemAdapter/SimpleToPricingCartItemAdapter.php:82 CONTEXT: {“error”:{“type”:1,”file”:”\/home\/stc\/public_html\/wp-content\/plugins\/advanced-dynamic-pricing-for-woocommerce\/BaseVersion\/Includes\/CartProcessor\/ToPricingCartItemAdapter\/SimpleToPricingCartItemAdapter.php”,”line”:82},”backtrace”:[“”,”#0 \/home\/stc\/public_html\/wp-content\/plugins\/advanced-dynamic-pricing-for-woocommerce\/BaseVersion\/Includes\/CartProcessor\/ToPricingCartItemAdapter\/SimpleToPricingCartItemAdapter.php(58): ADP\\BaseVersion\\Includes\\CartProcessor\\ToPricingCartItemAdapter\\SimpleToPricingCartItemAdapter->removeImmutableAdjustmentsFromInitialPrice(NULL, Object(ADP\\BaseVersion\\Includes\\WC\\WcCartItemFacade))”,”#1 \/home\/stc\/”]}

Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Author algol.plus

    (@algolplus)

    hello

    What page do you see this error at ? product page ? shop page ?

    Can you share the screenshot of the rule too ?

    Had the same issue. The 4.7 update caused the plugin, “WooCommerce Added To Cart Popup” not to work. After disabling the Popup Plugin, we got the fatal error below. Rolling back to 4.6.2 fixed it.

    Uncaught exception ‘TypeError’ with message ‘ADP\BaseVersion\Includes\CartProcessor\ToPricingCartItemAdapter\SimpleToPricingCartItemAdapter::removeImmutableAdjustmentsFromInitialPrice(): Argument #1 ($initialPrice) must be of type float, null given, called in /var/www/htdocs/html/wp-content/plugins/advanced-dynamic-pricing-for-woocommerce/BaseVersion/Includes/CartProcessor/ToPricingCartItemAdapter/SimpleToPricingCartItemAdapter.php on line 58’ in /var/www/htdocs/html/wp-content/plugins/advanced-dynamic-pricing-for-woocommerce/BaseVersion/Includes/CartProcessor/ToPricingCartItemAdapter/SimpleToPricingCartItemAdapter.php:82

    Plugin Author algol.plus

    (@algolplus)

    @simbeckhampson

    What page do you see this error at ? product page ? shop page ?

    Can you share the screenshot of the rule too ?

    It affected all the product pages, as on each page there is a button to activate the popup plugin for the cart or checkout. What rule do you want me to screenshot?

    Stack Trace error message:

    in ADP\BaseVersion\Includes\CartProcessor\ToPricingCartItemAdapter\SimpleToPricingCartItemAdapter::removeImmutableAdjustmentsFromInitialPrice called at /var/www/htdocs/html/wp-content/plugins/advanced-dynamic-pricing-for-woocommerce/BaseVersion/Includes/CartProcessor/ToPricingCartItemAdapter/SimpleToPricingCartItemAdapter.php (58)
    in ADP\BaseVersion\Includes\CartProcessor\ToPricingCartItemAdapter\SimpleToPricingCartItemAdapter::adapt called at /var/www/htdocs/html/wp-content/plugins/advanced-dynamic-pricing-for-woocommerce/BaseVersion/Includes/CartProcessor/ToPricingCartItemAdapter/SimpleToPricingCartItemAdapter.php (96)
    in ADP\BaseVersion\Includes\CartProcessor\ToPricingCartItemAdapter\SimpleToPricingCartItemAdapter::adaptFacadeAndPutIntoCart called at /var/www/htdocs/html/wp-content/plugins/advanced-dynamic-pricing-for-woocommerce/BaseVersion/Includes/CartProcessor/ToPricingCartItemAdapter/ToPricingCartItemAdapter.php (33)
    in ADP\BaseVersion\Includes\CartProcessor\ToPricingCartItemAdapter\ToPricingCartItemAdapter::adaptFacadeAndPutIntoCart called at /var/www/htdocs/html/wp-content/plugins/advanced-dynamic-pricing-for-woocommerce/BaseVersion/Includes/CartProcessor/CartBuilder.php (98)
    in ADP\BaseVersion\Includes\CartProcessor\CartBuilder::populateCart called at /var/www/htdocs/html/wp-content/plugins/advanced-dynamic-pricing-for-woocommerce/BaseVersion/Includes/CartProcessor/CartProcessor.php (494)
    in ADP\BaseVersion\Includes\CartProcessor\CartProcessor::process called at /var/www/htdocs/html/wp-content/plugins/advanced-dynamic-pricing-for-woocommerce/BaseVersion/Includes/Engine.php (193)
    in ADP\BaseVersion\Includes\Engine::process called at /var/www/htdocs/html/wp-content/plugins/advanced-dynamic-pricing-for-woocommerce/BaseVersion/Includes/Engine.php (164)
    in ADP\BaseVersion\Includes\Engine::firstTimeProcessCart called at /var/www/htdocs/html/wp-includes/class-wp-hook.php (324)
    in WP_Hook::apply_filters called at /var/www/htdocs/html/wp-includes/class-wp-hook.php (348)
    in WP_Hook::do_action called at /var/www/htdocs/html/wp-includes/plugin.php (517)
    in do_action called at /var/www/htdocs/html/wp-settings.php (665)
    in require_once called at /var/www/htdocs/wp-config.php (123)
    in require_once called at /var/www/htdocs/html/wp-load.php (55)
    in require_once called at /var/www/htdocs/html/wp-admin/admin-ajax.php (22)

    Plugin Author algol.plus

    (@algolplus)

    Thank you @simbeckhampson !

    Could you share your settings and rules too?

    You should visit >Pricing Rules>Tools>Backup and select necessary mode(Optons/All rules) in dropdown.

    You can submit them as new ticket to https://algolplus.freshdesk.com/

    It seems we missed this case during tests.

    Plugin Author algol.plus

    (@algolplus)

    @rivmedia Do you use any “product addons” plugin ?
    Which one ? probably “Flexible Product Fields PRO”?

    Ross

    (@rmdglasgow)

    also getting this same error.

    Plugin Author algol.plus

    (@algolplus)

    @rmdglasgow could you submit json report as new ticket to https://algolplus.freshdesk.com ?

    Please, visit >Pricing Rules>Tools to get this report.

    We still try to identify which plugin conflicts with ours.

    Plugin Author algol.plus

    (@algolplus)

    To whom having this problem — please submit ticket to https://algolplus.freshdesk.com/ and we’ll send you updated version

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Fatal errors in 4.7’ is closed to new replies.