[wp-trac] [WordPress Trac] #54005: Get warning error of "Undefined array key 0" after upgrading to PHP 8.0.9
WordPress Trac
noreply at wordpress.org
Thu Aug 26 09:09:48 UTC 2021
#54005: Get warning error of "Undefined array key 0" after upgrading to PHP 8.0.9
------------------------------------+------------------------------
Reporter: moazzamgodil | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Plugins | Version: 5.8
Severity: critical | Resolution:
Keywords: php8 reporter-feedback | Focuses:
------------------------------------+------------------------------
Comment (by moazzamgodil):
Replying to [comment:3 Hareesh Pillai]:
> Thanks for the confirmation.
> How are you calling admin_notice? In your theme's functions file? Can
you share the code?
My issue has been resolved after I replaced **add_action** with
**do_action**. Before the update, the admin_notice with add_action was
working fine. Anyways thanks a lot.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/54005#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list