{"action":"created","issue":{"url":"https://api.github.com/repos/kylereicks/picturefill.js.wp/issues/58","labels_url":"https://api.github.com/repos/kylereicks/picturefill.js.wp/issues/58/labels{/name}","comments_url":"https://api.github.com/repos/kylereicks/picturefill.js.wp/issues/58/comments","events_url":"https://api.github.com/repos/kylereicks/picturefill.js.wp/issues/58/events","html_url":"https://github.com/kylereicks/picturefill.js.wp/issues/58","id":69549488,"number":58,"title":"getimagesize - Connection refused","user":{"login":"iandevlin","id":554326,"avatar_url":"https://avatars.githubusercontent.com/u/554326?v=3","gravatar_id":"","url":"https://api.github.com/users/iandevlin","html_url":"https://github.com/iandevlin","followers_url":"https://api.github.com/users/iandevlin/followers","following_url":"https://api.github.com/users/iandevlin/following{/other_user}","gists_url":"https://api.github.com/users/iandevlin/gists{/gist_id}","starred_url":"https://api.github.com/users/iandevlin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iandevlin/subscriptions","organizations_url":"https://api.github.com/users/iandevlin/orgs","repos_url":"https://api.github.com/users/iandevlin/repos","events_url":"https://api.github.com/users/iandevlin/events{/privacy}","received_events_url":"https://api.github.com/users/iandevlin/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-04-20T09:45:30Z","updated_at":"2015-04-24T07:38:12Z","closed_at":null,"body":"First of all I am not sure if this is an issue in general, it might be something to do with our Wordpress installation, but I am mentioning it here as something to perhaps look into, as I have fixed it in my local version so would appreciate your thoughts.\r\n\r\nI have installed the plugin, and despite having the correct permissions set, I was constantly getting the following errors:\r\n\r\n**Warning: getimagesize(IMAGE_URL): failed to open stream: Connection refused in /var/www/wp-content/plugins/picturefillwp/inc/class-model-image-picturefill-wp.php on line 169**\r\n\r\n(where IMAGE_URL is the actual URL of the requested image).\r\n\r\nline 169:\r\n```php\r\n$image_size = getimagesize($attachment_data['url']);\r\n```\r\n\r\nBut I changed this to do the following:\r\n```php\r\n$parsed_data = parse_url($attachment_data['url']);\r\n$image_size = getimagesize($_SERVER['DOCUMENT_ROOT'] . $parsed_data['path']);\r\n```\r\n\r\nAnd now it works fine.\r\n\r\nAny thoughts would be appreciated, thanks in advance."},"comment":{"url":"https://api.github.com/repos/kylereicks/picturefill.js.wp/issues/comments/95835523","html_url":"https://github.com/kylereicks/picturefill.js.wp/issues/58#issuecomment-95835523","issue_url":"https://api.github.com/repos/kylereicks/picturefill.js.wp/issues/58","id":95835523,"user":{"login":"iandevlin","id":554326,"avatar_url":"https://avatars.githubusercontent.com/u/554326?v=3","gravatar_id":"","url":"https://api.github.com/users/iandevlin","html_url":"https://github.com/iandevlin","followers_url":"https://api.github.com/users/iandevlin/followers","following_url":"https://api.github.com/users/iandevlin/following{/other_user}","gists_url":"https://api.github.com/users/iandevlin/gists{/gist_id}","starred_url":"https://api.github.com/users/iandevlin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iandevlin/subscriptions","organizations_url":"https://api.github.com/users/iandevlin/orgs","repos_url":"https://api.github.com/users/iandevlin/repos","events_url":"https://api.github.com/users/iandevlin/events{/privacy}","received_events_url":"https://api.github.com/users/iandevlin/received_events","type":"User","site_admin":false},"created_at":"2015-04-24T07:38:12Z","updated_at":"2015-04-24T07:38:12Z","body":"Sounds about right, localhost is indeed pointing to a vagrant instance, thanks for that.\r\n\r\nI have given up on this plugin though, I initially failed to see that the author isn't supporting it anymore."}}