[QUOTE=JanFriebe;417492]Guten abend zusammen,
bei mir wirft contao genau den selben Fehler in Verbindung mit der Extension MetaModels. Ist ist in dieser Richtung etwas bekannt ?
Zur Fehler Ausgabe im FE:
Code:
Fatal error: Uncaught exception RuntimeException with message Could not convert image: Das System kann den angegebenen Pfad nicht finden. thrown in composer\vendor\richardhj\contao-magickimages\src\MagickImages\Hook\Implementation\Process.php on line 479
#0 composer\vendor\richardhj\contao-magickimages\src\MagickImages\Hook\Implementation\Process.php(404): MagickImages\Hook\Implementation\Process->process('files/layout/re...', 260, 195, 'proportional', 'assets/images/b...', Object(MagickImages\File))
#1 system\modules\core\library\Contao\Image.php(481): MagickImages\Hook\Implementation\Process->get('files/layout/re...', 260, 195, 'proportional', 'assets/images/b...', Object(MagickImages\File), '', Object(MagickImages\Image))
#2 system\modules\core\library\Contao\Picture.php(245): Contao\Image->executeResize()
#3 system\modules\core\library\Contao\Picture.php(198): Contao\Picture->getTemplateDataSource(Object(Contao\ImageSizeModel))
#4 templates\rew-gmbh\mm_attr_file_immo_view_cover.html5(16): Contao\Picture->getTemplateData()
#5 composer\vendor\metamodels\core\src\MetaModels\Render\Template.php(300): include('C:\\xampp\\htdocs...')
#6 composer\vendor\metamodels\core\src\MetaModels\Attribute\Base.php(507): MetaModels\Render\Template->parse('html5', false)
#7 composer\vendor\metamodels\core\src\MetaModels\Item.php(113): MetaModels\Attribute\Base->parseValue(Array, 'html5', Object(MetaModels\Render\Setting\Simple))
#8 composer\vendor\metamodels\core\src\MetaModels\Item.php(405): MetaModels\Item->internalParseAttribute(Object(MetaModels\Attribute\File\File), 'html5', Object(MetaModels\Render\Setting\Collection))
#9 composer\vendor\metamodels\core\src\MetaModels\Items.php(254): MetaModels\Item->parseValue('html5', Object(MetaModels\Render\Setting\Collection))
#10 composer\vendor\metamodels\core\src\MetaModels\Items.php(270): MetaModels\Items->parseValue('html5', Object(MetaModels\Render\Setting\Collection))
#11 composer\vendor\metamodels\core\src\MetaModels\ItemList.php(804): MetaModels\Items->parseAll('html5', Object(MetaModels\Render\Setting\Collection))
#12 composer\vendor\metamodels\core\src\MetaModels\FrontendIntegration\HybridList.php(115): MetaModels\ItemList->render('', Object(MetaModels\FrontendIntegration\Module\ModelList))
#13 system\modules\core\classes\Hybrid.php(239): MetaModels\FrontendIntegration\HybridList->compile()
#14 composer\vendor\metamodels\core\src\MetaModels\FrontendIntegration\MetaModelHybrid.php(102): Contao\Hybrid->generate()
#15 composer\vendor\metamodels\core\src\MetaModels\FrontendIntegration\HybridList.php(54): MetaModels\FrontendIntegration\MetaModelHybrid->generate()
#16 system\modules\core\elements\ContentModule.php(59): MetaModels\FrontendIntegration\HybridList->generate()
#17 system\modules\core\library\Contao\Controller.php(484): Contao\ContentModule->generate()
#18 system\modules\core\modules\ModuleArticle.php(213): Contao\Controller::getContentElement(Object(Contao\ContentModel), 'main')
#19 system\modules\core\modules\Module.php(287): Contao\ModuleArticle->compile()
#20 system\modules\core\modules\ModuleArticle.php(67): Contao\Module->generate()
#21 system\modules\core\library\Contao\Controller.php(417): Contao\ModuleArticle->generate(false)
#22 system\modules\core\library\Contao\Controller.php(277): Contao\Controller::getArticle(Object(Contao\ArticleModel), false, false, 'main')
#23 system\modules\core\pages\PageRegular.php(133): Contao\Controller::getFrontendModule('0', 'main')
#24 system\modules\core\controllers\FrontendIndex.php(285): Contao\PageRegular->generate(Object(Contao\PageModel), true)
#25 index.php(20): Contao\FrontendIndex->run()
#26 {main}
Meine Vermutung, es liegt an der Verarbeitung der Bilder. Zum Hintergrund, dies ist ein Projekt eines Kunden dass zuvor auf einer Linux Maschine lief. Zum Entwickeln hat dieser mir ein Abbild der ganzen Instanz zur Verfügung gestellt. Unter xampp hab ich es installiert und dort taucht auch der Fehler auf.
In Zusammenhang steht damit im BE die Fehlermeldung wenn ich einen erstellten MetaModels Navigationspunkt aufrufe.
Code:
Warning: getimagesize(C:\xampp\htdocs\hubatka/): failed to open stream: No such file or directory in composer\vendor\metamodels\core\src\MetaModels\Helper\ToolboxFile.php on line 464
#0 [internal function]: __error(2, 'getimagesize(C:...', 'C:\\xampp\\htdocs...', 464, Array)
#1 composer\vendor\metamodels\core\src\MetaModels\Helper\ToolboxFile.php(464): getimagesize('C:\\xampp\\htdocs...')
#2 composer\vendor\metamodels\core\src\MetaModels\Helper\ToolboxFile.php(676): MetaModels\Helper\ToolboxFile->fetchAdditionalData()
#3 composer\vendor\metamodels\attribute_file\src\MetaModels\Attribute\File\File.php(259): MetaModels\Helper\ToolboxFile->resolveFiles()
#4 composer\vendor\metamodels\core\src\MetaModels\Attribute\Base.php(504): MetaModels\Attribute\File\File->prepareTemplate(Object(MetaModels\Render\Template), Array, Object(MetaModels\Render\Setting\Simple))
#5 composer\vendor\metamodels\core\src\MetaModels\Item.php(113): MetaModels\Attribute\Base->parseValue(Array, 'text', Object(MetaModels\Render\Setting\Simple))
#6 composer\vendor\metamodels\core\src\MetaModels\Item.php(456): MetaModels\Item->internalParseAttribute(Object(MetaModels\Attribute\File\File), 'text', Object(MetaModels\Render\Setting\Collection))
#7 composer\vendor\metamodels\core\src\MetaModels\DcGeneral\Events\MetaModel\RenderItem.php(160): MetaModels\Item->parseAttribute('cover_image', 'text', Object(MetaModels\Render\Setting\Collection))
#8 [internal function]: MetaModels\DcGeneral\Events\MetaModel\RenderItem::getReadableValue(Object(ContaoCommunityAlliance\DcGeneral\View\Event\RenderReadablePropertyValueEvent), 'dc-general.view...', Object(Symfony\Component\EventDispatcher\EventDispatcher))
#9 composer\vendor\symfony\event-dispatcher\EventDispatcher.php(184): call_user_func(Array, Object(ContaoCommunityAlliance\DcGeneral\View\Event\RenderReadablePropertyValueEvent), 'dc-general.view...', Object(Symfony\Component\EventDispatcher\EventDispatcher))
#10 composer\vendor\symfony\event-dispatcher\EventDispatcher.php(46): Symfony\Component\EventDispatcher\EventDispatcher->doDispatch(Array, 'dc-general.view...', Object(ContaoCommunityAlliance\DcGeneral\View\Event\RenderReadablePropertyValueEvent))
#11 composer\vendor\contao-community-alliance\dc-general\src\ContaoCommunityAlliance\DcGeneral\Contao\View\Contao2BackendView\ViewHelpers.php(211): Symfony\Component\EventDispatcher\EventDispatcher->dispatch('dc-general.view...', Object(ContaoCommunityAlliance\DcGeneral\View\Event\RenderReadablePropertyValueEvent))
#12 composer\vendor\contao-community-alliance\dc-general\src\ContaoCommunityAlliance\DcGeneral\Contao\Subscriber\FormatModelLabelSubscriber.php(77): ContaoCommunityAlliance\DcGeneral\Contao\View\Contao2BackendView\ViewHelpers::getReadableFieldValue(Object(ContaoCommunityAlliance\DcGeneral\DefaultEnvironment), Object(ContaoCommunityAlliance\DcGeneral\DataDefinition\Definition\Properties\DefaultProperty), Object(MetaModels\DcGeneral\Data\Model))
#13 [internal function]: ContaoCommunityAlliance\DcGeneral\Contao\Subscriber\FormatModelLabelSubscriber->handleFormatModelLabel(Object(ContaoCommunityAlliance\DcGeneral\Event\FormatModelLabelEvent), 'dc-general.mode...', Object(Symfony\Component\EventDispatcher\EventDispatcher))
#14 composer\vendor\symfony\event-dispatcher\EventDispatcher.php(184): call_user_func(Array, Object(ContaoCommunityAlliance\DcGeneral\Event\FormatModelLabelEvent), 'dc-general.mode...', Object(Symfony\Component\EventDispatcher\EventDispatcher))
#15 composer\vendor\symfony\event-dispatcher\EventDispatcher.php(46): Symfony\Component\EventDispatcher\EventDispatcher->doDispatch(Array, 'dc-general.mode...', Object(ContaoCommunityAlliance\DcGeneral\Event\FormatModelLabelEvent))
#16 composer\vendor\contao-community-alliance\dc-general\src\ContaoCommunityAlliance\DcGeneral\Contao\View\Contao2BackendView\ListView.php(243): Symfony\Component\EventDispatcher\EventDispatcher->dispatch('dc-general.mode...', Object(ContaoCommunityAlliance\DcGeneral\Event\FormatModelLabelEvent))
#17 composer\vendor\contao-community-alliance\dc-general\src\ContaoCommunityAlliance\DcGeneral\Contao\View\Contao2BackendView\ListView.php(264): ContaoCommunityAlliance\DcGeneral\Contao\View\Contao2BackendView\ListView->setListViewLabel(Object(ContaoCommunityAlliance\DcGeneral\Data\DefaultCollection), NULL)
#18 composer\vendor\contao-community-alliance\dc-general\src\ContaoCommunityAlliance\DcGeneral\Contao\View\Contao2BackendView\ListView.php(324): ContaoCommunityAlliance\DcGeneral\Contao\View\Contao2BackendView\ListView->viewList(Object(ContaoCommunityAlliance\DcGeneral\Data\DefaultCollection))
#19 [internal function]: ContaoCommunityAlliance\DcGeneral\Contao\View\Contao2BackendView\ListView->showAll(Object(ContaoCommunityAlliance\DcGeneral\Action))
#20 composer\vendor\contao-community-alliance\dc-general\src\ContaoCommunityAlliance\DcGeneral\Contao\View\Contao2BackendView\BaseView.php(140): call_user_func_array(Array, Array)
#21 [internal function]: ContaoCommunityAlliance\DcGeneral\Contao\View\Contao2BackendView\BaseView->handleAction(Object(ContaoCommunityAlliance\DcGeneral\Event\ActionEvent), 'dc-general.acti...', Object(Symfony\Component\EventDispatcher\EventDispatcher))
#22 composer\vendor\symfony\event-dispatcher\EventDispatcher.php(184): call_user_func(Array, Object(ContaoCommunityAlliance\DcGeneral\Event\ActionEvent), 'dc-general.acti...', Object(Symfony\Component\EventDispatcher\EventDispatcher))
#23 composer\vendor\symfony\event-dispatcher\EventDispatcher.php(46): Symfony\Component\EventDispatcher\EventDispatcher->doDispatch(Array, 'dc-general.acti...', Object(ContaoCommunityAlliance\DcGeneral\Event\ActionEvent))
#24 composer\vendor\contao-community-alliance\dc-general\src\ContaoCommunityAlliance\DcGeneral\Controller\DefaultController.php(130): Symfony\Component\EventDispatcher\EventDispatcher->dispatch('dc-general.acti...', Object(ContaoCommunityAlliance\DcGeneral\Event\ActionEvent))
#25 composer\vendor\metamodels\core\src\MetaModels\BackendIntegration\Module.php(74): ContaoCommunityAlliance\DcGeneral\Controller\DefaultController->handle(Object(ContaoCommunityAlliance\DcGeneral\Action))
#26 system\modules\core\classes\Backend.php(423): MetaModels\BackendIntegration\Module->generate()
#27 system\modules\core\controllers\BackendMain.php(131): Contao\Backend->getBackendModule('metamodel_mm_re...')
#28 contao\main.php(20): Contao\BackendMain->run()
#29 {main}
Die in der Fehlermeldung beschriebene Code:
PHP-Code:
<?php
// Prepare images.
if ($arrSource['isGdImage'] = $objFile->isGdImage) {
if ($this->getShowImages() && ($intWidth || $intHeight || $strMode)) {
$event = new ResizeImageEvent($strFile, $intWidth, $intHeight, $strMode);
$dispatcher->dispatch(ContaoEvents::IMAGE_RESIZE, $event);
$strSrc = $event->getResultImage();
} else {
$strSrc = $strFile;
}
$arrSource['src'] = $strSrc;
// var_dump($strSrc);
if (file_exists(TL_ROOT . '/' . urldecode($strSrc))) {
$size = getimagesize(TL_ROOT . '/' . urldecode($strSrc));
$arrSource['lb'] = 'lb' . $this->getLightboxId();
$arrSource['w'] = $size[0];
$arrSource['h'] = $size[1];
$arrSource['wh'] = $size[3];
}
}
Habe das Ganze schon versucht zu debuggen oder umzuschreiben, aber nichts tut sich.
Lesezeichen