[wp-trac] [WordPress Trac] #61060: PHP Warning: Undefined array key 1 in /chroot/home/ab2bb14c/fullerfasteners.com/html/wp-includes/media.php on line 71

WordPress Trac noreply at wordpress.org
Wed May 1 21:44:52 UTC 2024


#61060: PHP Warning:  Undefined array key 1 in
/chroot/home/ab2bb14c/fullerfasteners.com/html/wp-includes/media.php on
line 71
-------------------------------+------------------------------
 Reporter:  fullermetric       |       Owner:  (none)
     Type:  defect (bug)       |      Status:  new
 Priority:  normal             |   Milestone:  Awaiting Review
Component:  Media              |     Version:  6.5
 Severity:  normal             |  Resolution:
 Keywords:  reporter-feedback  |     Focuses:
-------------------------------+------------------------------

Comment (by fullermetric):

 Hello @antpb

 This is a warning, so I'm not sure if there would be a stack involved.
 However, this is a cut of what surrounded the error in our debug.log

 [23-Apr-2024 15:29:53 UTC] PHP Deprecated:  preg_split(): Passing null to
 parameter #2 ($subject) of type string is deprecated in
 /chroot/home/ab2bb14c/fullerfasteners.com/html/wp-includes/formatting.php
 on line 3506
 [23-Apr-2024 15:30:27 UTC] PHP Warning:  Undefined array key 1 in
 /chroot/home/ab2bb14c/fullerfasteners.com/html/wp-includes/media.php on
 line 71
 [23-Apr-2024 15:30:27 UTC] PHP Warning:  Undefined array key 1 in
 /chroot/home/ab2bb14c/fullerfasteners.com/html/wp-includes/media.php on
 line 71
 [23-Apr-2024 15:30:27 UTC] PHP Warning:  Undefined array key 1 in
 /chroot/home/ab2bb14c/fullerfasteners.com/html/wp-includes/media.php on
 line 71
 [23-Apr-2024 15:30:27 UTC] PHP Warning:  Undefined array key 1 in
 /chroot/home/ab2bb14c/fullerfasteners.com/html/wp-includes/media.php on
 line 71
 [23-Apr-2024 15:30:27 UTC] PHP Warning:  Undefined array key 1 in
 /chroot/home/ab2bb14c/fullerfasteners.com/html/wp-includes/media.php on
 line 71
 [23-Apr-2024 15:30:27 UTC] PHP Warning:  Undefined array key 1 in
 /chroot/home/ab2bb14c/fullerfasteners.com/html/wp-includes/media.php on
 line 71
 [23-Apr-2024 15:30:28 UTC] PHP Warning:  Attempt to read property
 "post_title" on null in /chroot/home/ab2bb14c/fullerfasteners.com/html/wp-
 content/plugins/js_composer/include/helpers/helpers.php on line 60

 [https://stackoverflow.com/questions/6426758/php-log-stacktrace-for-
 warnings]
 If you can provide us with the php code to stacktrace on warnings and
 which file to add the code to then I can assist further.

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


More information about the wp-trac mailing list