[wp-trac] [WordPress Trac] #42609: Regression: WordPress 4.9 theme editor cannot edit files when running on a Windows based server

WordPress Trac noreply at wordpress.org
Wed Nov 29 03:54:28 UTC 2017


#42609: Regression: WordPress 4.9 theme editor cannot edit files when running on a
Windows based server
--------------------------+---------------------
 Reporter:  Otto42        |       Owner:  dd32
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:  4.9.1
Component:  Editor        |     Version:  4.9
 Severity:  normal        |  Resolution:  fixed
 Keywords:                |     Focuses:
--------------------------+---------------------
Changes (by dd32):

 * status:  reopened => closed
 * resolution:   => fixed


Comment:

 @highpec Thanks, that confirms that the issue you're experiencing is
 unrelated to this ticket. This ticket is specifically related to the case
 where editing a file on a windows platform returns `Sorry, that file
 cannot be edited.`.

 It sounds like you may have an issue with the added features of validating
 that the PHP files parse after an update. That was also added in #21622

 Unfortunately it's impossible for me to diagnose that remotely, and you'll
 need to debug/diagnose the issue yourself.
 Once you've done so and able to pinpoint what the issue is, you can
 [https://core.trac.wordpress.org/newticket create your own Trac ticket]
 detailing the issue and steps to reproduce / what line of code is failing
 and/or causing issue.

 The area of code you'll need to investigate is most likely (but may be
 something else entirely) this:
 https://core.trac.wordpress.org/browser/trunk/src/wp-
 admin/includes/file.php?marks=491,494-601#L485
 If I had to guess, it's probably related to the `opcache_invalidate()`
 calls with a specific version of PHP/extension combinations that fails -
 but you'll need to debug that yourself and open a new ticket if that's the
 case.

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


More information about the wp-trac mailing list