Make WordPress Core

Opened 7 months ago

Last modified 7 months ago

#59910 new defect (bug)

Attempt to read property "title" on null

Reported by: jrandyanderson's profile jrandyanderson Owned by:
Milestone: Awaiting Review Priority: normal
Severity: minor Version: 6.3.2
Component: Customize Keywords:
Focuses: Cc:


Hello! I am upgrading some sites to PHP 8.1 and I noticed this warning when using the Customizer screen:

[11-Nov-2023 06:17:08 UTC] PHP Warning: Attempt to read property "title" on null in /wordpress-versions/6.3.2/wp-includes/class-wp-customize-widgets.php on line 905

Change History (2)

#1 @adamsilverstein
7 months ago

Hey @jrandyanderson thanks for the bug report!

I wasn't able to reproduce using a vanilla install of trunk (latest core) using PHP 8.1.17.

Did you only see this on WordPress 6.3 or also 6.4?

Can you give the full trace to the warning, if there is a plugin or theme path, try disabling that plugin (or changing theme) in a staging instance of the site.

#2 @dlh
7 months ago

Possible duplicate of #58183. @jrandyanderson is your similar to the one reported in that ticket?

Note: See TracTickets for help on using tickets.