Title: lib folder is missing
Last modified: August 9, 2023

---

# lib folder is missing

 *  Resolved [mikewill34](https://wordpress.org/support/users/mikewill34/)
 * (@mikewill34)
 * [2 years, 9 months ago](https://wordpress.org/support/topic/lib-folder-is-missing/)
 * After the latest automatic update the lib folder is missng causing a FATAL crash
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Flib-folder-is-missing%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Thread Starter [mikewill34](https://wordpress.org/support/users/mikewill34/)
 * (@mikewill34)
 * [2 years, 9 months ago](https://wordpress.org/support/topic/lib-folder-is-missing/#post-16958405)
 * Here is the full stack trace that I get from the automated checker.
 * An error of type E_ERROR was caused in line 90 of the file /REDACTED/chem4word.
   co.uk.2020/wp-content/plugins/jetpack/vendor/jetpack-autoloader/class-php-autoloader.
   php. Error message: Uncaught Error: Failed opening required ‘/REDACTED/chem4word.
   co.uk.2020/wp-content/plugins/woocommerce/lib/packages/League/Container/Container.
   php’ (include_path=’.:/usr/lib/php8.1′) in /REDACTED/chem4word.co.uk.2020/wp-
   content/plugins/jetpack/vendor/jetpack-autoloader/class-php-autoloader.php:90
   
   Stack trace: 0 /REDACTED/chem4word.co.uk.2020/wp-content/plugins/woocommerce/
   src/Internal/DependencyManagement/ExtendedContainer.php(17): Automattic\Jetpack\
   Autoloader\jpf11009ded9fc4592b6a05b61ce272b3c_jetpackⓥ12_4\PHP_Autoloader::load_class()
   1 /REDACTED/chem4word.co.uk.2020/wp-content/plugins/jetpack/vendor/jetpack-autoloader/
   class-php-autoloader.php(90): require(‘/homepages/30/d…’) 2 /REDACTED/chem4word.
   co.uk.2020/wp-content/plugins/woocommerce/src/Container.php(83): Automattic\Jetpack\
   Autoloader\jpf11009ded9fc4592b6a05b61ce272b3c_jetpackⓥ12_4\PHP_Autoloader::load_class()
   3 /REDACTED/chem4word.co.uk.2020/wp-content/plugins/woocommerce/woocommerce.php(
   38): Automattic\WooCommerce\Container->__construct() 4 /REDACTED/chem4word.co.
   uk.2020/wp-settings.php(453): include_once(‘/homepages/30/d…’) 5 /REDACTED/chem4word.
   co.uk.2020/wp-config.php(82): require_once(‘/homepages/30/d…’) 6 /REDACTED/chem4word.
   co.uk.2020/wp-load.php(50): require_once(‘/homepages/30/d…’) 7 /REDACTED/chem4word.
   co.uk.2020/wp-login.php(12): require(‘/homepages/30/d…’) 8 {main}
 * thrown
 *  [hrn1995 (woo-hc)](https://wordpress.org/support/users/aguinaldodarla/)
 * (@aguinaldodarla)
 * [2 years, 9 months ago](https://wordpress.org/support/topic/lib-folder-is-missing/#post-16969199)
 * Hi [@mikewill34](https://wordpress.org/support/users/mikewill34/)
 * Thanks for reaching out and for providing us an error logs after WooCommerce 
   update to 8.0. The error message suggests that a required file `/REDACTED/chem4word.
   co.uk.2020/wp-content/plugins/woocommerce/lib/packages/League/Container/Container.
   php` is missing, which is causing the crash. The error originates from the Jetpack
   plugin’s autoloader trying to load a class that depends on this missing file.
 * First, since the error seems to be originating from the Jetpack plugin’s autoloader,
   you might want to make sure you’re using the latest version of Jetpack. If not,
   kindly update it.
 * If it does not help, if the `lib` folder is indeed missing, you might need to
   restore it. You can try downloading the WooCommerce plugin again to replace the
   plugin files on your server.
 * **Before you start**
 * Please make sure you have a good backup in place of your full site and database.
   If something goes wrong, it’s nice to know that you can restore your site.
   Cheers,
    -  This reply was modified 2 years, 9 months ago by [hrn1995 (woo-hc)](https://wordpress.org/support/users/aguinaldodarla/).
 *  Thread Starter [mikewill34](https://wordpress.org/support/users/mikewill34/)
 * (@mikewill34)
 * [2 years, 9 months ago](https://wordpress.org/support/topic/lib-folder-is-missing/#post-16969316)
 * Thanks for responding [@aguinaldodarla](https://wordpress.org/support/users/aguinaldodarla/)
   as far as I see it there are TWO issues here which have combined to make the 
   site broken.
    1. WooCommerce update failed leaving the lib folder missing.
    2. Jetpack is crashing when it encounters a missing file.
 * I have restored WooCommerce from an old backup, then manually updated to the 
   latest version. Site is now back up and running fully.
 * See here [https://m.facebook.com/story.php?story_fbid=pfbid0Q1K5q4zmc9YuYRhQQ8smv4Kv1BBJh4S3YwFCHGMEpwmwG2MCVwBU65FWwsxAM26Gl&id=1015796625](https://m.facebook.com/story.php?story_fbid=pfbid0Q1K5q4zmc9YuYRhQQ8smv4Kv1BBJh4S3YwFCHGMEpwmwG2MCVwBU65FWwsxAM26Gl&id=1015796625)
    -  This reply was modified 2 years, 9 months ago by [mikewill34](https://wordpress.org/support/users/mikewill34/).
 *  [hrn1995 (woo-hc)](https://wordpress.org/support/users/aguinaldodarla/)
 * (@aguinaldodarla)
 * [2 years, 9 months ago](https://wordpress.org/support/topic/lib-folder-is-missing/#post-16973226)
 * Hi [@mikewill34](https://wordpress.org/support/users/mikewill34/) 
   It’s great
   to know that you’ve managed to restore WooCommerce from an old backup and manually
   updated to the latest version. You did well! Restoring from a backup ensures 
   that all files, including the missing ‘lib’ folder, are reinstated. Then, manually
   updating to the latest version ensures that you have all the current features
   and security updates.
 * Regularly backing up your site can save you a lot of trouble.
 * I’m going to mark this thread as resolved, but please don’t hesitate to [start a new topic](https://wordpress.org/support/theme/storefront/#new-topic-0)
   if you have any more questions down the line.
 * Have a wonderful day!
 *  Thread Starter [mikewill34](https://wordpress.org/support/users/mikewill34/)
 * (@mikewill34)
 * [2 years, 9 months ago](https://wordpress.org/support/topic/lib-folder-is-missing/#post-16973521)
 * A good backup is worth it’s weight in gold 🙂

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

The topic ‘lib folder is missing’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce/assets/icon.svg?rev=3234504)
 * [WooCommerce](https://wordpress.org/plugins/woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [mikewill34](https://wordpress.org/support/users/mikewill34/)
 * Last activity: [2 years, 9 months ago](https://wordpress.org/support/topic/lib-folder-is-missing/#post-16973521)
 * Status: resolved