[wp-trac] [WordPress Trac] #51697: [PHP8] Uncaught TypeError: array_flip():
WordPress Trac
noreply at wordpress.org
Mon Nov 2 22:00:54 UTC 2020
#51697: [PHP8] Uncaught TypeError: array_flip():
----------------------------+---------------------
Reporter: bph | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: 5.6
Component: Administration | Version: trunk
Severity: normal | Resolution:
Keywords: php8 | Focuses:
----------------------------+---------------------
Changes (by SergeyBiryukov):
* component: Menus => Administration
* milestone: Awaiting Review => 5.6
Old description:
> while using trunk on php8 I ran into this error, when i try to access wp-
> admin pages.
>
> Fatal error: Uncaught TypeError: array_flip(): Argument #1 ($array) must
> be of type array, null given in public_html/wp-
> admin/includes/menu.php:280
>
> Stack trace:
> #0 public_html/wp-admin/includes/menu.php(280): array_flip(NULL)
> #1 public_html/wp-admin/menu.php(327): require_once('/home/customer/...')
> #2 public_html/wp-admin/admin.php(158): require('/home/customer/...')
> #3 public_html/wp-admin/index.php(10): require_once('/home/customer/...')
> #4 {main} thrown in public_html/wp-admin/includes/menu.php on line 280
New description:
while using trunk on php8 I ran into this error, when i try to access wp-
admin pages.
{{{
Fatal error: Uncaught TypeError: array_flip(): Argument #1 ($array) must
be of type array, null given in public_html/wp-admin/includes/menu.php:280
Stack trace:
#0 public_html/wp-admin/includes/menu.php(280): array_flip(NULL)
#1 public_html/wp-admin/menu.php(327): require_once('/home/customer/...')
#2 public_html/wp-admin/admin.php(158): require('/home/customer/...')
#3 public_html/wp-admin/index.php(10): require_once('/home/customer/...')
#4 {main} thrown in public_html/wp-admin/includes/menu.php on line 280
}}}
--
--
Ticket URL: <https://core.trac.wordpress.org/ticket/51697#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list