• Hi all
    can someone there tell me about this error log?

    <blockquote>2021-12-17T17:44:18+00:00 CRITICAL Uncaught Error: Call to a member function get() on null in /home/u245803354/domains/examplesite.com/public_html/wp-content/plugins/custom-examplesite/public/class-custom-examplesite-public.php:160
    Stack trace:
    #0 /home/u245803354/domains/examplesite.com/public_html/wp-includes/class-wp-hook.php(303): Custom_examplesite_Public->mwb_ch_woocommerce_get_price_html('<del aria-hidde...', Object(WC_Product_Simple))
    #1 /home/u245803354/domains/examplesite.com/public_html/wp-includes/plugin.php(189): WP_Hook->apply_filters('<del aria-hidde...', Array)
    #2 /home/u245803354/domains/examplesite.com/public_html/wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-product.php(1835): apply_filters('woocommerce_get...', '<del aria-hidde...', Object(WC_Product_Simple))
    #3 /home/u245803354/domains/examplesite.com/public_html/wp-content/plugins/woocommerce/templates/loop/price.php(25): WC_Product->get_price_html()
    #4 /home/u245803354/domains/examplesite.com/public_html/wp-content/plugins/woocommerce/includes/wc-core-functions.php(345): include('/home/u920 in /home/u245803354/domains/examplesite.com/public_html/wp-content/plugins/custom-examplesite/public/class-custom-examplesite-public.php on line 160</blockquote>

    this comes from my costume plugin,

    the purpose of the plugin is to increase the price of the costume which is below the base price on one product page, if the price of the product is $0 then the price of the costume is hidden

    I don’t see any error if I check the price and it works
    like this screenshot

    Price base view
    https://i2.paste.pics/489a70bf3c76c08509965dd39ef2a9ed.png

    Display after checking the price of the costume
    https://i2.paste.pics/09669a8dfe81ec54979ae14071997626.png

    Hidden costume price, if the product is free or $0
    https://i2.paste.pics/50b3166a1355d9a694940abf8bde916a.png

    Thank you

    • This topic was modified 2 years, 10 months ago by Fujyn.
    • This topic was modified 2 years, 10 months ago by Jan Dembowski. Reason: Moved to Fixing WordPress, this is not an Everything else WordPress topic
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Can someone there tell me about this error log?’ is closed to new replies.