PHP Fatal error when trying to update.
-
My company servers are configured so that I can update WordPress only via SFTP. A fatal error started appearing on one of the websites when trying to update plugins/themes.
PHP Fatal error: Uncaught UnexpectedValueException: Expected NET_SFTP_STATUS. Got packet type: 105 in /docs/wp-content/plugins/ssh-sftp-updater-support/vendor/phpseclib/phpseclib/phpseclib/Net/SFTP.php:2000
Stack trace:
#0 /docs/wp-content/plugins/ssh-sftp-updater-support/vendor/phpseclib/phpseclib/phpseclib/Net/SFTP.php(1983): phpseclib3\Net\SFTP->mkdir_helper()
#1 /docs/wp-content/plugins/ssh-sftp-updater-support/class-wp-filesystem-ssh2.php(354): phpseclib3\Net\SFTP->mkdir()
#2 /docs/wp-admin/includes/file.php(1775): WP_Filesystem_SSH2->mkdir()
#3 /docs/wp-admin/includes/file.php(1651): _unzip_file_ziparchive()
#4 /docs/wp-admin/includes/class-wp-upgrader.php(384): unzip_file()
#5 /docs/wp-admin/includes/class-wp-upgrader.php(887): WP_Upgrader->unpack_package()
#6 /docs/wp-admin/includes/class-plugin-upgrader.php(378): WP_Upgrader->run()
#7 /docs/wp-admin/includes/ajax-actions.php(4650): Plugin_Upgrader->bulk_upgrade()
#8 /docs/wp-includes/class-wp-hook.php(324): wp_ajax_update_plugin()
#9 /docs/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
#10 /docs/wp-includes/plugin.php(517): WP_Hook->do_action()
#11 /docs/wp-admin/admin-ajax.php(192): do_action()
#12 {main}
thrown in /docs/wp-content/plugins/ssh-sftp-updater-support/vendor/phpseclib/phpseclib/phpseclib/Net/SFTP.php on line 2000The same error is in the Apache error log and the WordPress debug.log.
The
wp-config.phpfile contains:define( 'FS_METHOD', 'ssh2' );
define( 'FTP_USER', 'xxx' );
define( 'FTP_PASS', 'xxx' );
define( 'FTP_HOST', 'xxx' );
define( 'FS_CHMOD_FILE', 0644 );
define( 'FS_CHMOD_DIR', 0755 );WordPress 6.8.3
SSH SFTP Updater Support 1.0.0
PHP 8.2.10
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
You must be logged in to reply to this topic.