This error occurs because sometimes web host has strict security settings in the PHP configuration to avoid overuse of servers and resources.

How to remove error:

1. Open php.ini file
2. locate the following line: allow_url_fopen = Off
3. Change value of off to on.

In case you using shared hosting and you don’t have access to your php.ini file than contact your web hosts