• Resolved jennifermcclure

    (@jennifermcclure)


    I’ve had a problem with WooCommerce before but now since the update yesterday, the site has a fatal error. I’ve deactivated it for now so that the site will at least function. The error wordpress sent is:

    An error of type E_ERROR was caused in line 47 of the file /var/www/wp-content/plugins/woocommerce/woocommerce.php. Error message: Uncaught Error: Class 'WooCommerce' not found in /var/www/wp-content/plugins/woocommerce/woocommerce.php:47
    Stack trace:
    #0 /var/www/wp-content/plugins/woocommerce/woocommerce.php(62): WC()
    #1 /var/www/wp-settings.php(447): include_once('/var/www/wp-con...')
    #2 /var/www/wp-config.php(91): require_once('/var/www/wp-set...')
    #3 /var/www/wp-load.php(50): require_once('/var/www/wp-con...')
    #4 /var/www/wp-login.php(12): require('/var/www/wp-loa...')
    #5 {main}
     thrown

    WordPress version 6.1.1
    Active theme: Shopkeeper (version 1.3.7)
    Current plugin: WooCommerce (version 7.2.0)
    PHP version 7.4.33

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

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hi @jennifermcclure

    Thanks for reaching out!

    It seems that the plugin installation/update is broken or corrupted.

    Can you please try again to reinstall the plugin by following our guide here: Installing and Uninstalling WooCommerce?

    You can also find the other plugin’s versions here: https://developer.woocommerce.com/releases/

    Hope this helps!

    Thread Starter jennifermcclure

    (@jennifermcclure)

    I went back in this morning and thought to try to activate it to see if maybe it worked itself out. When I did, I get this error now:

    Plugin could not be activated because it triggered a fatal error.

    Warning: include_once(/var/www/wp-content/plugins/woocommerce/includes/class-woocommerce.php): failed to open stream: No such file or directory in /var/www/wp-content/plugins/woocommerce/woocommerce.php on line 34

    Warning: include_once(): Failed opening ‘/var/www/wp-content/plugins/woocommerce/includes/class-woocommerce.php’ for inclusion (include_path=’.:’) in /var/www/wp-content/plugins/woocommerce/woocommerce.php on line 34

    Fatal error: Uncaught Error: Class ‘WooCommerce’ not found in /var/www/wp-content/plugins/woocommerce/woocommerce.php:47 Stack trace: #0 /var/www/wp-content/plugins/woocommerce/woocommerce.php(62): WC() #1 /var/www/wp-admin/includes/plugin.php(2314): include_once(‘/var/www/wp-con…’) #2 /var/www/wp-admin/plugins.php(192): plugin_sandbox_scrape(‘woocommerce/woo…’) #3 {main} thrown in /var/www/wp-content/plugins/woocommerce/woocommerce.php on line 47

    Godaddy says this is a PHP issue and I’ll need a developer to fix it. Please tell me that is not the case.

    Hi @jennifermcclure

    Thanks for sharing the error logs. Just to confirm that you’ve followed the instructions on this support documentation to first, uninstall WooCommerce on your site? Then, make a clean installation afterwards?

    If so and you still received the same error message above, please share your System Status Report that you can find via WooCommerce > Status. Select Get system report and then Copy for support. Once you’ve done that, you can paste it into your reply here.

    Thanks!

    Thread Starter jennifermcclure

    (@jennifermcclure)

    There was an update and once it updated and did something with the database, it seems to be working properly. I am now getting this at the top but the theme is all updated.

    Your theme (Shopkeeper) contains outdated copies of some WooCommerce template files. These files may need updating to ensure they are compatible with the current version of WooCommerce. Suggestions to fix this:

    1. Update your theme to the latest version. If no update is available contact your theme author asking about compatibility with the current WooCommerce version.
    2. If you copied over a template file to change something, then you will need to copy the new version of the template and apply your changes again.

    Hi @jennifermcclure

    There was an update and once it updated and did something with the database, it seems to be working properly.

    I’m glad that updating the plugin resolved your issue here.

    Your theme (Shopkeeper) contains outdated copies of some WooCommerce template files. 

    Please update outdated templates on your site by following our guide here: Fixing Outdated WooCommerce Templates

    Hope this helps!

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Fatal Error after update’ is closed to new replies.