• Resolved Robert

    (@elvaron)


    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 2000

    The same error is in the Apache error log and the WordPress debug.log.

    The wp-config.php file 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)
  • Thread Starter Robert

    (@elvaron)

    I just checked that SSH SFTP Updater Support version 0.9.0 is working. So it’s probably a configuration issue with the company’s servers.

    == Changelog ==

    = 1.0.0 – 2024/Dec/24 =

    • FEATURE: Updated bundled phpseclib library to 3.0 series and amend code accordingly, thereby bringing access to various newer cryptographic algorithms
    • REQUIREMENTS: Requires PHP 5.6+ (as required by phpseclib 3.0)
    Thread Starter Robert

    (@elvaron)

    Oh! Why is the update from 4 weeks ago when the changelog shows 24 December 2024?

    Version 1.0.0
    Last updated 4 weeks ago

    Moderator threadi

    (@threadi)

    I don’t know the plugin, I’m “only” a moderator in the forum and also a plugin developer – but the update information for a plugin is also reset if, for example, the compatibility flag with a new WordPress version is upgraded through the developer. This is what happened here (for WP 6.9). You can see what was updated and when at any time on the plugin page under Development > development log.

    Plugin Author David Anderson / Team Updraft

    (@davidanderson)

    Hi Robert,

    To make sure I understand correctly: if you downgrade to version 0.9.0 of this plugin, then updating works, but updating fails if you use version 1.0.0?

    Between those versions, the plugin moved from using version 2.0 to version 3.0 of the underlying phpseclib library, so, I’d have to ask the author to comment. Your error message seems to say that the SFTP server sent an invalid packet. However…. I’ve just released a 1.1.0 release for the plugin,updating to the current 3.0 version of phpseclib (from 3.0.43 to 3.0.48). So, first please update to that version, and try again, and see what happens.

    David

    Thread Starter Robert

    (@elvaron)

    It seems that version 1.1.0 works well, I managed to update the plugins. Thanks! πŸ™‚

    But I wouldn’t exclude any configuration issues of my company’s servers πŸ˜‰

Viewing 5 replies - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.