File_get_contents() and fopen() errors

Hi,

Using Local, PHP7 and the above is getting the following errors.

PHP Warning:  fopen(): php_network_getaddresses: getaddrinfo failed

Looks to be quite common and a usual fix is to set allow_url_fopen to a truthy value, however this is already set.

Have pushed the code to staging and works fine on a live env.

Thanks,
Tom

Sorry for the trouble!

If you try file_get_contents() with the IP of the site does it work?

If not, please go to Help ยป Restart Local Machine.