• Resolved jweatherman

    (@jweatherman)


    Getting this error when updating plugins on my site
    Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; WP_Filesystem_SSH2 has a deprecated constructor in /var/www/html/allegralearning.com/wp-content/plugins/ssh-sftp-updater-support/class-wp-filesystem-ssh2.php on line 23 {“success”:true,”data”:{“delete”:”plugin”,”slug”:”akismet”,”plugin”:”akismet\/akismet.php”,”pluginName”:”Akismet Anti-Spam”}}

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author David Anderson

    (@davidanderson)

    Hi,

    That’s not an error, but a deprecation notice about changes needed for future releases. You can ignore it.

    David

    David–

    We LOVE your plugin. It makes our sites more secure and is essential to our work.

    We changed line 32 in class-wp-filesystem-ssh2.php from

    function WP_Filesystem_SSH2($opt=”) {

    to

    function __construct($opt=”) {

    Notice goes away, and you’re php7 compatible then.

    Cheers,
    -Tim

    This is an easy fix. Please deploy it to make this more compatible with PHP 7+ and to prevent useless notices from filling up the logs.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘PHP 7 Error’ is closed to new replies.