Title: Critical error in log
Last modified: April 15, 2019

---

# Critical error in log

 *  Resolved [h-ford](https://wordpress.org/support/users/handford/)
 * (@handford)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/critical-error-in-log/)
 * 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](https://wordpress.org/support/users/algolplus/)
 * (@algolplus)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/critical-error-in-log/#post-11430247)
 * hi
 * Could you visit >Woocommerce>Pricing Rules>Settings>System?
    Is option “Apply
   pricing rules to backend orders” OFF?
 * thanks, Alex
 *  Thread Starter [h-ford](https://wordpress.org/support/users/handford/)
 * (@handford)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/critical-error-in-log/#post-11430272)
 * The box is unticked.
 *  Plugin Author [algol.plus](https://wordpress.org/support/users/algolplus/)
 * (@algolplus)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/critical-error-in-log/#post-11430324)
 * Woocommerce version ? 3.5.7?
 * Are there any apps which use REST api ?
 *  Thread Starter [h-ford](https://wordpress.org/support/users/handford/)
 * (@handford)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/critical-error-in-log/#post-11430385)
 * Yes, Woo 3.5.7
 * Regarding REST – not sure. How can I tell?
 *  Plugin Author [algol.plus](https://wordpress.org/support/users/algolplus/)
 * (@algolplus)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/critical-error-in-log/#post-11430398)
 * >Woocommerce>Settings>Advanced, tab “REST API”, list of keys should be empty.
 *  Thread Starter [h-ford](https://wordpress.org/support/users/handford/)
 * (@handford)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/critical-error-in-log/#post-11430468)
 * 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](https://wordpress.org/support/users/algolplus/)
 * (@algolplus)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/critical-error-in-log/#post-11430749)
 * thank you .
 * could you submit ticket to [helpdesk ](https://algolplus.freshdesk.com/)? I’ll
   provide updated version this week.
 * thanks, Alex
 *  [willgorham](https://wordpress.org/support/users/willgorham/)
 * (@willgorham)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/critical-error-in-log/#post-11509755)
 * 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 7 years, 2 months ago by [willgorham](https://wordpress.org/support/users/willgorham/).
 *  Plugin Author [algol.plus](https://wordpress.org/support/users/algolplus/)
 * (@algolplus)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/critical-error-in-log/#post-11509803)
 * Hello Will
 * We will release updated version at next week.
 * You can get beta today too – submit ticket to [helpdesk](https://algolplus.freshdesk.com).
 *  [willgorham](https://wordpress.org/support/users/willgorham/)
 * (@willgorham)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/critical-error-in-log/#post-11511035)
 * [@algolplus](https://wordpress.org/support/users/algolplus/) Thank you for the
   quick response – I’ll look forward to the update 🙂
 *  [weeds1968](https://wordpress.org/support/users/weeds1968/)
 * (@weeds1968)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/critical-error-in-log/#post-11549279)
 * 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](https://wordpress.org/support/users/algolplus/)
 * (@algolplus)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/critical-error-in-log/#post-11549505)
 * Hello
 * We already fixed this bug, but we delay release still.
 * You can get beta today – submit ticket to [helpdesk](https://algolplus.freshdesk.com/).
   
   thanks, Alex
 *  Plugin Author [algol.plus](https://wordpress.org/support/users/algolplus/)
 * (@algolplus)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/critical-error-in-log/#post-11599529)
 * 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.

 * ![](https://ps.w.org/advanced-dynamic-pricing-for-woocommerce/assets/icon-256x256.
   png?rev=1984204)
 * [Advanced Dynamic Pricing and Discount Rules for WooCommerce](https://wordpress.org/plugins/advanced-dynamic-pricing-for-woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/advanced-dynamic-pricing-for-woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/advanced-dynamic-pricing-for-woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/advanced-dynamic-pricing-for-woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/advanced-dynamic-pricing-for-woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/advanced-dynamic-pricing-for-woocommerce/reviews/)

 * 13 replies
 * 4 participants
 * Last reply from: [algol.plus](https://wordpress.org/support/users/algolplus/)
 * Last activity: [7 years, 1 month ago](https://wordpress.org/support/topic/critical-error-in-log/#post-11599529)
 * Status: resolved