[wp-trac] [WordPress Trac] #35517: Work around PHP7 php-ssh2 breakage

WordPress Trac noreply at wordpress.org
Thu Nov 2 23:42:48 UTC 2017

#35517: Work around PHP7 php-ssh2 breakage
 Reporter:  dougal          |       Owner:
     Type:  defect (bug)    |      Status:  new
 Priority:  normal          |   Milestone:  Awaiting Review
Component:  Filesystem API  |     Version:
 Severity:  normal          |  Resolution:
 Keywords:  has-patch       |     Focuses:  administration

Comment (by kareltje63):

 Solved by @ralphm's patch!
 Had WordPress-does-not-update-through-ssh2 problem on ubuntu 14.04,
 upgraded PHP ssh2 to no avail, then upgraded to Ubuntu 16.04, PHP 7, a
 slightly better error message (instead of an empty page a 'cannot locate
 wp-content' message), but still not able to upgrade.

 Then I applied the intval() patch for file wp-admin/includes/class-wp-
 filesystem-ssh2.php which solved the problem for me on both the original
 ubuntu 14.04 WordPress install and the 16.04 install.

 Do not forget to apply the patch again after upgrading, until the patch
 makes it into a new WordPress release

Ticket URL: <https://core.trac.wordpress.org/ticket/35517#comment:24>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform

More information about the wp-trac mailing list