Added a check to make sure that allow_url_fopen is enabled (required for a few things like test relays currently).