• Resolved wort

    (@wort)


    Hi – this is on our development server so far but I suspect the same would happen on our prod box.
    Running version 1.1.1 of your plugin on Debian Trixie with php8.4-fpm and I’m wondering if the underlying phpseclib is compatible with 8.4?
    Here’s the salient error log:
    AH01071: Got error 'PHP message: PHP Fatal error: Uncaught UnexpectedValueException: Expected NET_SFTP_HANDLE or NET_SFTP_STATUS. Got packet type: 105 in /var/www/html/wp-content/plugins/ssh-sftp-updater-support/vendor/phpseclib/phpseclib/phpseclib/Net/SFTP.php:1118\nStack trace:\n#0 /var/www/html/wp-content/plugins/ssh-sftp-updater-support/vendor/phpseclib/phpseclib/phpseclib/Net/SFTP.php(1041): phpseclib3\Net\SFTP->readlist()\n#1 /var/www/html/wp-content/plugins/ssh-sftp-updater-support/class-wp-filesystem-ssh2.php(382): phpseclib3\Net\SFTP->rawlist()\n#2 /var/www/html/wp-admin/includes/class-wp-filesystem-base.php(276): WP_Filesystem_SSH2->dirlist()\n#3 /var/www/html/wp-content/plugins/ssh-sftp-updater-support/class-wp-filesystem-ssh2.php(560): WP_Filesystem_Base->search_for_folder()\n#4 /var/www/html/wp-admin/includes/class-wp-upgrader.php(1218): WP_Filesystem_SSH2->find_folder()\n#5 /var/www/html/wp-includes/class-wp-hook.php(339): WP_Upgrader->restore_temp_backup()\n#6 /var/www/html/wp-includes/class-wp-hook.php(365):…'

    Any ideas? I did manually remove your plugin and then manually installed it again with no difference. (I should add that this is a totally fresh install of Trixie in order to match the production environment so possible I have missed something in the install – but I don’t see that from the error log.
    Thanks for any ideas!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter wort

    (@wort)

    After doing some plugin updates using the wp cli, I am now getting 500 errors when installing and activating your plugin. Goes away when forcing a delete of the plugin directory but comes right back after a reinstall and an activation. From the errors now – might there be some incompatibility with woocommerce?
    AH01071: Got error '; PHP message: PHP Fatal error: Uncaught Error: Call to a member function stat() on false in /var/www/html/wp-content/plugins/ssh-sftp-updater-support/class-wp-filesystem-ssh2.php:306\nStack trace:\n#0 /var/www/html/wp-content/plugins/woocommerce/src/Internal/Admin/Logging/FileV2/File.php(254): WP_Filesystem_SSH2->is_file()\n#1 /var/www/html/wp-content/plugins/woocommerce/src/Internal/Admin/Logging/FileV2/File.php(437): Automattic\WooCommerce\Internal\Admin\Logging\FileV2\File->is_writable()\n#2 /var/www/html/wp-content/plugins/woocommerce/src/Internal/Admin/Logging/FileV2/FileController.php(135): Automattic\WooCommerce\Internal\Admin\Logging\FileV2\File->write()\n#3 /var/www/html/wp-content/plugins/woocommerce/src/Internal/Admin/Logging/LogHandlerFileV2.php(62): Automattic\WooCommerce\Internal\Admin\Logging\FileV2\FileController->write_to_file()\n#4 /var/www/html/wp-content/plugins/woocommerce/includes/class-wc-logger.php(189): Automattic\WooCommerce\Internal\Admin\Logging\LogHandlerFileV2->handle()\n#5 …'

    Thanks for anything you can determine from this.

    Plugin Author David Anderson / Team Updraft

    (@davidanderson)

    Hi,

    The first error is the underlying SSH library, phpseclib, having a problem with the data its seeing. I’ve updated the bundled version (from 3.0.48 to 3.0.52 – https://github.com/phpseclib/phpseclib/releases), so, please update to today’s 1.1.2 version of the plugin, and try again.

    The second error is a bug in your installed version of WooCommerce; it has code which attempts to set up a filesystem link, but does not check whether doing so succeeds or fails, and then it tries to use it to ask about a file. That attempt fails, because the question it asks can’t be answered either way in the case of a failed setup of the link. If that’s the latest version of WooCommerce, then you should report that to them.

    David

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

You must be logged in to reply to this topic.