{"action":"closed","issue":{"url":"https://api.github.com/repos/piwik/piwik/issues/7264","labels_url":"https://api.github.com/repos/piwik/piwik/issues/7264/labels{/name}","comments_url":"https://api.github.com/repos/piwik/piwik/issues/7264/comments","events_url":"https://api.github.com/repos/piwik/piwik/issues/7264/events","html_url":"https://github.com/piwik/piwik/issues/7264","id":58469174,"number":7264,"title":"Warning - imagecopyresampled() expects parameter 2 to be resource","user":{"login":"palleroy0","id":7391339,"avatar_url":"https://avatars.githubusercontent.com/u/7391339?v=3","gravatar_id":"","url":"https://api.github.com/users/palleroy0","html_url":"https://github.com/palleroy0","followers_url":"https://api.github.com/users/palleroy0/followers","following_url":"https://api.github.com/users/palleroy0/following{/other_user}","gists_url":"https://api.github.com/users/palleroy0/gists{/gist_id}","starred_url":"https://api.github.com/users/palleroy0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/palleroy0/subscriptions","organizations_url":"https://api.github.com/users/palleroy0/orgs","repos_url":"https://api.github.com/users/palleroy0/repos","events_url":"https://api.github.com/users/palleroy0/events{/privacy}","received_events_url":"https://api.github.com/users/palleroy0/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/piwik/piwik/labels/c:%20Usability","name":"c: Usability","color":"bfe5bf"},{"url":"https://api.github.com/repos/piwik/piwik/labels/Task","name":"Task","color":"bfe5bf"}],"state":"closed","locked":false,"assignee":{"login":"sgiehl","id":1579355,"avatar_url":"https://avatars.githubusercontent.com/u/1579355?v=3","gravatar_id":"","url":"https://api.github.com/users/sgiehl","html_url":"https://github.com/sgiehl","followers_url":"https://api.github.com/users/sgiehl/followers","following_url":"https://api.github.com/users/sgiehl/following{/other_user}","gists_url":"https://api.github.com/users/sgiehl/gists{/gist_id}","starred_url":"https://api.github.com/users/sgiehl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sgiehl/subscriptions","organizations_url":"https://api.github.com/users/sgiehl/orgs","repos_url":"https://api.github.com/users/sgiehl/repos","events_url":"https://api.github.com/users/sgiehl/events{/privacy}","received_events_url":"https://api.github.com/users/sgiehl/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/piwik/piwik/milestones/40","html_url":"https://github.com/piwik/piwik/milestones/Long%20term","labels_url":"https://api.github.com/repos/piwik/piwik/milestones/40/labels","id":713718,"number":40,"title":"Long term","description":"Issues in this milestone have not been yet scheduled for development. \r\n\r\nLearn [how Piwik software is developed and released.](http://developer.piwik.org/guides/core-team-workflow)","creator":{"login":"mattab","id":466765,"avatar_url":"https://avatars.githubusercontent.com/u/466765?v=3","gravatar_id":"","url":"https://api.github.com/users/mattab","html_url":"https://github.com/mattab","followers_url":"https://api.github.com/users/mattab/followers","following_url":"https://api.github.com/users/mattab/following{/other_user}","gists_url":"https://api.github.com/users/mattab/gists{/gist_id}","starred_url":"https://api.github.com/users/mattab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mattab/subscriptions","organizations_url":"https://api.github.com/users/mattab/orgs","repos_url":"https://api.github.com/users/mattab/repos","events_url":"https://api.github.com/users/mattab/events{/privacy}","received_events_url":"https://api.github.com/users/mattab/received_events","type":"User","site_admin":false},"open_issues":825,"closed_issues":210,"state":"open","created_at":"2014-06-01T00:00:00Z","updated_at":"2016-01-11T23:34:13Z","due_on":"2018-08-09T12:00:00Z","closed_at":null},"comments":1,"created_at":"2015-02-21T18:25:11Z","updated_at":"2016-01-11T23:34:13Z","closed_at":"2016-01-11T23:34:13Z","body":"I received this message after upgrading to 2.11.0 and adding a custom logo.  The image failed to validate with `pngcheck`.  It must have gotten corrupted during conversion.  Uploading random files with non-`.png` suffixes did not produce the error.  I labeled a `.jpg` with `.png` and produced the error.\r\n\r\nVerifying the image was a valid PNG fixed any issue.\r\n\r\n>WARNING CoreAdminHome[2015-02-19 04:42:12] [fcf03] /www/piwik/plugins/CoreAdminHome/CustomLogo.php(223): Warning - imagecopyresampled() expects parameter 2 to be resource, boolean given - Piwik 2.11.0 - Please report this message in the Piwik forums: [forum.piwik.org] (please do a search first as it might have been reported already)\r\n>WARNING CoreAdminHome[2015-02-19 05:03:38] [01db7] /www/piwik/plugins/CoreAdminHome/CustomLogo.php(202): Warning - imagecreatefrompng(): '/tmp/phpEfv0yj' is not a valid PNG file - Piwik 2.11.0 - Please report this message in the Piwik forums: [forum.piwik.org] (please do a search first as it might have been reported already)\r\n\r\nPutting the `.png` suffix on a text file generated other errors.\r\n\r\n>WARNING CoreAdminHome[2015-02-21 18:15:22] [5a2f3] /www/piwik/plugins/CoreAdminHome/CustomLogo.php(221): Warning - imagecolortransparent() expects parameter 1 to be resource, boolean given - Piwik 2.11.0 - Please report this message in the Piwik forums: http://forum.piwik.org (please do a search first as it might have been reported already)\r\nWARNING CoreAdminHome[2015-02-21 18:15:22] [5a2f3] /www/piwik/plugins/CoreAdminHome/CustomLogo.php(223): Warning - imagecopyresampled() expects parameter 1 to be resource, boolean given - Piwik 2.11.0 - Please report this message in the Piwik forums: http://forum.piwik.org (please do a search first as it might have been reported already)\r\nWARNING CoreAdminHome[2015-02-21 18:15:22] [5a2f3] /www/piwik/plugins/CoreAdminHome/CustomLogo.php(224): Warning - imagepng() expects parameter 1 to be resource, boolean given - Piwik 2.11.0 - Please report this message in the Piwik forums: http://forum.piwik.org (please do a search first as it might have been reported already)\r\nWARNING CoreAdminHome[2015-02-21 18:15:22] [5a2f3] /www/piwik/plugins/CoreAdminHome/CustomLogo.php(220): Warning - imagecolorallocate() expects parameter 1 to be resource, boolean given - Piwik 2.11.0 - Please report this message in the Piwik forums: http://forum.piwik.org (please do a search first as it might have been reported already)\r\nWARNING CoreAdminHome[2015-02-21 18:15:22] [5a2f3] /www/piwik/plugins/CoreAdminHome/CustomLogo.php(217): Warning - imagesavealpha() expects parameter 1 to be resource, boolean given - Piwik 2.11.0 - Please report this message in the Piwik forums: http://forum.piwik.org (please do a search first as it might have been reported already)\r\nWARNING CoreAdminHome[2015-02-21 18:15:22] [5a2f3] /www/piwik/plugins/CoreAdminHome/CustomLogo.php(211): Warning - Division by zero - Piwik 2.11.0 - Please report this message in the Piwik forums: http://forum.piwik.org (please do a search first as it might have been reported already)\r\nWARNING CoreAdminHome[2015-02-21 18:15:22] [5a2f3] /www/piwik/plugins/CoreAdminHome/CustomLogo.php(213): Warning - imagecreatetruecolor(): Invalid image dimensions - Piwik 2.11.0 - Please report this message in the Piwik forums: http://forum.piwik.org (please do a search first as it might have been reported already)\r\nWARNING CoreAdminHome[2015-02-21 18:15:22] [5a2f3] /www/piwik/plugins/CoreAdminHome/CustomLogo.php(216): Warning - imagealphablending() expects parameter 1 to be resource, boolean given - Piwik 2.11.0 - Please report this message in the Piwik forums: http://forum.piwik.org (please do a search first as it might have been reported already)\r\nWARNING CoreAdminHome[2015-02-21 18:15:22] [5a2f3] /www/piwik/plugins/CoreAdminHome/CustomLogo.php(202): Warning - imagecreatefrompng(): '/tmp/phpB7EnAK' is not a valid PNG file - Piwik 2.11.0 - Please report this message in the Piwik forums: http://forum.piwik.org (please do a search first as it might have been reported already)\r\n\r\nhttp://forum.piwik.org/read.php?2,124339,124384"}}