• Ervin Domonkos

    (@arachnoidea)


    Hi nK,

    If I use the plugin under PHP 8.1, I am getting the following PHP warning in the debug.log:

    PHP Deprecated: strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /wp-includes/block-supports/layout.php on line 837

    I am using the latest WP (6.4.1) and the Accordion block on the page.

    Thanks,
    Ervin

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author nK

    (@nko)

    Hi Ervin,

    Thank you for reporting to me. This bug is related to the Gutenberg code, and we can’t fix it quickly. I have created an issue in the Gutenberg GitHub repo here – https://github.com/WordPress/gutenberg/issues/56169.

    This issue also occurs on other blocks but does not crash the output. You can disable WP_DEBUG for now. In future plugin updates, we will consider reworking the code of these blocks, as the Gutenberg team may not fix this issue quickly.

    Regards,
    Nikita.

    Thread Starter Ervin Domonkos

    (@arachnoidea)

    Hi Nikita,

    Thank you so much for taking care about this. You really walked the extra mile with it by describing the issue for the Gutenberg devs.

    Hopefully they’ll fix it very soon. Yep, it doesn’t break the site, so it’s okay for now.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘PHP warning under PHP 8.1’ is closed to new replies.