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 to see the link]
-
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
Hi @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 1 year, 1 month ago by hrn1995 (woo-hc).
Thanks for responding @aguinaldodarla as far as I see it there are TWO issues here which have combined to make the site broken.
- WooCommerce update failed leaving the lib folder missing.
- 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.
- This reply was modified 1 year, 1 month ago by mikewill34.
Hi @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 if you have any more questions down the line.
Have a wonderful day!
A good backup is worth it’s weight in gold 🙂
- The topic ‘lib folder is missing’ is closed to new replies.