• Resolved h-ford

    (@handford)


    Hi,

    I’m getting the following error many times a day in my log:

    CRITICAL Uncaught Error: Call to a member function get_id() on null in /home/fred/public_html/wp-content/plugins/advanced-dynamic-pricing-for-woocommerce/classes/class-wdp-frontend.php:753
    Stack trace:
    #0 /home/fred/public_html/wp-content/plugins/advanced-dynamic-pricing-for-woocommerce/classes/class-wdp-frontend.php(724): WDP_Frontend::make_wdp_cart_context_from_wc()
    #1 /home/fred/public_html/wp-content/plugins/advanced-dynamic-pricing-for-woocommerce/classes/class-wdp-frontend.php(572): WDP_Frontend::make_wdp_cart_from_wc()
    #2 /home/fred/public_html/wp-content/plugins/advanced-dynamic-pricing-for-woocommerce/classes/class-wdp-frontend.php(278): WDP_Frontend->get_initial_and_discounted_price(Object(WC_Product_Simple), 1)
    #3 /home/fred/public_html/wp-includes/class-wp-hook.php(286): WDP_Frontend->woocommerce_product_get_sale_price(”, Object(WC_Product_Simple))
    #4 /home/fred/public_html/wp-includes/plugin.php(208): WP_Hook->apply_filters(”, Array)
    #5 /home/fred/public_html/wp-content/plugi in /home/fred/public_html/wp-content/plugins/advanced-dynamic-pricing-for-woocommerce/classes/class-wdp-frontend.php on line 753

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

    (@algolplus)

    hi

    Could you visit >Woocommerce>Pricing Rules>Settings>System?
    Is option “Apply pricing rules to backend orders” OFF?

    thanks, Alex

    Thread Starter h-ford

    (@handford)

    The box is unticked.

    Plugin Author algol.plus

    (@algolplus)

    Woocommerce version ? 3.5.7?

    Are there any apps which use REST api ?

    Thread Starter h-ford

    (@handford)

    Yes, Woo 3.5.7

    Regarding REST – not sure. How can I tell?

    Plugin Author algol.plus

    (@algolplus)

    >Woocommerce>Settings>Advanced, tab “REST API”, list of keys should be empty.

    Thread Starter h-ford

    (@handford)

    There is one key in there, marked with our company name. Not entirely sure what it is for and its last access is marked ‘unknown’.

    Plugin Author algol.plus

    (@algolplus)

    thank you .

    could you submit ticket to helpdesk ? I’ll provide updated version this week.

    thanks, Alex

    I am seeing the same error:

    WC 3.6.2
    WP 5.1.1

    Uncaught Error: Call to a member function get_id() on null in /www/wp-content/plugins/advanced-dynamic-pricing-for-woocommerce/classes/class-wdp-frontend.php:753
    
    Stack trace:
    #0 /www/wp-content/plugins/advanced-dynamic-pricing-for-woocommerce/classes/class-wdp-frontend.php(724): WDP_Frontend::make_wdp_cart_context_from_wc()
    #1 /www/wp-content/plugins/advanced-dynamic-pricing-for-woocommerce/classes/class-wdp-frontend.php(572): WDP_Frontend::make_wdp_cart_from_wc()
    #2 /www/wp-content/plugins/advanced-dynamic-pricing-for-woocommerce/classes/class-wdp-frontend.php(241): WDP_Frontend->get_initial_and_discounted_price(Object(WC_Product_Simple), 1)
    #3 /www/wp-includes/class-wp-hook.php(286): WDP_Frontend->woocommerce_get_price_html('<span class="wo...', Object(WC_Product_Simple))
    #4 /www/wp-includes/plugin.php(208): WP_Hook->apply_filters('<span class="wo...', Array)
    #5 /www/wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-product.php(1740): apply_filters('woocommerce_get...', '<span class="wo...', Obj in /www/wp-content/plugins/advanced-dynamic-pricing-for-woocommerce/classes/class-wdp-frontend.php on line 753

    Any updates on this issue?

    Thank you,
    Will

    • This reply was modified 5 years, 9 months ago by willgorham.
    Plugin Author algol.plus

    (@algolplus)

    Hello Will

    We will release updated version at next week.

    You can get beta today too – submit ticket to helpdesk.

    @algolplus Thank you for the quick response – I’ll look forward to the update ??

    Getting an error as well. I received an email from WordPress.

    .
    .
    An error of type E_ERROR was caused in line 753 of the file /home3/moggysta/public_html/wp-content/plugins/advanced-dynamic-pricing-for-woocommerce/classes/class-wdp-frontend.php. Error message: Uncaught Error: Call to a member function get_id() on null in /home3/moggysta/public_html/wp-content/plugins/advanced-dynamic-pricing-for-woocommerce/classes/class-wdp-frontend.php:753
    Stack trace:
    #0 /home3/moggysta/public_html/wp-content/plugins/advanced-dynamic-pricing-for-woocommerce/classes/class-wdp-frontend.php(724): WDP_Frontend::make_wdp_cart_context_from_wc()
    #1 /home3/moggysta/public_html/wp-content/plugins/advanced-dynamic-pricing-for-woocommerce/classes/class-wdp-frontend.php(572): WDP_Frontend::make_wdp_cart_from_wc()
    #2 /home3/moggysta/public_html/wp-content/plugins/advanced-dynamic-pricing-for-woocommerce/classes/class-wdp-frontend.php(241): WDP_Frontend->get_initial_and_discounted_price(Object(WC_Product_Variation), 1)
    #3 /home3/moggysta/public_html/wp-content/plugins/advanced-dynamic-pricing-for-woocommerce/classes/class-wdp-frontend.php(162): WDP_Frontend->woocommerce_get_price_html(”, Object(WC_Product_Variation))
    #4 /home3/moggysta/public_html/wp-includes/class-wp-hook.php(286): WDP_Fron

    Plugin Author algol.plus

    (@algolplus)

    Hello

    We already fixed this bug, but we delay release still.

    You can get beta today – submit ticket to helpdesk.
    thanks, Alex

    Plugin Author algol.plus

    (@algolplus)

    The bug was fixed in version 2.0.0

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘Critical error in log’ is closed to new replies.