Notice: Undefined index: HTTP_REFERER in /usr/share/wordpress/wp-load.php on line 3

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