• Resolved jqz

    (@jqz)


    As per title:

    PHP Fatal error: Uncaught Error: Call to undefined function is_product() in …/plugins/product-page-shipping-calculator-for-woocommerce/public/design.php on line 11

    The steps to reproduce seem to be quite specifc.

    If WooCommerce is simply deactivated, the problem does not seem to occur.

    But if the contents of the woocommerce plugin directory are removed, but the directory itself retained as an empty directory, it does.

    I think this may be partly due to a bug in WordPress in the way it detects if plugin can’t be loaded and deactivates it if it can’t (and fails in this sitation).

    However, it seems that more defence is needed against calling an undefined function.

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Call to undefined function is_product if WooCommerce not loaded’ is closed to new replies.