WooCommerce 8.6.1 + Stripe 8.0.0 PHP Fatal Error
-
I am getting strange PHP fatal errors when I enable this plugin. It breaks my WordPress admin and I have to SSH and use WP-CLI to manually deactivate this plugin to make my WordPress admin work again.
I have also tried to delete the plugin directory and install the plugin manually again. Either through FTP or WP-CLI.
I have also tried to delete all the database options of this plugin with Advanced DB Cleaner PRO. This allows me to activate the plugin and follow the connection step but it breaks my WordPress admin during the connection to Stripe step.
[10-Mar-2024 00:41:41 UTC] PHP Fatal error: Uncaught TypeError: ftp_nlist(): Argument #1 ($ftp) must be of type FTP\Connection, null given in /public_html/wp-admin/includes/class-wp-filesystem-ftpext.php:438 Stack trace: #0 /public_html/wp-admin/includes/class-wp-filesystem-ftpext.php(438): ftp_nlist() #1 /public_html/wp-admin/includes/class-wp-filesystem-ftpext.php(456): WP_Filesystem_FTPext->exists() #2 /public_html/wp-content/plugins/woocommerce/src/Internal/Admin/Logging/FileV2/File.php(260): WP_Filesystem_FTPext->is_file() #3 /public_html/wp-content/plugins/woocommerce/src/Internal/Admin/Logging/FileV2/File.php(424): Automattic\WooCommerce\Internal\Admin\Logging\FileV2\File->is_writable() #4 /public_html/wp-content/plugins/woocommerce/src/Internal/Admin/Logging/FileV2/FileController.php(148): Automattic\WooCommerce\Internal\Admin\Logging\FileV2\File->write() #5 /public_html/wp-content/plugins/woocommerce/src/Internal/Admin/Logging/LogHandlerFileV2.php(60): Automattic\WooCommerce\Internal\Admin\Logging\FileV2\FileController->write_to_file() #6 /public_html/wp-content/plugins/woocommerce/includes/class-wc-logger.php(164): Automattic\WooCommerce\Internal\Admin\Logging\LogHandlerFileV2->handle() #7 /public_html/wp-content/plugins/woocommerce/includes/class-wc-logger.php(286): WC_Logger->log() #8 /public_html/wp-content/plugins/woocommerce-gateway-stripe/includes/class-wc-stripe-logger.php(56): WC_Logger->debug() #9 /public_html/wp-content/plugins/woocommerce-gateway-stripe/includes/class-wc-stripe-api.php(171): WC_Stripe_Logger::log() #10 /public_html/wp-content/plugins/woocommerce-gateway-stripe/includes/class-wc-stripe-account.php(83): WC_Stripe_API::retrieve() #11 /public_html/wp-content/plugins/woocommerce-gateway-stripe/includes/class-wc-stripe-account.php(62): WC_Stripe_Account->cache_account() #12 /public_html/wp-content/plugins/woocommerce-gateway-stripe/includes/admin/class-wc-stripe-admin-notices.php(255): WC_Stripe_Account->get_cached_account_data() #13 /public_html/wp-content/plugins/woocommerce-gateway-stripe/includes/admin/class-wc-stripe-admin-notices.php(56): WC_Stripe_Admin_Notices->stripe_check_environment() #14 /public_html/wp-includes/class-wp-hook.php(324): WC_Stripe_Admin_Notices->admin_notices() #15 /public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters() #16 /public_html/wp-includes/plugin.php(517): WP_Hook->do_action() #17 /public_html/wp-admin/admin-header.php(303): do_action() #18 /public_html/wp-admin/plugins.php(621): require_once('/mnt/data/home/...') #19 {main} thrown in /public_html/wp-admin/includes/class-wp-filesystem-ftpext.php on line 438 [10-Mar-2024 00:41:41 UTC] PHP Fatal error: Uncaught TypeError: ftp_nlist(): Argument #1 ($ftp) must be of type FTP\Connection, null given in /public_html/wp-admin/includes/class-wp-filesystem-ftpext.php:438 Stack trace: #0 /public_html/wp-admin/includes/class-wp-filesystem-ftpext.php(438): ftp_nlist() #1 /public_html/wp-admin/includes/class-wp-filesystem-ftpext.php(456): WP_Filesystem_FTPext->exists() #2 /public_html/wp-content/plugins/woocommerce/src/Internal/Admin/Logging/FileV2/File.php(260): WP_Filesystem_FTPext->is_file() #3 /public_html/wp-content/plugins/woocommerce/src/Internal/Admin/Logging/FileV2/File.php(424): Automattic\WooCommerce\Internal\Admin\Logging\FileV2\File->is_writable() #4 /public_html/wp-content/plugins/woocommerce/src/Internal/Admin/Logging/FileV2/FileController.php(148): Automattic\WooCommerce\Internal\Admin\Logging\FileV2\File->write() #5 /public_html/wp-content/plugins/woocommerce/src/Internal/Admin/Logging/LogHandlerFileV2.php(60): Automattic\WooCommerce\Internal\Admin\Logging\FileV2\FileController->write_to_file() #6 /public_html/wp-content/plugins/woocommerce/includes/class-wc-logger.php(164): Automattic\WooCommerce\Internal\Admin\Logging\LogHandlerFileV2->handle() #7 /public_html/wp-content/plugins/woocommerce/includes/class-wc-logger.php(211): WC_Logger->log() #8 /public_html/wp-content/plugins/woocommerce/includes/class-woocommerce.php(325): WC_Logger->critical() #9 [internal function]: WooCommerce->log_errors() #10 {main} thrown in /public_html/wp-admin/includes/class-wp-filesystem-ftpext.php on line 438
Any help would be appreciated. I have no choice but to disable this plugin for now. PayPal will be my only payment method for now.
- The topic ‘WooCommerce 8.6.1 + Stripe 8.0.0 PHP Fatal Error’ is closed to new replies.