[wp-trac] [WordPress Trac] #54385: Fatal error uploading media on PHP8

WordPress Trac noreply at wordpress.org
Tue Nov 30 21:22:19 UTC 2021


#54385: Fatal error uploading media on PHP8
-------------------------------------------------+-------------------------
 Reporter:  stevegs                              |       Owner:
                                                 |  hellofromTonya
     Type:  defect (bug)                         |      Status:  closed
 Priority:  normal                               |   Milestone:  5.9
Component:  Media                                |     Version:  2.5
 Severity:  normal                               |  Resolution:  fixed
 Keywords:  php8 has-patch needs-dev-note has-   |     Focuses:
  unit-tests commit                              |
-------------------------------------------------+-------------------------

Comment (by stevegs):

 Replying to [comment:51 jrf]:
 > @Gomle This is not the right place for support questions. As you can
 read in the thread above, this issue has been fixed and the fix will be
 included in WP 5.9.
 >
 > So the short of it is:
 > * Either try your import with the WP 5.9 beta version (which includes
 the patch and will be released later today).
 > * Or wait for WP 5.9 to be released, upgrade and do the import then.
 > * Or try your hand at applying the **real** patch - [52269] - to your
 current install.

 @Gomle: Two other options if you don't want to mess with your WP core
 files:
 * Roll back to PHP 7.4 for now if your system administrator allows it.
 That version of PHP has not yet been classed as 'obsolete'
 * Import your images into any photo editing software that strips out Exif
 info (eg. Paintshop Pro) and then upload.  I've looked at one of your
 images: the F-number comes back as NaN (ie. Not a Number), which got
 returned as a string before this fix.  This causes PHP8 to (correctly)
 throw a wobbly: PHP 7.4 ignores the error.

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


More information about the wp-trac mailing list