Fatal error: Uncaught Error: Call to a member function using_index_permalinks() on null in /www/wp-includes/rest-api.php:508
Stack trace:
#0 /www/wp-includes/rest-api.php(571): get_rest_url()
#1 /www/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php(2784): rest_url()
#2 /www/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php(2729): WP_REST_Posts_Controller->get_schema_links()
#3 /www/wp-includes/rest-api/endpoints/class-wp-rest-controller.php(388): WP_REST_Posts_Controller->get_item_schema()
#4 /www/wp-includes/rest-api/endpoints/class-wp-rest-controller.php(343): WP_REST_Controller->get_context_param()
#5 /www/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php(2911): WP_REST_Controller->get_collection_params()
#6 /www/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php(83): WP_REST_Posts_Controller->get_collection_params()
#7 /www/wp-includes/rest-api.php(274): WP_REST_Posts_Controller->register_routes()
#8 /www/wp-includes/class-wp-hook.php(324): create_initial in /www/wp-includes/rest-api.php on line 508