[wp-trac] [WordPress Trac] #63151: [E_WARNING] class-wp-customize-widgets.php:923

WordPress Trac noreply at wordpress.org
Sun Mar 23 14:19:46 UTC 2025


#63151: [E_WARNING] class-wp-customize-widgets.php:923
-------------------------------+------------------------------
 Reporter:  ArtZ91             |       Owner:  (none)
     Type:  defect (bug)       |      Status:  new
 Priority:  normal             |   Milestone:  Awaiting Review
Component:  Customize          |     Version:  6.7.2
 Severity:  normal             |  Resolution:
 Keywords:  reporter-feedback  |     Focuses:
-------------------------------+------------------------------

Comment (by ArtZ91):

 === Environment

 - WordPress 6.7.2
 - PHP: 8.1.2
 - Server: Apache/2.4.52 (Ubuntu)
 - Database: mysql  Ver 8.0.41-0ubuntu0.22.04.1 for Linux on x86_64
 ((Ubuntu))
 - Browser: Chrome 134.0.6998.118
 - Theme: minimal custom theme with empty functions.php
 - MU Plugins: None activated
 - Plugins: None activated

 === Reproduction Steps

 Make and activate minimal custom theme with empty functions.php
 Go to customizer
 Check server apache2/error.logs

 [Sun Mar 23 13:50:07.786408 2025] [php:warn] [pid 1197845] [client
 X.X.X.X:XXXXX] PHP Warning:  Attempt to read property "title" on null in
 /var/www/mydomain.com/wp-includes/class-wp-customize-widgets.php on line
 923, referer: https://mydomnain.com/

 === Additional Notes

 The problem is #available-widgets template trying to access panel title on
 null, because panel with id `widgets` is not loaded by
 WP_Customize_Manager.

 This is WP issue, because theme developers are not required to support
 widgets in their custom themes.

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


More information about the wp-trac mailing list