Please make sure that, your allow_url_fopen or cURL is enabled. Also, make sure your API key and location is correct. Verify your location from here https://openweathermap.org/find

Please enter the email address associated with your User account. Your username will be emailed to the email address on file.