• Resolved Dmitriy

    (@dimchik)


    Hi team, really odd issue after upgrading to 6.01.12. Certain admin users (not all) are getting a fatal error when visiting /wp-admin/nav-menus.php in CMS. Same error appears for the same users in incognito mode as well. This is on WP Engine running PHP8.0. Tried clearing object cache to no avail. The error is as follows:

    PHP Fatal error: Uncaught TypeError: array_search(): Argument #2 ($haystack) must be of type array, string given in /nas/content/live/website/wp-content/plugins/the-events-calendar/src/Tribe/Main.php:3535#012Stack trace:#012#0 /nas/content/live/website/wp-content/plugins/the-events-calendar/src/Tribe/Main.php(3535): array_search(‘add-tribe_event…’, ”)#012#1 /nas/content/live/website/wp-includes/class-wp-hook.php(308): Tribe__Events__Main->setInitialMenuMetaBoxes(”)#012#2 /nas/content/live/website/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters(NULL, Array)#012#3 /nas/content/live/website/wp-includes/plugin.php(517): WP_Hook->do_action(Array)#012#4 /nas/content/live/website/wp-admin/admin-header.php(163): do_action(‘admin_head’)#012#5 /nas/content/live/website/wp-admin/nav-menus.php(691): require_once(‘/nas/content/li…’)#012#6 {main}#012 thrown in /nas/content/live/website/wp-content/plugins/the-events-calendar/src/Tribe/Main.php on line 3535

Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Support Darian

    (@d0153)

    Hi @dimchik

    I’m apologize that you’re having this issue. Let me help you with this one.

    There could be a plugin/theme conflict on your end. Could you try running a conflict test? I suggest conducting these tests on a Staging Server.

    If that doesn’t help, could you provide the version of the following? This will help me understand how your system is set up.

    • WordPress
    • Theme
    Thread Starter Dmitriy

    (@dimchik)

    @d0153, I am running 6.2.2 with a custom theme. I found a solution (below), but it would probably be best to test the variable before passing the value to the array_search() function in the code src/Tribe/Main.php line 3535.

    In case anyone runs into this, the solution is to delete “metaboxhidden_nav-menus” keys from the _usermeta table where meta_value appears empty:

    SELECT?*?FROM?XXX_usermeta?where?meta_key=”metaboxhidden_nav-menus”;

    Look for rows in the results where meta_value is empty and delete them.

    Plugin Support Darian

    (@d0153)

    Hi @dimchik

    Thanks for sharing this information.

    Allow me to share this with the team, and I’ll get back to you once I know more.

    Plugin Support Darian

    (@d0153)

    Hi @dimchik

    Thanks for patiently waiting. At this time, we have created an internal bug ticket that will handle this issue.

    While we don’t have an ETA, you’ll get notified once there is an update and fix.

    If you do have other concerns or issues you need help with, please create another support topic as indicated in the www.ads-software.com support guidelines.


    Internal Bug Ticket Reference: TEC-4780

    Thread Starter Dmitriy

    (@dimchik)

    Thanks so much for the update and prompt support.

    Plugin Support Darian

    (@d0153)

    Hi @dimchik

    You’re very welcome! If you need anything else, don’t hesitate to let us know.

    Thread Starter Dmitriy

    (@dimchik)

    FYI, still an issue in 6.0.13.1

    Plugin Support Darian

    (@d0153)

    Hi @dimchik

    I just checked the status of TEC-4780, and this it’s currently in QA.

    As soon as we release a fix for this issue, we will post an update here in the thread.

    Appreciate your patience so far. If you do have other concerns or issues you need help with, please create another support topic as indicated in the www.ads-software.com support guidelines.

    Plugin Support Gladys

    (@greventscalendar)

    Hi there,
    ?
    With our latest release of?The Events Calendar 6.1.0, we resolved an issue that caused a fatal error when accessing the Appearance menu.
    ?
    We recommend that you update The Events Calendar to the latest released versions.
    ?
    As always, we suggest testing updates on a staging site first and having a recent backup ready, but it should all be smooth sailing. If you implemented any workarounds, you can remove them after updating the plugins.
    ?
    If you still have issues after updating to the latest releases, please open a new support thread and include as many specific details as possible.
    ?
    Have a great day,
    Events Calendar Support Team

    Thread Starter Dmitriy

    (@dimchik)

    That’s good news, thank you!

    • This reply was modified 1 year, 5 months ago by Dmitriy.
Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Fatal Error in 6.0.12 / PHP8 When Visiting Appearance->Menus’ is closed to new replies.