• Resolved Fujyn

    (@arwah12)


    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 160

    this 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.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

    I 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

    • This topic was modified 3 years, 2 months ago by Fujyn.
    • This topic was modified 3 years, 2 months ago by Fujyn.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi @arwah12!

    In this case, to be sure which plugin is causing the conflict, you can perform a conflict test by temporarily switching your theme back to Storefront, disabling all plugins except WooCommerce and repeating the action that is causing the problem. Then re-enable all plugins one-by-one, until you find the one creating the conflict.

    If you can’t perform a conflict test on your live site, we recommend creating a staging site using the WP Staging plugin.

    You can find a more detailed explanation on how to do a conflict test here: https://docs.woocommerce.com/document/how-to-test-for-conflicts/.

    Once you find which plugin is causing the conflict, we recommend contacting the developer for further assistance on this issue.

    I hope this helps!

    Hi there,

    We haven’t heard back from you in a while, so I’m going to mark this as resolved – we’ll be here if and/or when you are ready to continue.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to fix about this error log’ is closed to new replies.