Fatal error: Call to a member function using_index_permalinks() on null in /wp-includes/rest-api.php on line 344