{"action":"created","issue":{"url":"https://api.github.com/repos/kylereicks/picturefill.js.wp/issues/57","labels_url":"https://api.github.com/repos/kylereicks/picturefill.js.wp/issues/57/labels{/name}","comments_url":"https://api.github.com/repos/kylereicks/picturefill.js.wp/issues/57/comments","events_url":"https://api.github.com/repos/kylereicks/picturefill.js.wp/issues/57/events","html_url":"https://github.com/kylereicks/picturefill.js.wp/issues/57","id":58621272,"number":57,"title":"PHP Warning:  getimagesize(): Filename cannot be empty ","user":{"login":"pixeline","id":393415,"avatar_url":"https://avatars.githubusercontent.com/u/393415?v=3","gravatar_id":"","url":"https://api.github.com/users/pixeline","html_url":"https://github.com/pixeline","followers_url":"https://api.github.com/users/pixeline/followers","following_url":"https://api.github.com/users/pixeline/following{/other_user}","gists_url":"https://api.github.com/users/pixeline/gists{/gist_id}","starred_url":"https://api.github.com/users/pixeline/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pixeline/subscriptions","organizations_url":"https://api.github.com/users/pixeline/orgs","repos_url":"https://api.github.com/users/pixeline/repos","events_url":"https://api.github.com/users/pixeline/events{/privacy}","received_events_url":"https://api.github.com/users/pixeline/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-02-23T17:43:53Z","updated_at":"2015-04-29T06:19:15Z","closed_at":null,"body":"I get lots of lines like this in my server 's php error log\r\n```\r\n[23-Feb-2015 13:36:59 UTC] PHP Warning:  getimagesize(): Filename cannot be empty in /srv/data/web/vhosts/bjab.org/htdocs/wp-content/plugins/picturefill.js.wp-master/inc/class-model-image-picturefill-wp.php on line 167\r\n\r\n```\r\nit points to the third line of this function\r\n\r\n```php\r\n  private function get_image_width_height(array $attachment_data){\r\n      if(ini_get('allow_url_fopen')){\r\n        $image_size = getimagesize($attachment_data['url']);\r\n\r\n        if(!empty($image_size)){\r\n          $attachment_data['width'] = $image_size[0];\r\n          $attachment_data['height'] = $image_size[1];\r\n        }\r\n      }else{\r\n        preg_match('/^(?:.+?)(?:-(\\d+)x(\\d+))\\.(?:' . implode('|', $this->application_model->get_allowed_image_extensions()) . ')(?:(?:\\?|#).+)?$/i', $attachment_data['url'], $image_width_height);\r\n        if(!empty($image_width_height)){\r\n          $attachment_data['width'] = $image_width_height[1];\r\n          $attachment_data['width'] = $image_width_height[2];\r\n        }\r\n      }\r\n\r\n      return $attachment_data;\r\n    }\r\n\r\n```\r\nAny idea what causes this error?\r\n"},"comment":{"url":"https://api.github.com/repos/kylereicks/picturefill.js.wp/issues/comments/97320091","html_url":"https://github.com/kylereicks/picturefill.js.wp/issues/57#issuecomment-97320091","issue_url":"https://api.github.com/repos/kylereicks/picturefill.js.wp/issues/57","id":97320091,"user":{"login":"tychay","id":121644,"avatar_url":"https://avatars.githubusercontent.com/u/121644?v=3","gravatar_id":"","url":"https://api.github.com/users/tychay","html_url":"https://github.com/tychay","followers_url":"https://api.github.com/users/tychay/followers","following_url":"https://api.github.com/users/tychay/following{/other_user}","gists_url":"https://api.github.com/users/tychay/gists{/gist_id}","starred_url":"https://api.github.com/users/tychay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tychay/subscriptions","organizations_url":"https://api.github.com/users/tychay/orgs","repos_url":"https://api.github.com/users/tychay/repos","events_url":"https://api.github.com/users/tychay/events{/privacy}","received_events_url":"https://api.github.com/users/tychay/received_events","type":"User","site_admin":false},"created_at":"2015-04-29T06:19:15Z","updated_at":"2015-04-29T06:19:15Z","body":"Pull request https://github.com/kylereicks/picturefill.js.wp/pull/64"}}