Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support khungate

    (@khungate)

    Hi @dozza, thank you for your patience and providing the error log. That’s a strange one…based on the error message Call to undefined function wc_get_product(), it usually means that the WooCommerce plugin may not be installed or activated on your website. This specific function is a core part of WooCommerce, and if it is missing, it usually indicates that WooCommerce is either not present or not active.

    To resolve this issue, please check the following:

    1. Ensure that WooCommerce is installed on your website. You can do this by navigating to the Plugins section of your WordPress dashboard and looking for WooCommerce in the list of installed plugins.
    2. Make sure that WooCommerce is activated. If you find WooCommerce in the list but it is not active, click the Activate button.

    If WooCommerce is definitely installed and active, and you’re still encountering this error, there may be another issue at play. In that case, please enable remote diagnostics from the Settings tab and provide your store URL.

    Thread Starter dozza

    (@dozza)

    @khungate

    I can confirm that WooCommerce had become uninstalled. We had assumed it was caused by the error with your plugin. But it looks like maybe it was the other way around.

    We have no idea why WooCommerce became unavailable. The plug folder was still on the server, but not displayed in available plugins.

    We had to revert the site to a backup and all is ticking along OK now.

    Thread Starter dozza

    (@dozza)

    Hi.

    The same issue just happened again at 9:15pm tonight in UK. The client told me she saw a Fatal Error alert in back end. I’ve had the ‘Site expereincing Technical issue’ email as follows (previously it was with Mailchimp for WooCommerce (version 4.1)):
    ——————
    When seeking help with this issue, you may be asked for some of the following information:
    WordPress version 6.5.5
    Active theme: Divi Child (version 1.0.0)
    Current plugin: Mailchimp for WooCommerce (version 4.2)
    PHP version 7.4.33

    Error Details
    =============
    An error of type E_ERROR was caused in line 437 of the file /home/customer/www/stmildredschurch.org.uk/public_html/wp-content/plugins/mailchimp-for-woocommerce/includes/class-mailchimp-woocommerce-service.php. Error message: Uncaught Error: Call to a member function get_status() on bool in /home/customer/www/stmildredschurch.org.uk/public_html/wp-content/plugins/mailchimp-for-woocommerce/includes/class-mailchimp-woocommerce-service.php:437
    Stack trace:
    #0 /home/customer/www/stmildredschurch.org.uk/public_html/wp-includes/class-wp-hook.php(324): MailChimp_Service->handleProductMetaUpdated(560365, 21520, ‘_thumbnail_id’, 21522)
    #1 /home/customer/www/stmildredschurch.org.uk/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array)
    #2 /home/customer/www/stmildredschurch.org.uk/public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
    #3 /home/customer/www/stmildredschurch.org.uk/public_html/wp-includes/meta.php(156): do_action(‘added_post_meta’, 560365, 21520, ‘_thumbnail_id’, 21522)
    #4 /home/customer/www/stmildredschurch.org.uk/public_html/wp-includes/meta.php(252): add_metadata(‘post’, 21520, ‘_thumbnail_id’, 21522)
    #5 /home/customer/www/stmildredschurch.org.uk/public_html/wp-includes/post.php(262)
    ————————–

    I’ve just checked the site and can see that WooCommerce is still installed and active, but that the plugin can’t be selected with checkbox or deactivated on plugin screen (both are greyed out). What might this signify?

    I note that your plugin has auto updated to v4.2.1 when I just checked.

    Plugin Author ryanhungate

    (@ryanhungate)

    @dozza thanks for all the info on this – very helpful. v4.2.1 should address this problem you’re facing, so if that’s still a problem please let us know. I did just briefly look at the site and the plugin seems to load fine at this moment. If we can help with anything else just let us know!

    Thread Starter dozza

    (@dozza)

    OK. I was worried about WooCommerc being greyed-out but now notice that ”Note: this plugin cannot be deactivated or deleted until the plugins that require it are deactivated or deleted.” – so that explains it.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Fatal Error type E-ERROR’ is closed to new replies.