• Resolved jamesrose12345

    (@jamesrose12345)


    Hello. Hopefully someone knowledgeable can help me, please. My website is paralyzed by the woocommerce plugin, when I activate it it causes a fatal error and the site breaks, if i deactivate the plugin the website is visible and functions correctly but without our online shop. We really need the online shop working as its the main purpose of the website. If anyone knows how to solve it, I would appreciate any help you could give. It all started from the last WooCommerce update. The error message i get is as follows:

    Fatal error: Uncaught UnexpectedValueException: RecursiveDirectoryIterator::__construct(/homepages/33/d678333032/htdocs/clickandbuilds/FluePipesDirect/wp-content/plugins/woocommerce/packages/woocommerce-blocks/build/vendors–cart-blocks): Failed to open directory: Permission denied in /homepages/33/d678333032/htdocs/clickandbuilds/FluePipesDirect/wp-content/plugins/woocommerce/packages/woocommerce-blocks/src/BlockTypes/AbstractBlock.php:188 Stack trace: #0 /homepages/33/d678333032/htdocs/clickandbuilds/FluePipesDirect/wp-content/plugins/woocommerce/packages/woocommerce-blocks/src/BlockTypes/AbstractBlock.php(188): RecursiveDirectoryIterator->__construct(‘/homepages/33/d…’) #1 /homepages/33/d678333032/htdocs/clickandbuilds/FluePipesDirect/wp-content/plugins/woocommerce/packages/woocommerce-blocks/src/BlockTypes/Cart.php(252): Automattic\WooCommerce\Blocks\BlockTypes\AbstractBlock->get_chunks_paths(‘vendors–cart-b…’) #2 /homepages/33/d678333032/htdocs/clickandbuilds/FluePipesDirect/wp-content/plugins/woocommerce/packages/woocommerce-blocks/src/BlockTypes/AbstractBlock.php(115): Automattic\WooCommerce\Blocks\BlockTypes\Cart->register_block_type_assets() #3 /homepages/33/d678333032/htdocs/clickandbuilds/FluePipesDirect/wp-content/plugins/woocommerce/packages/woocommerce-blocks/src/BlockTypes/AbstractBlock.php(70): Automattic\WooCommerce\Blocks\BlockTypes\AbstractBlock->initialize() #4 /homepages/33/d678333032/htdocs/clickandbuilds/FluePipesDirect/wp-content/plugins/woocommerce/packages/woocommerce-blocks/src/BlockTypesController.php(64): Automattic\WooCommerce\Blocks\BlockTypes\AbstractBlock->__construct(Object(Automattic\WooCommerce\Blocks\Assets\Api), Object(Automattic\WooCommerce\Blocks\Assets\AssetDataRegistry), Object(Automattic\WooCommerce\Blocks\Integrations\IntegrationRegistry)) #5 /homepages/33/d678333032/htdocs/clickandbuilds/FluePipesDirect/wp-includes/class-wp-hook.php(308): Automattic\WooCommerce\Blocks\BlockTypesController->register_blocks(”) #6 /homepages/33/d678333032/htdocs/clickandbuilds/FluePipesDirect/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters(NULL, Array) #7 /homepages/33/d678333032/htdocs/clickandbuilds/FluePipesDirect/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #8 /homepages/33/d678333032/htdocs/clickandbuilds/FluePipesDirect/wp-settings.php(623): do_action(‘init’) #9 /homepages/33/d678333032/htdocs/clickandbuilds/FluePipesDirect/wp-config.php(81): require_once(‘/homepages/33/d…’) #10 /homepages/33/d678333032/htdocs/clickandbuilds/FluePipesDirect/wp-load.php(50): require_once(‘/homepages/33/d…’) #11 /homepages/33/d678333032/htdocs/clickandbuilds/FluePipesDirect/wp-admin/admin.php(34): require_once(‘/homepages/33/d…’) #12 /homepages/33/d678333032/htdocs/clickandbuilds/FluePipesDirect/wp-admin/plugins.php(10): require_once(‘/homepages/33/d…’) #13 {main} thrown in /homepages/33/d678333032/htdocs/clickandbuilds/FluePipesDirect/wp-content/plugins/woocommerce/packages/woocommerce-blocks/src/BlockTypes/AbstractBlock.php on line 188

    There has been a critical error on this website, putting it in recovery mode. Please check the Themes and Plugins screens for more details. If you just installed or updated a theme or plugin, check the relevant page for that first.

    Learn more about troubleshooting WordPress.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi @jamesrose12345

    Thanks for reaching out!

    I am sorry to hear that you are experiencing a fatal error on your site when activating the WooCommerce plugin.

    Based on the error logs, it seems that the issue is related to the file permissions of the woocommerce-blocks directory. To fix this, you will need to update the permissions for the mentioned directory and its contents. Here’s a helpful article on How to Fix File and Folder Permissions Error in WordPress.

    After you’ve updated the file permissions, please try to activate WooCommerce again and see if the issue 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!

    Hello,

    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.

    Thanks.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘WooCommerce Fatal Error after auto update’ is closed to new replies.