Hallo zusammen,
ich habe ein einfaches News-Element mit Bild angelegt. Leider wird mir folgende Warnung ausgegeben.
HTML-Code:
<br><strong>Warning</strong>: getimagesize(/www/.../tl/€}¨Zƒiã—Z¼®ÅŠ2°) [<a href='function.getimagesize'>function.getimagesize</a>]: failed to open stream: No such file or directory in <strong>system/modules/core/library/Contao/Controller.php</strong> on line <strong>2510</strong>
<pre style="margin:11px 0 0">
#0 [internal function]: __error(2, 'getimagesize(/w...', '/www/...', 2510, Array)
#1 system/modules/core/library/Contao/Controller.php(2510): getimagesize('/www/...')
#2 system/modules/news_simple/classes/NewsSimple.php(54): Contao\Controller::addImageToTemplate(Object(Contao\FrontendTemplate), Array)
#3 system/modules/news/modules/ModuleNews.php(202): Contao\NewsSimple->addSimpleNewsText(Object(Contao\FrontendTemplate), Array, Object(Simplify\ModuleNewsList))
#4 system/modules/news/modules/ModuleNews.php(230): Contao\ModuleNews->parseArticle(Object(Contao\Model\Collection), false, ' first even', 1)
#5 system/modules/simplify/modules/ModuleNewsList.php(137): Contao\ModuleNews->parseArticles(Object(Contao\Model\Collection))
#6 system/modules/core/modules/Module.php(148): Simplify\ModuleNewsList->compile()
#7 system/modules/news/modules/ModuleNewsList.php(65): Contao\Module->generate()
#8 system/modules/core/elements/ContentModule.php(63): Contao\ModuleNewsList->generate()
#9 system/modules/core/library/Contao/Controller.php(456): Contao\ContentModule->generate()
#10 system/modules/core/modules/ModuleArticle.php(205): Contao\Controller->getContentElement(Object(Contao\ContentModel), 'main')
#11 system/modules/core/modules/Module.php(148): Contao\ModuleArticle->compile()
#12 system/modules/core/modules/ModuleArticle.php(59): Contao\Module->generate()
#13 system/modules/core/library/Contao/Controller.php(392): Contao\ModuleArticle->generate(false)
#14 system/modules/core/library/Contao/Controller.php(254): Contao\Controller->getArticle(Object(Contao\ArticleModel), false, false, 'main')
#15 system/modules/core/pages/PageRegular.php(138): Contao\Controller->getFrontendModule('0', 'main')
#16 index.php(249): Contao\PageRegular->generate(Object(Contao\PageModel), true)
#17 index.php(432): Index->run()
#18 {main}
</pre><br><strong>Warning</strong>: Cannot modify header information - headers already sent by (output started at /www/.../tl/system/helper/functions.php:70) in <strong>system/modules/core/library/Contao/Template.php</strong> on line <strong>298</strong>
<pre style="margin:11px 0 0">
#0 [internal function]: __error(2, 'Cannot modify h...', '/www/htdocs/w00...', 298, Array)
#1 system/modules/core/library/Contao/Template.php(298): header('Vary: User-Agen...', false)
#2 system/modules/core/classes/FrontendTemplate.php(210): Contao\Template->output()
#3 system/modules/core/pages/PageRegular.php(183): Contao\FrontendTemplate->output(true)
#4 index.php(249): Contao\PageRegular->generate(Object(Contao\PageModel), true)
#5 index.php(432): Index->run()
#6 {main}
</pre><br><strong>Warning</strong>: Cannot modify header information - headers already sent by (output started at /www/.../tl/system/helper/functions.php:70) in <strong>system/modules/core/library/Contao/Template.php</strong> on line <strong>299</strong>
<pre style="margin:11px 0 0">
#0 [internal function]: __error(2, 'Cannot modify h...', '/www/...', 299, Array)
#1 system/modules/core/library/Contao/Template.php(299): header('Content-Type: t...')
#2 system/modules/core/classes/FrontendTemplate.php(210): Contao\Template->output()
#3 system/modules/core/pages/PageRegular.php(183): Contao\FrontendTemplate->output(true)
#4 index.php(249): Contao\PageRegular->generate(Object(Contao\PageModel), true)
#5 index.php(432): Index->run()
#6 {main}
</pre>
Wie man sehen kann, erhält die Methode getimagesize() einen kryptischen Namen übergeben. Im ausgegebenen Quelltext sieht das Ganze dann so aus:
HTML-Code:
<a href="%80%7D%A8Z%83i%11%E3%97Z%BC%AE%C5%8A2%B0" title="Titel" data-lightbox="bdf5a8">
<img src="" alt="Titel" title="Titel">
</a>
Ich habe jedoch keinerlei Probleme mit dem Bild im Backend. Der Pfad zu dem Bild lautet "files/ju/bilder/presse/2014/01/22/hny.jpg", enthält also keinerlei Zeichen, die zu so einem Fehler führen könnten.
Beim letzten Bild-Upload (vor etwas mehr als einem halben Jahr) hatte ich keine Probleme, inzwischen habe ich aber auch die Versionen aktualisiert, auf derzeit 3.2.3.
Weiß jemand Rat?
Lesezeichen