[wp-trac] [WordPress Trac] #42345: file_put_contents: failed to open stream

WordPress Trac noreply at wordpress.org
Thu Oct 26 10:58:35 UTC 2017


#42345: file_put_contents: failed to open stream
--------------------------+------------------------------
 Reporter:  eduardbosch   |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Plugins       |     Version:  4.8.2
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:
--------------------------+------------------------------

Comment (by dd32):

 It appears that this is caused by a PHP Security update when running with
 an incompatible version of the PHP SSH2 extension - unfortunately the
 latest version of the extension (0.13) is incompatible. Some versions
 (such as 0.13-3 from the REMI repo's) are compatible though.

 Some reading:
 https://bugs.php.net/bug.php?id=73597
 https://forum.remirepo.net/viewtopic.php?id=3509

 I'm guessing the reason you had segfaults previously is you were most
 likely running a much further outdated version of the ssh2 extension,
 updating it fixed the segfaults, but didn't help with the incompatibility.

 The workaround provided in the above php.net link to use `intval()` is an
 option for core, however is only required in the scenario that someone is
 using an updated PHP version without updating the ssh2 extension.

 @eduardbosch in the short term - either update the `ssh2` extension to a
 fixed one, disable ssh updating (remove the extension) and/or use the
 [https://wordpress.org/plugins/ssh-sftp-updater-support/ PHP-based SSH
 updater plugin] which doesn't need the extension and IMHO is far more
 reliable than the extension breaks.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/42345#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list