Fatal error: Uncaught TypeError: ftp_nlist(): Argument #1 ($ftp) must be of type FTP\Connection, null given in /var/www/wordpress/wp-admin/includes/class-wp-filesystem-ftpext.php:438 Stack trace: #0 /var/www/wordpress/wp-admin/includes/class-wp-filesystem-ftpext.php(438): ftp_nlist() #1 /var/www/wordpress/wp-admin/includes/class-wp-filesystem-ftpext.php(456): WP_Filesystem_FTPext->exists() #2 /var/www/wordpress/wp-content/plugins/woocommerce/src/Internal/Admin/Logging/FileV2/File.php(260): WP_Filesystem_FTPext->is_file() #3 /var/www/wordpress/wp-content/plugins/woocommerce/src/Internal/Admin/Logging/FileV2/File.php(424): Automattic\WooCommerce\Internal\Admin\Logging\FileV2\File->is_writable() #4 /var/www/wordpress/wp-content/plugins/woocommerce/src/Internal/Admin/Logging/FileV2/FileController.php(135): Automattic\WooCommerce\Internal\Admin\Logging\FileV2\File->write() #5 /var/www/wordpress/wp-content/plugins/woocommerce/src/Internal/Admin/Logging/LogHandlerFileV2.php(60): Automattic\WooCommerce\Internal\Admin\Logging\FileV2\FileController->write_to_file() #6 /var/www/wordpress/wp-content/plugins/woocommerce/includes/class-wc-logger.php(189): Automattic\WooCommerce\Internal\Admin\Logging\LogHandlerFileV2->handle() #7 /var/www/wordpress/wp-content/plugins/woocommerce/includes/class-wc-logger.php(311): WC_Logger->log() #8 /var/www/wordpress/wp-content/plugins/woocommerce-gateway-stripe/includes/class-wc-stripe-logger.php(58): WC_Logger->debug() #9 /var/www/wordpress/wp-content/plugins/woocommerce-gateway-stripe/includes/abstracts/abstract-wc-stripe-payment-gateway.php(1911): WC_Stripe_Logger::log() #10 /var/www/wordpress/wp-includes/class-wp-hook.php(324): WC_Stripe_Payment_Gateway->payment_scripts() #11 /var/www/wordpress/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters() #12 /var/www/wordpress/wp-includes/plugin.php(517): WP_Hook->do_action() #13 /var/www/wordpress/wp-includes/script-loader.php(2265): do_action() #14 /var/www/wordpress/wp-includes/class-wp-hook.php(324): wp_enqueue_scripts() #15 /var/www/wordpress/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters() #16 /var/www/wordpress/wp-includes/plugin.php(517): WP_Hook->do_action() #17 /var/www/wordpress/wp-includes/general-template.php(3050): do_action() #18 /var/www/wordpress/wp-content/themes/mesmerize/header.php(8): wp_head() #19 /var/www/wordpress/wp-includes/template.php(810): require_once('...') #20 /var/www/wordpress/wp-includes/template.php(745): load_template() #21 /var/www/wordpress/wp-includes/general-template.php(48): locate_template() #22 /var/www/wordpress/wp-content/themes/mesmerize/inc/templates-functions.php(130): get_header() #23 /var/www/wordpress/wp-content/themes/mesmerize/page.php(1): mesmerize_get_header() #24 /var/www/wordpress/wp-includes/template-loader.php(106): include('...') #25 /var/www/wordpress/wp-blog-header.php(19): require_once('...') #26 /var/www/wordpress/index.php(17): require('...') #27 {main} thrown in /var/www/wordpress/wp-admin/includes/class-wp-filesystem-ftpext.php on line 438

Fatal error: Uncaught TypeError: ftp_nlist(): Argument #1 ($ftp) must be of type FTP\Connection, null given in /var/www/wordpress/wp-admin/includes/class-wp-filesystem-ftpext.php:438 Stack trace: #0 /var/www/wordpress/wp-admin/includes/class-wp-filesystem-ftpext.php(438): ftp_nlist() #1 /var/www/wordpress/wp-admin/includes/class-wp-filesystem-ftpext.php(456): WP_Filesystem_FTPext->exists() #2 /var/www/wordpress/wp-content/plugins/woocommerce/src/Internal/Admin/Logging/FileV2/File.php(260): WP_Filesystem_FTPext->is_file() #3 /var/www/wordpress/wp-content/plugins/woocommerce/src/Internal/Admin/Logging/FileV2/File.php(424): Automattic\WooCommerce\Internal\Admin\Logging\FileV2\File->is_writable() #4 /var/www/wordpress/wp-content/plugins/woocommerce/src/Internal/Admin/Logging/FileV2/FileController.php(135): Automattic\WooCommerce\Internal\Admin\Logging\FileV2\File->write() #5 /var/www/wordpress/wp-content/plugins/woocommerce/src/Internal/Admin/Logging/LogHandlerFileV2.php(60): Automattic\WooCommerce\Internal\Admin\Logging\FileV2\FileController->write_to_file() #6 /var/www/wordpress/wp-content/plugins/woocommerce/includes/class-wc-logger.php(189): Automattic\WooCommerce\Internal\Admin\Logging\LogHandlerFileV2->handle() #7 /var/www/wordpress/wp-content/plugins/woocommerce/includes/class-wc-logger.php(236): WC_Logger->log() #8 /var/www/wordpress/wp-content/plugins/woocommerce/includes/class-woocommerce.php(377): WC_Logger->critical() #9 [internal function]: WooCommerce->log_errors() #10 {main} thrown in /var/www/wordpress/wp-admin/includes/class-wp-filesystem-ftpext.php on line 438