Uncaught TypeError
-
Just tested this plugin with WP 5.9.2, PHP 8.0.
When opening the wp-admin/nav-menus.php page, I get:
Fatal error: Uncaught TypeError: in_array(): Argument #2 ($haystack) must be of type array, string given in .../wp-content/plugins/user-menus/includes/classes/admin/menu-settings.php:162 Stack trace: #0 .../wp-content/plugins/user-menus/includes/classes/admin/menu-settings.php(162): in_array('administrator', 'in', true) #1 .../wp-includes/class-wp-hook.php(309): JP\UM\Admin\Menu_Settings::fields('3237', Object(WP_Post), 1, Object(stdClass)) #2 .../wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters('', Array) #3 .../wp-includes/plugin.php(474): WP_Hook->do_action(Array) #4 .../wp-admin/includes/class-walker-nav-menu-edit.php(251): do_action('wp_nav_menu_ite...', '3237', Object(WP_Post), 1, Object(stdClass), 0) #5 .../wp-includes/class-wp-walker.php(146): Walker_Nav_Menu_Edit->start_el('\t\t<li id="menu-...', Object(WP_Post), 1, Object(stdClass)) #6 .../wp-includes/class-wp-walker.php(158): Walker->display_element(Object(WP_Post), Array, 0, 1, Array, '\t\t<li id="menu-...') #7 .../wp-includes/class-wp-walker.php(246): Walker->display_element(Object(WP_Post), Array, 0, 0, Array, '\t\t<li id="menu-...') #8 .../wp-includes/nav-menu-template.php(608): Walker->walk(Array, 0, Object(stdClass)) #9 .../wp-admin/includes/nav-menu.php(1094): walk_nav_menu_tree(Array, 0, Object(stdClass)) #10 .../wp-admin/nav-menus.php(578): wp_get_nav_menu_to_edit(38) #11 {main} thrown in .../wp-content/plugins/user-menus/includes/classes/admin/menu-settings.php on line 162
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Uncaught TypeError’ is closed to new replies.