PHP Warning: get_headers() [<a href='function.get-headers'>function.get-headers</a>]: This function may only be used against URLs.

Add the following setting to ~/.php/php.ini

allow_url_fopen = On;

This will fix the above mentioned error. This setting is disabled by default to enhance security.