Yoast 21.9 TypeError possibly FTP related
-
Hi,
Our site crashes when using the auto-updates system for WordPress the Yoast plugin got updated to 21.9.
The weird thing is that we never encountered these issues in the past with relation to other plugins installed or being updated and also not in previous updates for Yoast.
Actions performed:
- Navigated to our website, got shown a generic critical WordPress error
- Looked into our logs to find out what could have caused the issue
- Got PHP errors in our logs relating to wordpress-seo (folder named as such in our plugins directory)
- Renamed the plugin folder wordpress-seo to <something else>
- Checked back on the website and it worked again
- Disabled auto-updates for Yoast
- Renamed the folder back to the original
- Website currently functions
The PHP error in full is here:
PHP message: PHP Fatal error: Uncaught TypeError: ftp_nlist(): Argument #1 ($ftp) must be of type FTP\\Connection, null given in /var/www/www.website.extension/wp-admin/includes/class-wp-filesystem-ftpext.php:438\nStack trace:\n#0 /var/www/www.website.extension/wp-admin/includes/class-wp-filesystem-ftpext.php(438): ftp_nlist()\n#1 /var/www/www.website.extension/wp-admin/includes/class-wp-filesystem-ftpext.php(456): WP_Filesystem_FTPext->exists()\n#2 /var/www/www.website.extension/wp-admin/includes/class-wp-filesystem-ftpext.php(757): WP_Filesystem_FTPext->is_file()\n#3 /var/www/www.website.extension/wp-admin/includes/file.php(2772): WP_Filesystem_FTPext->dirlist()\n#4 /var/www/www.website.extension/wp-content/plugins/wordpress-seo/wp-seo-main.php(361): wp_opcache_invalidate_directory()\n#5 /var/www/www.website.extension/wp-includes/class-wp-hook.php(324): wpseo_init()\n#6 /var/www/www.website.extension/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()\n#7 /var/www/www.website.extension/wp-includes/plugin.php(517): WP_Hook->do_action()\n#8 /var/www/www.website.extension/wp-settings.php(506): do_...' [Tue Jan 23 14:04:56.920840 2024] [proxy_fcgi:error] [pid 119067:tid 139829180491456] [remote 85.146.204.210:2304] AH01071: Got error 'PHP message: PHP Fatal error: Uncaught TypeError: ftp_nlist(): Argument #1 ($ftp) must be of type FTP\\Connection, null given in /var/www/www.website.extension/wp-admin/includes/class-wp-filesystem-ftpext.php:438\nStack trace:\n#0 /var/www/www.website.extension/wp-admin/includes/class-wp-filesystem-ftpext.php(438): ftp_nlist()\n#1 /var/www/www.website.extension/wp-admin/includes/class-wp-filesystem-ftpext.php(456): WP_Filesystem_FTPext->exists()\n#2 /var/www/www.website.extension/wp-admin/includes/class-wp-filesystem-ftpext.php(757): WP_Filesystem_FTPext->is_file()\n#3 /var/www/www.website.extension/wp-admin/includes/file.php(2772): WP_Filesystem_FTPext->dirlist()\n#4 /var/www/www.website.extension/wp-content/plugins/wordpress-seo/wp-seo-main.php(361): wp_opcache_invalidate_directory()\n#5 /var/www/www.website.extension/wp-includes/class-wp-hook.php(324): wpseo_init()\n#6 /var/www/www.website.extension/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()\n#7 /var/www/www.website.extension/wp-includes/plugin.php(517): WP_Hook->do_action()\n#8 /var/www/www.website.extension/wp-settings.php(506): do_...'
Our PHP version is:
php --version PHP 8.2.7 (cli) (built: Jun 9 2023 19:37:27) (NTS)
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- The topic ‘Yoast 21.9 TypeError possibly FTP related’ is closed to new replies.