• Resolved leemon

    (@leemon)


    I’m testing WP 6.2-beta2-55365 together with the multilanguage Polylang plugin with three languages (English, French and Spanish) set up. The default language is Spanish. When I try to edit the Spanish menu in the Menus screen (https://example.com/wp-admin/nav-menus.php) I get the following error (I have no problems editing the English and French ones):

    [20-Feb-2023 18:09:19 UTC] PHP Fatal error:  Uncaught TypeError: Illegal offset type in isset or empty in /usr/home/example.com/web/wp-includes/class-wp-metadata-lazyloader.php:89
    Stack trace:
    #0 /usr/home/example.com/web/wp-includes/post.php(7843): WP_Metadata_Lazyloader->queue_objects('term', Array)
    #1 /usr/home/example.com/web/wp-includes/class-wp-query.php(3532): wp_queue_posts_for_term_meta_lazyload(Array)
    #2 /usr/home/example.com/web/wp-includes/class-wp-query.php(3787): WP_Query->get_posts()
    #3 /usr/home/example.com/web/wp-admin/includes/nav-menu.php(433): WP_Query->query(Array)
    #4 /usr/home/example.com/web/wp-admin/includes/template.php(1577): wp_nav_menu_item_post_type_meta_box(NULL, Array)
    #5 /usr/home/example.com/web/wp-admin/nav-menus.php(981): do_accordion_sections(Object(WP_Screen), 'side', NULL)
    #6 {main}
    thrown in /usr/home/example.com/web/wp-includes/class-wp-metadata-lazyloader.php on line 89

    Now I can only edit the Spanish menu via the Customizer. PHP version is 8.0.27.

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Menus and Polylang in WP 6.2 beta2’ is closed to new replies.