• My website version was in 6.2.2 and the error shows previously as
    1. “PHP Fatal error: Cannot declare class WP_Metadata_Lazyloader, because the name is already in use in /home/karanfilasm/public_html/wp-includes/class-wp-metadata-lazyloader.php on line 32” or

    2. now currently as “PHP Fatal error: Cannot redeclare wp_queue_comments_for_comment_meta_lazyload() (previously declared in /home/udbetunitedum3/public_html/wp-includes/comment.php:520) in /home/udbetunitedum3/public_html/wp-includes/deprecated.php on line 4659”

    I have tried everything PHP version change, fresh plugin, theme, fresh htaccess, wp-config, but it got resolved after fresh wp core files update even with version 6.2.2 or 6.3. What’s the problem then? Even checked the class it said but there was no class defined in any of the files defined twice
    Ref:
    https://prnt.sc/HwJdAWECtHQ0
    https://prnt.sc/d-E2YYOEi71o

    any solution? did anyone face the same issue?

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi @jingchak. It looks like there have been other reports of this issue. The core team is trying to determine the cause of the issue, you can track that on this ticket: https://core.trac.www.ads-software.com/ticket/59057 — it could help if you share details about your setup there.

    The recommendation if you’ve updated to WordPress 6.3, is to check the wp-settings.php file and make sure it was properly updated— the class-wp-metadata-lazyloader.php file should not be loaded there.

    Thread Starter jingchak

    (@jingchak)

    Thanks for the response.
    I have checked the respective files. class was not defined in the file but I also couldn’t find anywhere the wp version is mentioned in that file. Could you help me find where it would have mentioned to tell you that?
    As said earlier, it resolves even with the 6.2.2 version by manually updating the wp-admin and wp-includes, other wp core files.
    The link you shared people are still on wondering where the error trigger and to sort it out i am afraid it happens to all my websites also. If you need any specific setup details, please specify it to share with you. i am in shared hosting, wp – 6.3, PHP 8.1,

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘http 500 – PHP Fatal error: Cannot declare class WP_Metadata_Lazyloader’ is closed to new replies.