Tagged: menus
Please help. I cant use the menu handling…
*****
Fatal error: Uncaught TypeError: Argument 2 passed to Avia_Gutenberg::handler_display_post_states() must be an instance of WP_Post, null given, called in /var/www/WebSites/demo3.jobbmac.se/wp-includes/class-wp-hook.php on line 287 and defined in /var/www/WebSites/demo3.jobbmac.se/wp-content/themes/enfold/config-gutenberg/class-avia-gutenberg.php:657 Stack trace: #0 /var/www/WebSites/demo3.jobbmac.se/wp-includes/class-wp-hook.php(287): Avia_Gutenberg->handler_display_post_states(Array, NULL) #1 /var/www/WebSites/demo3.jobbmac.se/wp-includes/plugin.php(206): WP_Hook->apply_filters(Array, Array) #2 /var/www/WebSites/demo3.jobbmac.se/wp-admin/includes/template.php(2170): apply_filters(‘display_post_st…’, Array, NULL) #3 /var/www/WebSites/demo3.jobbmac.se/wp-includes/nav-menu.php(823): get_post_states(NULL) #4 [internal function]: wp_setup_nav_menu_item(Object(WP_Post)) #5 /var/www/WebSites/demo3.jobbmac.se/wp-includes/nav-menu.php(749): array_map(‘wp_setup_nav_me…’, Array) #6 /var/www/WebSites/demo3.jobbmac.se/wp-admin/na in /var/www/WebSites/demo3.jobbmac.se/wp-content/themes/enfold/config-gutenberg/class-avia-gutenberg.php on line 657
Hi Roine,
Are you using PHP version 7.4? can you try to revert to PHP version 7.3?
Best regards,
Nikko
I’m running PHP 7.2.x. I switched themes back and forth and now everything seems to work. Something must have gone wrong when migrating with Duplicator Pro. Cased closed.
Hi,
I’m glad this was resolved. If you need additional help, please let us know here in the forums.
Best regards,
Jordan Shannon