Fatal error with WP 5.5.1
-
Hello! After updating to WP 5.5.1, the plugin throws a WP error:
Fatal error: Uncaught Error: Call to undefined method stdClass::get_rest_controller() in /www/wp-includes/rest-api.php:2209 Stack trace: #0 /www/wp-includes/rest-api.php(2245): rest_get_route_for_term(Object(WP_Term)) #1 /www/wp-includes/rest-api.php(943): rest_get_queried_resource_route() #2 /www/wp-includes/class-wp-hook.php(285): rest_output_link_header() #3 /www/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters(false, Array) #4 /www/wp-includes/plugin.php(478): WP_Hook->do_action(Array) #5 /www/wp-includes/template-loader.php(13): do_action(‘template_redire…’) #6 /www/wp-blog-header.php(19): require_once(‘/Users/spektakl…’) #7 / in /www/wp-includes/rest-api.php on line 2209
09The site does not throw the error if I deactivate the plugin, but again throws it when activating it.
Maybe it has something to do with “show_in_rest=true” flag that now, with WP 5.5, is needed?
- The topic ‘Fatal error with WP 5.5.1’ is closed to new replies.