• Resolved HYanWong

    (@hyanwong)


    After upgrading to WP 4.9, this plugin no longer works on my installation, claiming:

    PHP Fatal error: Uncaught exception 'Exception' with message 'Serialization of 'Closure' is not allowed' in ***/wp-content/plugins/ssh-sftp-updater-support/phpseclib/Crypt/Random.php:156\nStack trace:\n#0 ***/wp-content/plugins/ssh-sftp-updater-support/phpseclib/Crypt/Random.php(156): serialize(Array)\n#1 ***/wp-content/plugins/ssh-sftp-updater-support/phpseclib/Net/SSH2.php(1251): crypt_random_string(16)\n#2 ***/wp-content/plugins/ssh-sftp-updater-support/phpseclib/Net/SSH2.php(1075): Net_SSH2->_key_exchange('\\x14Nf\\xE1\\x8E\\xB1\\e\\xEA\\x8BI\\v\\xFA;\\x98>...')\n#3 ***/wp-content/plugins/ssh-sftp-updater-support/phpseclib/Net/SSH2.php(1869): Net_SSH2->_connect()\n#4 [internal function]: Net_SSH2->_login('user', 'pass')\n#5 ***/wp-content/plugins/ssh-sftp-updater-support/phpseclib/Net/SFTP.php(431): call_user_func_array(Array, Array)\n#6 ***/wp-content/plugins/ssh-sftp-updater-support/class- in ***/wp-content/plugins/ssh-sftp-updater-support/phpseclib/Crypt/Random.php on line 156

    Note also that this logged output reveals the password, which is another bug (I have substituted in the word ‘pass’ above.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter HYanWong

    (@hyanwong)

    Update! The plugin works now if I update the phpseclib directory within wp-content/plugins/ssh-sftp-updater-support with the version 1.0 from https://github.com/phpseclib/phpseclib/. I did this using

    curl -L -o phpseclib-new https://github.com/phpseclib/phpseclib/archive/1.0.zip
    unzip phpseclib-new
    mv phpseclib-1.0/phpseclib wp-content/plugins/ssh-sftp-updater-support/

    Could someone update the plugin with the latest phpseclib-1.0/phpseclib folder?

    Thread Starter HYanWong

    (@hyanwong)

    This irks for me now with the 0.7.2 Update. Thanks @terrafrost

    Thread Starter HYanWong

    (@hyanwong)

    Hilarious typo there. I meant this *works* for me now. Thanks.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Plugin fails on 4.9 with “Serialization of ‘Closure’ is not allowed”’ is closed to new replies.