[wp-trac] [WordPress Trac] #54005: Get warning error of "Undefined array key 0" after upgrading to PHP 8.0.9

WordPress Trac noreply at wordpress.org
Wed Aug 25 16:16:07 UTC 2021


#54005: Get warning error of "Undefined array key 0" after upgrading to PHP 8.0.9
--------------------------+-----------------------------
 Reporter:  moazzamgodil  |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Plugins       |    Version:  5.8
 Severity:  critical      |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 Get warning errors on my plugin after upgrading to PHP 8.0.9. When calling
 the action of admin_notice, its return errors are given below:

 Warning: Undefined array key 0 in C:\xampp\htdocs\wordpress\wp-
 includes\plugin.php on line 947
 Warning: Undefined array key 0 in C:\xampp\htdocs\wordpress\wp-
 includes\plugin.php on line 950"

 How do I fix this error? Thanks

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


More information about the wp-trac mailing list