[wp-trac] [WordPress Trac] #54546: Fatal error receive while updating WP 5.8.2 to WP 5.9.

WordPress Trac noreply at wordpress.org
Thu Dec 2 20:54:33 UTC 2021

#54546: Fatal error receive while updating WP 5.8.2 to WP 5.9.
 Reporter:  apeksha10                  |       Owner:  (none)
     Type:  defect (bug)               |      Status:  new
 Priority:  normal                     |   Milestone:  5.9
Component:  Upgrade/Install            |     Version:  trunk
 Severity:  normal                     |  Resolution:
 Keywords:  needs-patch needs-testing  |     Focuses:

Comment (by hellofromTonya):

 Replying to [comment:22 pbiron]:
 > Yes, the file is still there, but the class defined in that file changed
 from the unnamespaced `Request_Exception` to simple `Exception` in the new

 Yes, the file is still there. However, it has not been loaded into memory.
 The "from" version code is in memory including the autoloader. But the
 filesystem has copied changed the code. So for this specific issue, the
 autoloader in Requests loads the "to" version of the exception file into
 memory, but the code in that file is the "to" version which does not match
 the needs of the "from" version. It's the wrong class. Mismatch of "from"
 and "to" versions of the code.

 This is why the solution proposed for Problem 1 is to preload all files
 that are potentially needed for the upgrade process ''before'' changing
 the filesystem files/code. This extra step would ensure all needed code is
 already in memory so that no additional files are needed to be loaded,
 such as the exception file in the Requests library.

 Does that make sense @pbiron?

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

More information about the wp-trac mailing list