[wp-trac] [WordPress Trac] #59057: Critical error after update to 6.3 due to WP_Metadata_Lazyloader

WordPress Trac noreply at wordpress.org
Thu Aug 10 18:50:01 UTC 2023


#59057: Critical error after update to 6.3 due to WP_Metadata_Lazyloader
-------------------------------+------------------------------
 Reporter:  alexpaterson       |       Owner:  (none)
     Type:  defect (bug)       |      Status:  new
 Priority:  normal             |   Milestone:  Awaiting Review
Component:  General            |     Version:  6.3
 Severity:  critical           |  Resolution:
 Keywords:  reporter-feedback  |     Focuses:
-------------------------------+------------------------------

Comment (by alexpaterson):

 Replying to [comment:1 joemcgill]:
 > Hi @alexpaterson, welcome to Trac! It sounds to me like something
 specific to your environment is trying to load this class twice. Could you
 share any more info about the callstack that is displayed when you see
 this error?
 >
 > In case it's helpful, this class used to be loaded in `wp-settings.php`,
 but was moved to `/wp-includes/meta.php` in WP 6.3 so it would be loaded
 earlier for environments that tried to invoke the class during
 sunrise.php. See https://core.trac.wordpress.org/ticket/58185#comment:8
 (and the resulting discussion).


 Hi @joemcgill,

 Thanks for your quick response. That's all the information I can see
 displayed I'm afraid - I enabled logs through wp-config.php, but it's only
 logging the following:


 [10-Aug-2023 18:45:21 UTC] PHP Fatal error:  Cannot declare class
 WP_Metadata_Lazyloader, because the name is already in use in
 /opt/bitnami/wordpress/wp-includes/class-wp-metadata-lazyloader.php on
 line 32


 Can you think of any possible solutions to this?

 Thanks

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


More information about the wp-trac mailing list