Title: Array to string conversion error
Last modified: August 22, 2016

---

# Array to string conversion error

 *  [ellertvankoperen](https://wordpress.org/support/users/ellertvankoperen/)
 * (@ellertvankoperen)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/array-to-string-conversion-error/)
 * PHP Notice: Array to string conversion in …../wp-content/plugins/ssh-sftp-updater-
   support/class-wp-filesystem-ssh2.php on line 316
    PHP Notice: Array to string
   conversion in …../wp-content/plugins/ssh-sftp-updater-support/class-wp-filesystem-
   ssh2.php on line 317
 * I think it is a small mistake made there, i solved it like so:
 *     ```
       diff class-wp-filesystem-ssh2.php.bku class-wp-filesystem-ssh2.php
       316,317c316,317
       < 			$struc['owner']    	= $this->owner($path.'/'.$entry, $entry['uid']);
       < 			$struc['group']    	= $this->group($path.'/'.$entry, $entry['gid']);
       ---
       > 			$struc['owner']    	= $this->owner($path.'/'.$name, $entry['uid']);
       > 			$struc['group']    	= $this->group($path.'/'.$name, $entry['gid']);
       335c335
       < }
       \ No newline at end of file
       ---
       > }
       ```
   
 * [https://wordpress.org/plugins/ssh-sftp-updater-support/](https://wordpress.org/plugins/ssh-sftp-updater-support/)

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

 *  [winana](https://wordpress.org/support/users/winana/)
 * (@winana)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/array-to-string-conversion-error/#post-5737337)
 * you right… it solved the problem..
 * #edit
 * i use this:
 *     ```
       $struc['owner'] 	= $this->owner($path . '/' . key($entry), $entry['uid']);
       $struc['group'] 	= $this->group($path . '/' . key($entry), $entry['gid']);
       ```
   
 *  Plugin Author [TerraFrost](https://wordpress.org/support/users/terrafrost/)
 * (@terrafrost)
 * [11 years ago](https://wordpress.org/support/topic/array-to-string-conversion-error/#post-5737339)
 * The following commit should fix this:
 * [https://plugins.trac.wordpress.org/changeset?sfp_email=&sfph_mail=&reponame=&old=1158434%40ssh-sftp-updater-support%2Ftrunk&new=1158434%40ssh-sftp-updater-support%2Ftrunk&sfp_email=&sfph_mail=](https://plugins.trac.wordpress.org/changeset?sfp_email=&sfph_mail=&reponame=&old=1158434%40ssh-sftp-updater-support%2Ftrunk&new=1158434%40ssh-sftp-updater-support%2Ftrunk&sfp_email=&sfph_mail=)

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

The topic ‘Array to string conversion 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/)

 * 2 replies
 * 3 participants
 * Last reply from: [TerraFrost](https://wordpress.org/support/users/terrafrost/)
 * Last activity: [11 years ago](https://wordpress.org/support/topic/array-to-string-conversion-error/#post-5737339)
 * Status: not resolved