Title: PHP 7 Error
Last modified: February 12, 2018

---

# PHP 7 Error

 *  Resolved [jweatherman](https://wordpress.org/support/users/jweatherman/)
 * (@jweatherman)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/php-7-error-11/)
 * 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 / Team Updraft](https://wordpress.org/support/users/davidanderson/)
 * (@davidanderson)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/php-7-error-11/#post-9982465)
 * Hi,
 * That’s not an error, but a deprecation notice about changes needed for future
   releases. You can ignore it.
 * David
 *  [covertnine](https://wordpress.org/support/users/ttoomey/)
 * (@ttoomey)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/php-7-error-11/#post-10054715)
 * 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
 *  [John Parris](https://wordpress.org/support/users/mindctrl/)
 * (@mindctrl)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/php-7-error-11/#post-10128540)
 * 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.

 * ![](https://s.w.org/plugins/geopattern-icon/ssh-sftp-updater-support.svg)
 * [SSH SFTP Updater Support](https://wordpress.org/plugins/ssh-sftp-updater-support/)
 * [Support Threads](https://wordpress.org/support/plugin/ssh-sftp-updater-support/)
 * [Active Topics](https://wordpress.org/support/plugin/ssh-sftp-updater-support/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/ssh-sftp-updater-support/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/ssh-sftp-updater-support/reviews/)

## Tags

 * [php-7](https://wordpress.org/support/topic-tag/php-7/)

 * 3 replies
 * 4 participants
 * Last reply from: [John Parris](https://wordpress.org/support/users/mindctrl/)
 * Last activity: [8 years, 2 months ago](https://wordpress.org/support/topic/php-7-error-11/#post-10128540)
 * Status: resolved