How to fix about this error log
-
Hi everybody,
How to fix about this error log?-
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 160this comes from my costum plugin,
the purpose of the plugin is to increase the price of the costum which is below the base price on one product page, if the price of the product is $0 then the price of the costum 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.pngDisplay after checking the price of the costume
https://i2.paste.pics/09669a8dfe81ec54979ae14071997626.pngHidden costume price, if the product is free or $0
https://i2.paste.pics/50b3166a1355d9a694940abf8bde916a.pngI know the error comes from one of the plugins that I use, this is a custom plugin that was done by a developer that I rented almost 2 years ago
I just don’t know where the error occurred, because I see the plugin is still working
Thank you
- The topic ‘How to fix about this error log’ is closed to new replies.