• Resolved Vidish

    (@vidishp)


    Hello,

    I am working on my client’s site and there is following error triggered by Woocommerce. Can you please help me fix this?

    When seeking help with this issue, you may be asked for some of the following information:
    WordPress version 6.2
    Active theme: Flatsome Child (version 3.0)
    Current plugin: WooCommerce (version 7.7.0)
    PHP version 8.0.28

    Error Details

    An error of type E_ERROR was caused in line 242 of the file wp-content/plugins/woocommerce/includes/wccom-site/class-wc-wccom-site.php. Error message: Uncaught Error: Failed opening required ‘wp-content/plugins/woocommerce/includes/wccom-site/rest-api/class-wc-rest-wccom-site-installer-errors.php’ (include_path=’.:/opt/cpanel/ea-php80/root/usr/share/pear’) in wp-content/plugins/woocommerce/includes/wccom-site/class-wc-wccom-site.php:242

Viewing 1 replies (of 1 total)
  • Hi @vidishp

    Thanks for reaching out!

    I understand that you receive the following error message above when that is being triggered by WooCommerce.

    As a first step, can you please share if there were any updates or changes made on your site that triggered this error message? Like, plugin update, theme update, template update, etc?

    Based on the error details you provided, it seems like there is an issue with a missing file in the WooCommerce plugin. The file class-wc-rest-wccom-site-installer-errors.php cannot be found or opened, causing the error.

    To resolve this issue, please follow these steps:

    1. First, create a full backup of your client’s site, including the database, before making any changes. This is a crucial step to ensure you can restore the site if needed.
    2. Next, try reinstalling the WooCommerce plugin by deactivating and deleting the current WooCommerce plugin from the WordPress dashboard. Download and install the latest version of WooCommerce.
    3. After reinstalling the plugin, check if the error still persists.

    If yes, please try to switch to the default Storefront theme and only WooCommerce plugin is enabled and see if this works?

    If so, then this kind of problem is usually caused by your theme or a third-party plugin present on your site. We can run a conflict test to verify this. I’d recommend cloning your site to a staging environment and performing the tests described on this guide without modifying your live site or impacting customers. Many hosts provide staging facilities, so it’s worth checking in with them. It’s also possible to do it using the free WP Staging plugin.

    If this was caused by a third-party plugin present on your site, it would be best to reach out to the developers for further assistance here.

    If this did not resolve the issue, please share your System Status Report, that will help us further troubleshoot.

    You can find it 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.

    If you could also provide the fatal error logs (if any) under WooCommerce > Status > Logs.

    You could copy and paste your reply here or paste it via https://gist.github.com/ and send the link here.

    Let us know how it goes!

Viewing 1 replies (of 1 total)
  • The topic ‘Critical error with rest API’ is closed to new replies.