• Resolved garlick

    (@garlick)


    I woke up this morning to find that my entire site is broken, with a fatal error. WordPress version 6.3.1. There is a PDF Invoice plugin file named /class-wcpdf-admin.php missing (I ssh’d to my server and verified that the file is indeed not there). I suspect the plugin updated automatically last night and something broke. Here is what the page displays:

    Warning: include(/home2/[DELETED FOR PRIVACY]/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/vendor/composer/../../includes/class-wcpdf-admin.php): failed to open stream: No such file or directory in /home2/[DELETED FOR PRIVACY]/wp-content/plugins/woo-store-vacation/vendor/composer/ClassLoader.php on line 576
    
    Warning: include(): Failed opening '/home2/[DELETED FOR PRIVACY]/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/vendor/composer/../../includes/class-wcpdf-admin.php' for inclusion (include_path='.:/opt/cpanel/ea-php74/root/usr/share/pear') in /home2/[DELETED FOR PRIVACY]/wp-content/plugins/woo-store-vacation/vendor/composer/ClassLoader.php on line 576
    
    Fatal error: Uncaught Error: Class 'WPO\WC\PDF_Invoices\Admin' not found in /home2/[DELETED FOR PRIVACY]/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/woocommerce-pdf-invoices-packingslips.php:132 Stack trace: #0 /home2/[DELETED FOR PRIVACY]/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/woocommerce-pdf-invoices-packingslips.php(167): WPO_WCPDF->includes() #1 /home2/[DELETED FOR PRIVACY]/wp-includes/class-wp-hook.php(310): WPO_WCPDF->load_classes('') #2 /home2/[DELETED FOR PRIVACY]/wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters(NULL, Array) #3 /home2/[DELETED FOR PRIVACY]/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #4 /home2/[DELETED FOR PRIVACY]/wp-settings.php(495): do_action('plugins_loaded') #5 /home2/[DELETED FOR PRIVACY]/wp-config.php(98): require_once('/home2/[DELETED FOR PRIVACY]/...') #6 /home2/[DELETED FOR PRIVACY]/handworkclub.com/wp-load.php(50): require_once('/home2/[DELETED FOR PRIVACY]/...') #7 /home2/[DELETED FOR PRIVACY]/handworkclub.com/wp-blog-header.php(13): require_once('/home2/[DELETED FOR PRIVACY]/...' in /home2/[DELETED FOR PRIVACY]/handworkclub.com/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/woocommerce-pdf-invoices-packingslips.php on line 132

    I can’t even disable the plugin because I can’t access the site at all and I don’t know how to disable an individual plugin from an ssh/bash command line.

    I would appreciate any help, as this is a live site that takes orders. Thanks.

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter garlick

    (@garlick)

    Update: I renamed the plugin folder to woocommerce-pdf-invoices-packing-slips.DISABLED and now the site at least displays. However, there’s a bunch of text at the top now:

    Order allow,deny Deny from all Order allow,deny Allow from all RewriteEngine On RewriteBase / RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] Order allow,deny Deny from all Order allow,deny Allow from all RewriteEngine On RewriteBase / RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] Order allow,deny Deny from all Order allow,deny Allow from all RewriteEngine On RewriteBase / RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] Order allow,deny Deny from all Order allow,deny Allow from all RewriteEngine On RewriteBase / RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] Order allow,deny Deny from all Order allow,deny Allow from all RewriteEngine On RewriteBase / RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L]

    I can’t access /wp-admin either, as that is still throwing massive errors.

    • This reply was modified 1 year, 2 months ago by garlick.
    Plugin Contributor Yordan Soares

    (@yordansoares)

    Hi @garlick,

    Although it is very unusual, sometimes the severs or the download itself fail. So, my recommendation is to download a fresh zip file here and installing it again.

    Thread Starter garlick

    (@garlick)

    It turned out that a theme that had automatically updated the night before was the problem. I removed and then re-installed the theme and it fixed it. Thanks for the help.

    Plugin Contributor Yordan Soares

    (@yordansoares)

    Thanks for the feedback, @garlick:

    I’m glad to hear that it is fixed now! ??

    Let us know if you need anything else ??

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Entire site is down with Fatal Error’ is closed to new replies.