• andymorgan

    (@andymorgan)


    Hi,

    We received an error which has ruined the theme and broke our website. We’re not sure if it’s related to the 6.5.2 update, which WP tried to push through.

    Here’s a list of the critical errors. We’re not sure whether to reattempt to update the website manually?

    Fatal error: Uncaught Error: in_array(): Argument #2 ($haystack) must be of type array, string given
    in /var/www/html/wp-content/themes/engagev2/includes/general_function.php on line 266

    Call stack:

    1. in_array()
      wp-content/themes/engagev2/includes/general_function.php:266
    2. Menu_With_Description::start_el()
      wp-includes/class-wp-walker.php:147
    3. Walker::display_element()
      wp-includes/class-wp-walker.php:247
    4. Walker::walk()
      wp-includes/post-template.php:1567
    5. walk_page_tree()
      wp-includes/post-template.php:1350
    6. wp_list_pages()
      wp-includes/post-template.php:1482
    7. wp_page_menu()
      wp-includes/nav-menu-template.php:164
    8. wp_nav_menu()
      wp-content/themes/engagev2/header.php:95
    9. require_once()
      wp-includes/template.php:790
    10. load_template()
      wp-includes/template.php:725
    11. locate_template()
      wp-includes/general-template.php:48
    12. get_header()
      wp-content/themes/engagev2/page.php:4
    13. include()
      wp-includes/template-loader.php:106
    14. require_once()
      wp-blog-header.php:19

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    The error is coming from your theme.

    This appears to be a custom-made theme for your site, so I suggest getting in touch with the dev(s) who built it for you.

    Thread Starter andymorgan

    (@andymorgan)

    Unfortunately we are not in touch with the developers that made our custom built site, which I appreciate it’s tricky. But if there was any guidance as to whether it was potentially caused by an auto update that would be really appreciated.

    Thanks for your help.

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    Probably not, but maybe. It could also be due to an updated version of PHP. But not upgrading WP itself is not something that’s a long term strategy. Your theme has an error and needs to be fixed.

    If you need to hire a dev to look into this, we recommend https://jobs.wordpress.net

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Critical PHP Error – 6.5.2?’ is closed to new replies.