[wp-trac] [WordPress Trac] #61792: PHP warning `Undefined array key "widget_id"` in legacy widget

WordPress Trac noreply at wordpress.org
Wed Jul 31 05:52:38 UTC 2024


#61792: PHP warning `Undefined array key "widget_id"` in legacy widget
------------------------------+------------------------------
 Reporter:  rabmalin          |       Owner:  (none)
     Type:  defect (bug)      |      Status:  new
 Priority:  normal            |   Milestone:  Awaiting Review
Component:  Widgets           |     Version:
 Severity:  normal            |  Resolution:
 Keywords:  has-testing-info  |     Focuses:
------------------------------+------------------------------
Changes (by narenin):

 * keywords:   => has-testing-info


Comment:

 == Test Report

 I have tried to replicate this issue and able to replicate the same.

 ----

 **Environment**

     WordPress: 6.6.1
     PHP: 8.1.23
     Server: nginx/1.16.0
     Database: mysqli (Server: 8.0.16 / Client: mysqlnd 8.1.23)
     Browser: Chrome 126.0.0.0 (macOS)
     Theme: Twenty Sixteen (Version: 3.3)

 **Results:**

 I am also getting the error in the error log.


 {{{
 2024/07/31 11:05:00 [error] 971#971: *2 FastCGI sent in stderr: "PHP
 message: PHP Warning:  Undefined array key "widget_id" in
 /Users/****/plugins/my-widget-plugin/my-widget-plugin.php on line 29
 }}}

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


More information about the wp-trac mailing list