habe das jetzt noch einmal ausgiebig getestet: verwendet man die erweiterung articleteaser und verschiebt anschließend die bilddatei in der dateiverwaltung in ein anderes verzeichnis, verliert contao die verbindung zur bilddatei:
PHP-Code:
Warning: getimagesize(/www/htdocs/w00cb333/rrs/tl_files/pic-rrs/pic_rrs_roentgen_gehirn.jpg) [function.getimagesize]: failed to open stream: No such file or directory in /www/htdocs/w00cb333/rrs/system/libraries/Controller.php on line 2528
#0 /www/htdocs/w00cb333/rrs/system/libraries/Controller.php(2528): __error(2, 'getimagesize(/w...', '/www/htdocs/w00...', 2528, Array)
#1 /www/htdocs/w00cb333/rrs/system/modules/zArticleImage/ArticleImage.php(35): Controller->addImageToTemplate('/www/htdocs/w00...')
#2 /www/htdocs/w00cb333/rrs/templates/mod_article_teaser.tpl(1): ArticleImage->__construct(Object(FrontendTemplate), Array)
#3 /www/htdocs/w00cb333/rrs/system/libraries/Template.php(140): include('/www/htdocs/w00...')
#4 /www/htdocs/w00cb333/rrs/system/modules/frontend/FrontendTemplate.php(47): Template->parse(Object(FrontendTemplate))
#5 /www/htdocs/w00cb333/rrs/system/modules/frontend/Module.php(143): FrontendTemplate->parse()
#6 /www/htdocs/w00cb333/rrs/system/modules/frontend/ModuleArticle.php(69): Module->generate()
#7 /www/htdocs/w00cb333/rrs/system/libraries/Controller.php(297): ModuleArticle->generate()
#8 /www/htdocs/w00cb333/rrs/system/libraries/Controller.php(184): Controller->getArticle(false)
#9 /www/htdocs/w00cb333/rrs/system/modules/frontend/PageRegular.php(68): Controller->getFrontendModule('76', true, false, 'main')
#10 /www/htdocs/w00cb333/rrs/index.php(188): PageRegular->generate('0', 'main')
#11 /www/htdocs/w00cb333/rrs/index.php(311): Index->run(Object(DB_Mysql_Result))
#12 {main}
Fatal error: Uncaught exception Exception with message Query error: Column 'browser' cannot be null (INSERT INTO tl_log (tstamp, source, action, username, text, func, ip, browser) VALUES(1277741634, 'FE', 'ERROR', 'twimmers', 'Image "tl_files/pic-rrs/pic_rrs_roentgen_gehirn.jpg" could not be found', 'Controller getImage()', '127.0.0.1', NULL)) thrown in /www/htdocs/w00cb333/rrs/system/libraries/Database.php on line 599
#0 /www/htdocs/w00cb333/rrs/system/libraries/Database.php(546): Database_Statement->query()
#1 /www/htdocs/w00cb333/rrs/system/libraries/System.php(167): Database_Statement->execute(1277741634, 'FE', 'ERROR', 'twimmers', 'Image "tl_f...', 'Controller getI...', '127.0.0.1', NULL)
#2 /www/htdocs/w00cb333/rrs/system/libraries/Controller.php(674): System->log('Image "tl_files...', 'Controller getI...', 'ERROR')
#3 /www/htdocs/w00cb333/rrs/system/libraries/Controller.php(2559): Controller->getImage('tl_files/pic-rr...', '80', '80', 'crop')
#4 /www/htdocs/w00cb333/rrs/system/modules/zArticleImage/ArticleImage.php(35): Controller->addImageToTemplate(Object(FrontendTemplate), Array)
#5 /www/htdocs/w00cb333/rrs/templates/mod_article_teaser.tpl(1): ArticleImage->__construct(Object(FrontendTemplate))
#6 /www/htdocs/w00cb333/rrs/system/libraries/Template.php(140): include('/www/htdocs/w00...')
#7 /www/htdocs/w00cb333/rrs/system/modules/frontend/FrontendTemplate.php(47): Template->parse()
#8 /www/htdocs/w00cb333/rrs/system/modules/frontend/Module.php(143): FrontendTemplate->parse()
#9 /www/htdocs/w00cb333/rrs/system/modules/frontend/ModuleArticle.php(69): Module->generate()
#10 /www/htdocs/w00cb333/rrs/system/libraries/Controller.php(297): ModuleArticle->generate(false)
#11 /www/htdocs/w00cb333/rrs/system/libraries/Controller.php(184): Controller->getArticle('76', true, false, 'main')
#12 /www/htdocs/w00cb333/rrs/system/modules/frontend/PageRegular.php(68): Controller->getFrontendModule('0', 'main')
#13 /www/htdocs/w00cb333/rrs/index.php(188): PageRegular->generate(Object(DB_Mysql_Result))
#14 /www/htdocs/w00cb333/rrs/index.php(311): Index->run()
#15 {main}
also: vorher gut überlegen, wie man seine bilddateien ordnet
Lesezeichen