• Resolved imds

    (@imds)


    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)
    • This topic was modified 10 months, 1 week ago by imds.
Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Support Maybellyne

    (@maybellyne)

    Hello @imds,

    I’m sorry about the error you encountered. Our developers are currently aware and are taking a deeper look.

    We appreciate your patience.

    Same error here.
    The stacktrace:

    [Wed Jan 24 08:22:36.219347 2024] [php:error] [pid 597305:tid 597305] [client 52.158.28.64:42944] PHP Fatal error: ?Uncaught TypeError: ftp_nlist(): Argument #1 ($ftp) must be of type FTP\\Connection, null given in /var/www/html/xxxxx/wp-admin/includes/class-wp-filesystem-ftpext.php:438\nStack trace:\n#0 /var/www/html/xxxxx/wp-admin/includes/class-wp-filesystem-ftpext.php(438): ftp_nlist()\n#1 /var/www/html/xxxxx/wp-admin/includes/class-wp-filesystem-ftpext.php(456): WP_Filesystem_FTPext->exists()\n#2 /var/www/html/xxxxx/wp-admin/includes/class-wp-filesystem-ftpext.php(757): WP_Filesystem_FTPext->is_file()\n#3 /var/www/html/xxxxx/wp-admin/includes/file.php(2772): WP_Filesystem_FTPext->dirlist()\n#4 /var/www/html/xxxxx/wp-content/plugins/wordpress-seo/wp-seo-main.php(361): wp_opcache_invalidate_directory()\n#5 /var/www/html/xxxxx/wp-includes/class-wp-hook.php(324): wpseo_init()\n#6 /var/www/html/xxxxx/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()\n#7 /var/www/html/xxxxx/wp-includes/plugin.php(517): WP_Hook->do_action()\n#8 /var/www/html/xxxxx/wp-settings.php(506): do_action()\n#9 /var/www/html/xxxxx/wp-config.php(175): require_once(‘…’)\n#10 /var/www/html/xxxxx/wp-load.php(50): require_once(‘…’)\n#11 /var/www/html/xxxxx/wp-blog-header.php(13): require_once(‘…’)\n#12 /var/www/html/xxxxx/index.php(17): require(‘…’)\n#13 {main}\n ?thrown in /var/www/html/xxxxx/wp-admin/includes/class-wp-filesystem-ftpext.php on line 438

    Choni

    (@chonicodefish)

    Same issue. Following

    Plugin Support Maybellyne

    (@maybellyne)

    Hello @imds, @simwe70 and @chonicodefish

    Thanks for your patience so far. The issue has been fixed. Can you confirm it’s resolved for you in Yoast SEO 21.9.1?

    Thread Starter imds

    (@imds)

    Hi @maybellyne,

    I can confirm that in our setup the 21.9.1 update installs without any issues.

    Choni

    (@chonicodefish)

    @maybellyne, yes! thanks

    Do you know when this fix will land in the premium release? I encounter the same issue there. Thanks in advance!

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Yoast 21.9 TypeError possibly FTP related’ is closed to new replies.