PHP Fatal error: Class & Hook not found in plugin directory
-
Hi. When a customer is logged in and viewing their Orders/Share page of their account, the page is all messed up because “There has been a critical error on this website.”
I’ve checked the error logs and it seems to be a (possibly new) incompatibility between the ‘Donation Platform for WooCommerce’ plugin and the ‘PDF Invoices & Packing Slips for WooCommerce’ plugin. When I disable either plugin, the problem is solved.Here is the relevant error log, below. As you can see, it seems that the ‘Donation Platform for WooCommerce’ plugin is missing a class and/or hook.
Any advice on how to fix this would be much appreciated.
Dan
[Tue Aug 15 16:15:09 2023] [error] [client 31.94.3.202:0] AH01071: Got error 'PHP message: PHP Fatal error: Uncaught Error: Class 'WPO\WC\PDF_Invoices\Compatibility\Order' not found in /home/sites/26b/4/4e7c202dd3/public_html/wp-content/plugins/wc-donation-platform/includes/integrations/woocommerce-pdf-invoices-packing-slips/class-wcdp-thank-you-certificate.php:60\nStack trace:\n#0 /home/sites/26b/4/4e7c202dd3/public_html/wp-includes/class-wp-hook.php(310): WPO\WC\PDF_Invoices\Documents\WCDP_Thank_You_Certificate->WPO\WC\PDF_Invoices\Documents\{closure}(Array, Object(Automattic\WooCommerce\Admin\Overrides\Order))\n#1 /home/sites/26b/4/4e7c202dd3/public_html/wp-includes/plugin.php(205): WP_Hook->apply_filters(Array, Array)\n#2 /home/sites/26b/4/4e7c202dd3/public_html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/includes/class-wcpdf-frontend.php(70): apply_filters('wpo_wcpdf_myacc…', Array, Object(Automattic\WooCommerce\Admin\Overrides\Order))\n#3 /home/sites/26b/4/4e7c202dd3/public_html/wp-includes/class-wp-hook.php(310): WPO\WC\PDF_Invoices\Frontend->my_account_p…'
The page I need help with: [log in to see the link]
- The topic ‘PHP Fatal error: Class & Hook not found in plugin directory’ is closed to new replies.