{"action":"created","issue":{"url":"https://api.github.com/repos/contao/core/issues/7862","labels_url":"https://api.github.com/repos/contao/core/issues/7862/labels{/name}","comments_url":"https://api.github.com/repos/contao/core/issues/7862/comments","events_url":"https://api.github.com/repos/contao/core/issues/7862/events","html_url":"https://github.com/contao/core/issues/7862","id":85215142,"number":7862,"title":"Gallery - strange behavior with different image types in one folder","user":{"login":"Aybee","id":1143013,"avatar_url":"https://avatars.githubusercontent.com/u/1143013?v=3","gravatar_id":"","url":"https://api.github.com/users/Aybee","html_url":"https://github.com/Aybee","followers_url":"https://api.github.com/users/Aybee/followers","following_url":"https://api.github.com/users/Aybee/following{/other_user}","gists_url":"https://api.github.com/users/Aybee/gists{/gist_id}","starred_url":"https://api.github.com/users/Aybee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Aybee/subscriptions","organizations_url":"https://api.github.com/users/Aybee/orgs","repos_url":"https://api.github.com/users/Aybee/repos","events_url":"https://api.github.com/users/Aybee/events{/privacy}","received_events_url":"https://api.github.com/users/Aybee/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-06-04T18:21:44Z","updated_at":"2015-06-18T13:53:41Z","closed_at":null,"body":"*[Contao 3.4.4]* *(Online demo)*\r\n\r\nGo to the demos gallery http://demo.contao.org/contao/main.php?do=article&table=tl_content&act=edit&id=290\r\n\r\nIn source files select the folder contaodemo/media/slider/\r\n\r\nIt throws this errors\r\n\r\n```\r\nWarning: filesize() [function.filesize]: stat failed for /home/www/demo/files/contaodemo/media/slider/contao_extensions.png in system/modules/core/library/Contao/File.php on line 181\r\n#0 [internal function]: __error(2, 'filesize() [__get('size')\r\n#3 system/modules/core/classes/Ajax.php(325): Contao\\FileTree->generate()\r\n#4 system/modules/core/classes/Backend.php(399): Contao\\Ajax->executePostActions(Object(Contao\\DC_Table))\r\n#5 system/modules/core/controllers/BackendMain.php(126): Contao\\Backend->getBackendModule('article')\r\n#6 contao/main.php(20): Contao\\BackendMain->run()\r\n#7 {main}\r\n\r\nFatal error: Uncaught exception Exception with message Directory \"system/themes/default/images/\" is not a file thrown in system/modules/core/library/Contao/File.php on line 94\r\n#0 system/modules/core/library/Contao/Image.php(823): Contao\\File->__construct('system/themes/d...', true)\r\n#1 system/modules/core/widgets/FileTree.php(210): Contao\\Image::getHtml(NULL, '', 'class=\"gimage\" ...')\r\n#2 system/modules/core/classes/Ajax.php(325): Contao\\FileTree->generate()\r\n#3 system/modules/core/classes/Backend.php(399): Contao\\Ajax->executePostActions(Object(Contao\\DC_Table))\r\n#4 system/modules/core/controllers/BackendMain.php(126): Contao\\Backend->getBackendModule('article')\r\n#5 contao/main.php(20): Contao\\BackendMain->run()\r\n#6 {main}\r\n```\r\n\r\nI discovered this while I was checking the select folder option of a gallery because I have problems with folders that contain different image types. But this does not throw above errors in my installation [3.4.5] so I don't know if both thing maybe are related.\r\n\r\nSelecting a folder with only JPGs seems to be ok.\r\n\r\nFollowing images (3 diff. types, 2 with same name)\r\n- icon-en.gif\r\n- icon-de.gif\r\n- logo.gif\r\n- logo.jpg\r\n- another.png\r\n\r\nresults in only showing one image above the **Change selection** button. It is the **logo.gif** file.\r\n\r\nFollowing images (3 diff. types, 3 with same name)\r\n- img_1.jpg\r\n- img_2.jpg\r\n- img_3.jpg\r\n- img_3.gif\r\n- img_3.png\r\n\r\nresults in only showing the JPGs\r\n\r\nAfter some clicking around - selecting single images instead of a folder, doing a sync in the file manager - somewhere along the way all images in gallery are fine.\r\n\r\nSeems that there something is not programmed correctly.\r\n"},"comment":{"url":"https://api.github.com/repos/contao/core/issues/comments/113163508","html_url":"https://github.com/contao/core/issues/7862#issuecomment-113163508","issue_url":"https://api.github.com/repos/contao/core/issues/7862","id":113163508,"user":{"login":"Loilo","id":1922624,"avatar_url":"https://avatars.githubusercontent.com/u/1922624?v=3","gravatar_id":"","url":"https://api.github.com/users/Loilo","html_url":"https://github.com/Loilo","followers_url":"https://api.github.com/users/Loilo/followers","following_url":"https://api.github.com/users/Loilo/following{/other_user}","gists_url":"https://api.github.com/users/Loilo/gists{/gist_id}","starred_url":"https://api.github.com/users/Loilo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Loilo/subscriptions","organizations_url":"https://api.github.com/users/Loilo/orgs","repos_url":"https://api.github.com/users/Loilo/repos","events_url":"https://api.github.com/users/Loilo/events{/privacy}","received_events_url":"https://api.github.com/users/Loilo/received_events","type":"User","site_admin":false},"created_at":"2015-06-18T13:53:41Z","updated_at":"2015-06-18T13:53:41Z","body":"Ich habe hier einen ähnlichen Fehler, könnte zusammenhängen. Ich kann keine JPGs im fileTree auswählen und bekomme auch das Thumbnail angezeigt, PNGs werfen allerdings eine Exception.\r\n'Directory \"system/themes/default/images/\" is not a file'\r\n...obwohl ich in dem Ordner gar nichts ausgewählt habe. Könnte das zusammenhängen?"}}