WooCommerce 4.4.0 has a fatal error – Xảy ra lỗi nghiêm trọng

WooCommerce 4.4.0 has a fatal error – Xảy ra lỗi nghiêm trọng

Mới đây, WooCommerce 4.4.0 nâng cấp lên phiên bản mới 4.4.0 thì đã xảy ra lỗi rất nghiêm trọng cho website.

  • Lỗi không truy cập vào trang chủ.
  • Lỗi không thể vào trang quản lý.
  • Lỗi không vào trang giỏ hàng/ thanh toán.
  • Xong đột với các plugin cache: WP Rocket
  • ………………………………………………….

Hiện tại đến thời điểm này vẫn chưa có cách khắc phục với phiên bản 4.4.0.

Vậy, nếu bạn đã lỡ lên WooCommerce 4.4.0 thì có 2 cách sauFatal Error after 4.4.0 update

WooCommerce 4.4.0 has fatal error
WooCommerce 4.4.0 has fatal error

Cách 1: Sửa lại các trang bị lỗi trong WooCommerce 4.4.0

Bạn có thể làm theo hướng dẫn sau từ nhà phát triển.

How to update outdated templates

We need to determine what templates to update, make a backup of old templates and then restore any customizations.

  1. Go to: WooCommerce > Status > System Status. Scroll to the end of the page where there is a list of templates overridden by your theme/child theme and a warning message that they need to be updated. For example, the templates form-pay.php and form-login.phph are outdated:
  1. Save a backup of the outdated template.
  2. Copy the default template from wp-content/plugins/woocommerce/templates/[path-to-the-template] and paste it in your theme folder found at: wp-content/themes/[path-to-theme]
  3. Open the template you pasted into the theme folder with a text editor of choice, such as Atom, Visual Code, BBEdit, Notepad++, and replicate any changes that you had to the previous template in your new, updated template file.

Cách 2: hạ về phiên bản cũ WooCommerce 4.3.0

Download phiên bản cũ tại link: https://wordpress.org/plugins/woocommerce/advanced/

Sau khi tải xong >>> Upload lên hosting vào vị trí của plugin >>> Extract ra là xong.

Trên diễn đàn https://wordpress.org/support/plugin/woocommerce/

Rất nhiều thành viên trên thế giới update lên đều bị lỗi hết, và mọi người vẫn chưa có cách khác phục, vẫn đang chờ nhà phát triển Automattic đưa ra bản cập nhật mới.

I want to roll back to older version of woocommerce. Please guide me how to do it.

If you want to roll back to older version of the plugin you can download from https://wordpress.org/plugins/woocommerce/advanced/ and do a manual install or use https://wordpress.org/plugins/wp-rollback/
but these would only roll back your files, if you want to load old data also, then you need backup file.
Always take a complete backup before proceeding with roll back.

If you’re looking to roll back, then the WP Rollback plugin is a great tool:

It’ll grab that previous version for you and install it.

Noted though, you can’t always roll back to previous versions if database changes have been made (i.e. don’t roll back from WooCommerce 4.x to 3.x) as you’re only modifying the plugin files and not the database.

Fatal Error after 4.4.0 update

Fatal error:
Declaration of Automattic\WooCommerce\Internal\DependencyManagement\ExtendedContainer::get($id, bool $new = false) must be compatible with League\Container\Container::get($alias, array $args = Array)
***plugins/woocommerce/src/Internal/DependencyManagement/ExtendedContainer.php on line 113

I’ve temporarily solved for now by rolling previous version 4.3.3

I had to rollback woocommerce .

Please, support team, we need a solution, ok?


Fatal Error: Conflict with “WP Rocket” plugin

It looks like the latest release(version 4.4.0) has a conflict with WP Rocket plugin in, maybe it’s not just limited to WP Rocket though.


WP Rocket 3.6.4 is available now for our customers to upgrade to it.

It fixes:

  • the WooCommerce 4.4.0 fatal error
  • prevents the PHP notice about the REST API

Thanks a lot for your patience!

You need to activate WP Rocket plugin, In order to update it… So either disable WooCommerce plugin for a minute and activate-update WP Rocket or remove WP Rocket from your website and download new version from their website and upload-activate it again.

Related Post

Leave a Reply

Your email address will not be published. Required fields are marked *

fifteen − eight =