[wp-trac] [WordPress Trac] #51667: php notices in logs

WordPress Trac noreply at wordpress.org
Thu Oct 29 19:45:40 UTC 2020


#51667: php notices in logs
--------------------------+-----------------------------
 Reporter:  lsamins       |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  General       |    Version:  5.5.1
 Severity:  minor         |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 On php 7.4 I receive php notices in the error log. Not really sure if its
 a theme problem or problem with the media.php. Just reporting in case its
 something that should be addressed. But my log is riddled full of these.
 Maybe add a check to see if the parameter is actually an array first?

 [29-Oct-2020 19:20:36 UTC] PHP Notice:  Trying to access array offset on
 value of type bool in wp-includes/media.php on line 782
 [29-Oct-2020 19:20:36 UTC] PHP Notice:  Trying to access array offset on
 value of type bool in wp-includes/media.php on line 788
 [28-Oct-2020 23:11:32 UTC] PHP Notice:  Trying to access array offset on
 value of type bool in wp-includes/media.php on line 781
 [28-Oct-2020 23:11:32 UTC] PHP Notice:  Trying to access array offset on
 value of type bool in wp-includes/media.php on line 787

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/51667>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list