[wp-trac] [WordPress Trac] #59057: Critical error after update to 6.3 due to WP_Metadata_Lazyloader
WordPress Trac
noreply at wordpress.org
Sat Aug 19 03:44:19 UTC 2023
#59057: Critical error after update to 6.3 due to WP_Metadata_Lazyloader
--------------------------+------------------------
Reporter: alexpaterson | Owner: joemcgill
Type: defect (bug) | Status: assigned
Priority: normal | Milestone: 6.3.1
Component: General | Version: 6.3
Severity: critical | Resolution:
Keywords: has-patch | Focuses:
--------------------------+------------------------
Comment (by Jeffinho2016):
Tested this. On my side, I can confirm that it was third-party code the
issue.
Wordpress Shortinit includes meta.php by default, but not settings.php.
Prior to 6.3, class-wp-metadata-lazyloader.php was added to the shortinit
to get extra functions.
Since class-wp-metadata-lazyloader.php is now loaded by meta.php, it also
gets loaded by default in shortinit mode. So it was being loaded, but not
by WP, but by a third-party that didn't update for 6.3.
Replying to [comment:21 Jeffinho2016]:
> Just wanted to give a quick update on my side for this. Thought maybe
could help.
> I found out that I have somewhere a piece of code that does a wordpress
"SHORTINIT", and includes a bunch of other extra files than the ones
included with the shortinit. One of these files is class-wp-metadata-
lazyloader.php. And it is just behind a required, not a required_once.
> Haven't tested yet to adjust that code, but i'm kind of 100% confident
that it's the problem behind it. At least on my side.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/59057#comment:24>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list