Neu 5.2 Evo AbstractImage::toRequest(): Argument #1 ($imageUrl) must be of type string, null given

DMarckmann

Aktives Mitglied
9. April 2019
6
0
Laut JTL sollte Evo in 5.2 ja noch gehen. Fast alles sieht gut aus bis auf die Produktseiten:


Code:
Fatal error: Uncaught TypeError: JTL\Media\Image\AbstractImage::toRequest(): Argument #1 ($imageUrl) must be of type string, null given, called in /var/www/html/templates/Evo/php/functions.php on line 579 and defined in /var/www/html/includes/src/Media/Image/AbstractImage.php:473 Stack trace: #0 /var/www/html/templates/Evo/php/functions.php(579): JTL\Media\Image\AbstractImage::toRequest(NULL) #1 /var/www/html/templates/Evo/php/functions.php(541): get_image_size(NULL) #2 /var/www/html/templates_c/evo_child/710821b9a7b995078bd58e977915f011f3afd5b8_0.file.variation.tpl.php(68): prepare_image_details(Array, Object(JTL\Smarty\JTLSmartyTemplateClass)) #3 /var/www/html/includes/vendor/smarty/smarty/libs/sysplugins/smarty_internal_runtime_inheritance.php(248): Block_199234153864d10f50025465_85782599->callBlock(Object(JTL\Smarty\JTLSmartyTemplateClass)) #4 /var/www/html/includes/vendor/smarty/smarty/libs/sysplugins/smarty_internal_runtime_inheritance.php(184): Smarty_Internal_Runtime_Inheritance->callBlock(Object(Block_199234153864d10f50025465_85782599), Object(JTL\Smarty\JTLSmartyTemplateClass)) #5 /var/www/html/includes/vendor/smarty/smarty/libs/sysplugins/smarty_internal_runtime_inheritance.php(156): Smarty_Internal_Runtime_Inheritance->process(Object(JTL\Smarty\JTLSmartyTemplateClass), Object(Block_199234153864d10f50025465_85782599)) #6 /var/www/html/templates_c/evo_child/710821b9a7b995078bd58e977915f011f3afd5b8_0.file.variation.tpl.php(223): Smarty_Internal_Runtime_Inheritance->instanceBlock(Object(JTL\Smarty\JTLSmartyTemplateClass), 'Block_199234153...', 'productdetails-...', 24) #7 /var/www/html/includes/vendor/smarty/smarty/libs/sysplugins/smarty_internal_runtime_inheritance.php(248): Block_203391702064d10f50019fe8_81792742->callBlock(Object(JTL\Smarty\JTLSmartyTemplateClass)) #8 /var/www/html/includes/vendor/smarty/smarty/libs/sysplugins/smarty_internal_runtime_inheritance.php(184): Smarty_Internal_Runtime_Inheritance->callBlock(Object(Block_203391702064d10f50019fe8_81792742), Object(JTL\Smarty\JTLSmartyTemplateClass)) #9 /var/www/html/includes/vendor/smarty/smarty/libs/sysplugins/smarty_internal_runtime_inheritance.php(156): Smarty_Internal_Runtime_Inheritance->process(Object(JTL\Smarty\JTLSmartyTemplateClass), Object(Block_203391702064d10f50019fe8_81792742)) #10 /var/www/html/templates_c/evo_child/710821b9a7b995078bd58e977915f011f3afd5b8_0.file.variation.tpl.php(27): Smarty_Internal_Runtime_Inheritance->instanceBlock(Object(JTL\Smarty\JTLSmartyTemplateClass), 'Block_203391702...', 'productdetails-...') #11 /var/www/html/includes/vendor/smarty/smarty/libs/sysplugins/smarty_template_resource_base.php(123): content_64d10f50060969_61774297(Object(JTL\Smarty\JTLSmartyTemplateClass)) #12 /var/www/html/includes/vendor/smarty/smarty/libs/sysplugins/smarty_template_compiled.php(114): Smarty_Template_Resource_Base->getRenderedTemplateCode(Object(JTL\Smarty\JTLSmartyTemplateClass)) #13 /var/www/html/includes/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php(217): Smarty_Template_Compiled->render(Object(JTL\Smarty\JTLSmartyTemplateClass)) #14 /var/www/html/includes/src/Smarty/JTLSmartyTemplateClass.php(59): Smarty_Internal_Template->render(true, NULL) #15 /var/www/html/includes/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php(386): JTL\Smarty\JTLSmartyTemplateClass->render() #16 /var/www/html/includes/src/Smarty/JTLSmartyTemplateClass.php(37): Smarty_Internal_Template->_subTemplateRender('file:productdet...', NULL, NULL, 0, 86400, Array, 0, false, NULL, NULL) #17 /var/www/html/templates_c/evo_child/ba169e8e48900824db00026dbb0fe86ab8b8b497_0.file.details.tpl.php(317): JTL\Smarty\JTLSmartyTemplateClass->_subTemplateRender('file:productdet...', NULL, NULL, 0, 86400, Array, 0, false) #18 /var/www/html/includes/vendor/smarty/smarty/libs/sysplugins/smarty_internal_runtime_inheritance.php(248): Block_29661424164d10f4ff30ee4_03063391->callBlock(Object(JTL\Smarty\JTLSmartyTemplateClass)) #19 /var/www/html/includes/vendor/smarty/smarty/libs/sysplugins/smarty_internal_runtime_inheritance.php(184): Smarty_Internal_Runtime_Inheritance->callBlock(Object(Block_29661424164d10f4ff30ee4_03063391), Object(JTL\Smarty\JTLSmartyTemplateClass)) #20 /var/www/html/includes/vendor/smarty/smarty/libs/sysplugins/smarty_internal_runtime_inheritance.php(156): Smarty_Internal_Runtime_Inheritance->process(Object(JTL\Smarty\JTLSmartyTemplateClass), Object(Block_29661424164d10f4ff30ee4_03063391)) #21 /var/www/html/templates_c/evo_child/ba169e8e48900824db00026dbb0fe86ab8b8b497_0.file.details.tpl.php(391): Smarty_Internal_Runtime_Inheritance->instanceBlock(Object(JTL\Smarty\JTLSmartyTemplateClass), 'Block_296614241...', 'productdetails-...', 22) #22 /var/www/html/includes/vendor/smarty/smarty/libs/sysplugins/smarty_internal_runtime_inheritance.php(248): Block_58109769564d10f4ff0d599_33848355->callBlock(Object(JTL\Smarty\JTLSmartyTemplateClass)) #23 /var/www/html/includes/vendor/smarty/smarty/libs/sysplugins/smarty_internal_runtime_inheritance.php(184): Smarty_Internal_Runtime_Inheritance->callBlock(Object(Block_58109769564d10f4ff0d599_33848355), Object(JTL\Smarty\JTLSmartyTemplateClass)) #24 /var/www/html/includes/vendor/smarty/smarty/libs/sysplugins/smarty_internal_runtime_inheritance.php(156): Smarty_Internal_Runtime_Inheritance->process(Object(JTL\Smarty\JTLSmartyTemplateClass), Object(Block_58109769564d10f4ff0d599_33848355)) #25 /var/www/html/templates_c/evo_child/ba169e8e48900824db00026dbb0fe86ab8b8b497_0.file.details.tpl.php(616): Smarty_Internal_Runtime_Inheritance->instanceBlock(Object(JTL\Smarty\JTLSmartyTemplateClass), 'Block_581097695...', 'productdetails-...', 22) #26 /var/www/html/includes/vendor/smarty/smarty/libs/sysplugins/smarty_internal_runtime_inheritance.php(248): Block_76957992064d10f4ff09677_65163093->callBlock(Object(JTL\Smarty\JTLSmartyTemplateClass)) #27 /var/www/html/includes/vendor/smarty/smarty/libs/sysplugins/smarty_internal_runtime_inheritance.php(184): Smarty_Internal_Runtime_Inheritance->callBlock(Object(Block_76957992064d10f4ff09677_65163093), Object(JTL\Smarty\JTLSmartyTemplateClass)) #28 /var/www/html/includes/vendor/smarty/smarty/libs/sysplugins/smarty_internal_runtime_inheritance.php(156): Smarty_Internal_Runtime_Inheritance->process(Object(JTL\Smarty\JTLSmartyTemplateClass), Object(Block_76957992064d10f4ff09677_65163093)) #29 /var/www/html/templates_c/evo_child/ba169e8e48900824db00026dbb0fe86ab8b8b497_0.file.details.tpl.php(40): Smarty_Internal_Runtime_Inheritance->instanceBlock(Object(JTL\Smarty\JTLSmartyTemplateClass), 'Block_769579920...', 'productdetails-...') #30 /var/www/html/includes/vendor/smarty/smarty/libs/sysplugins/smarty_template_resource_base.php(123): content_64d10f5000b533_62692863(Object(JTL\Smarty\JTLSmartyTemplateClass)) #31 /var/www/html/includes/vendor/smarty/smarty/libs/sysplugins/smarty_template_compiled.php(114): Smarty_Template_Resource_Base->getRenderedTemplateCode(Object(JTL\Smarty\JTLSmartyTemplateClass)) #32 /var/www/html/includes/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php(217): Smarty_Template_Compiled->render(Object(JTL\Smarty\JTLSmartyTemplateClass)) #33 /var/www/html/includes/src/Smarty/JTLSmartyTemplateClass.php(59): Smarty_Internal_Template->render(true, NULL) #34 /var/www/html/includes/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php(386): JTL\Smarty\JTLSmartyTemplateClass->render() #35 /var/www/html/includes/src/Smarty/JTLSmartyTemplateClass.php(37): Smarty_Internal_Template->_subTemplateRender('file:productdet...', NULL, NULL, 0, 86400, Array, 0, false, NULL, NULL) #36 /var/www/html/templates_c/evo_child/419544d96e777d70f37bea19af290adca2231e1e_0.file.index.tpl.php(78): JTL\Smarty\JTLSmartyTemplateClass->_subTemplateRender('file:productdet...', NULL, NULL, 0, 86400, Array, 0, false) #37 /var/www/html/includes/vendor/smarty/smarty/libs/sysplugins/smarty_internal_runtime_inheritance.php(248): Block_68975168764d10f4fdb0f61_58676747->callBlock(Object(JTL\Smarty\JTLSmartyTemplateClass)) #38 /var/www/html/includes/vendor/smarty/smarty/libs/sysplugins/smarty_internal_runtime_inheritance.php(184): Smarty_Internal_Runtime_Inheritance->callBlock(Object(Block_68975168764d10f4fdb0f61_58676747), Object(JTL\Smarty\JTLSmartyTemplateClass)) #39 /var/www/html/includes/vendor/smarty/smarty/libs/sysplugins/smarty_internal_runtime_inheritance.php(156): Smarty_Internal_Runtime_Inheritance->process(Object(JTL\Smarty\JTLSmartyTemplateClass), Object(Block_68975168764d10f4fdb0f61_58676747)) #40 /var/www/html/templates_c/evo_child/419544d96e777d70f37bea19af290adca2231e1e_0.file.index.tpl.php(131): Smarty_Internal_Runtime_Inheritance->instanceBlock(Object(JTL\Smarty\JTLSmartyTemplateClass), 'Block_689751687...', 'content', 0) #41 /var/www/html/includes/vendor/smarty/smarty/libs/sysplugins/smarty_internal_runtime_inheritance.php(248): Block_53741492964d10f4fdae9a1_75412754->callBlock(Object(JTL\Smarty\JTLSmartyTemplateClass)) #42 /var/www/html/includes/vendor/smarty/smarty/libs/sysplugins/smarty_internal_runtime_inheritance.php(184): Smarty_Internal_Runtime_Inheritance->callBlock(Object(Block_53741492964d10f4fdae9a1_75412754), Object(JTL\Smarty\JTLSmartyTemplateClass)) #43 /var/www/html/includes/vendor/smarty/smarty/libs/sysplugins/smarty_internal_runtime_inheritance.php(156): Smarty_Internal_Runtime_Inheritance->process(Object(JTL\Smarty\JTLSmartyTemplateClass), Object(Block_53741492964d10f4fdae9a1_75412754)) #44 /var/www/html/templates_c/evo_child/419544d96e777d70f37bea19af290adca2231e1e_0.file.index.tpl.php(34): Smarty_Internal_Runtime_Inheritance->instanceBlock(Object(JTL\Smarty\JTLSmartyTemplateClass), 'Block_537414929...', 'productdetails-...') #45 /var/www/html/includes/vendor/smarty/smarty/libs/sysplugins/smarty_template_resource_base.php(123): content_64d10f4fdb57e3_18910725(Object(JTL\Smarty\JTLSmartyTemplateClass)) #46 /var/www/html/includes/vendor/smarty/smarty/libs/sysplugins/smarty_template_compiled.php(114): Smarty_Template_Resource_Base->getRenderedTemplateCode(Object(JTL\Smarty\JTLSmartyTemplateClass)) #47 /var/www/html/includes/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php(217): Smarty_Template_Compiled->render(Object(JTL\Smarty\JTLSmartyTemplateClass)) #48 /var/www/html/includes/src/Smarty/JTLSmartyTemplateClass.php(59): Smarty_Internal_Template->render(false, 0) #49 /var/www/html/includes/vendor/smarty/smarty/libs/sysplugins/smarty_internal_templatebase.php(238): JTL\Smarty\JTLSmartyTemplateClass->render(false, 0) #50 /var/www/html/includes/vendor/smarty/smarty/libs/sysplugins/smarty_internal_templatebase.php(116): Smarty_Internal_TemplateBase->_execute(Object(JTL\Smarty\JTLSmartyTemplateClass), NULL, NULL, NULL, 0) #51 /var/www/html/includes/src/Smarty/JTLSmarty.php(344): Smarty_Internal_TemplateBase->fetch(Object(JTL\Smarty\JTLSmartyTemplateClass)) #52 /var/www/html/includes/src/Router/Controller/ProductController.php(379): JTL\Smarty\JTLSmarty->getResponse(Object(JTL\Smarty\JTLSmartyTemplateClass)) #53 /var/www/html/includes/src/Router/Controller/DefaultController.php(114): JTL\Router\Controller\ProductController->getResponse(Object(Laminas\Diactoros\ServerRequest), Array, Object(JTL\Smarty\JTLSmarty)) #54 /var/www/html/includes/src/Router/Strategy/SmartyStrategy.php(40): JTL\Router\Controller\DefaultController->getResponse(Object(Laminas\Diactoros\ServerRequest), Array, Object(JTL\Smarty\JTLSmarty)) #55 /var/www/html/includes/vendor/league/route/src/Route.php(167): JTL\Router\Strategy\SmartyStrategy->invokeRouteCallable(Object(League\Route\Route), Object(Laminas\Diactoros\ServerRequest)) #56 /var/www/html/includes/vendor/league/route/src/Dispatcher.php(59): League\Route\Route->process(Object(Laminas\Diactoros\ServerRequest), Object(League\Route\Dispatcher)) #57 /var/www/html/includes/src/Router/Middleware/PhpFileCheckMiddleware.php(36): League\Route\Dispatcher->handle(Object(Laminas\Diactoros\ServerRequest)) #58 /var/www/html/includes/vendor/league/route/src/Dispatcher.php(59): JTL\Router\Middleware\PhpFileCheckMiddleware->process(Object(Laminas\Diactoros\ServerRequest), Object(League\Route\Dispatcher)) #59 /var/www/html/includes/src/Router/Middleware/OptinMiddleware.php(49): League\Route\Dispatcher->handle(Object(Laminas\Diactoros\ServerRequest)) #60 /var/www/html/includes/vendor/league/route/src/Dispatcher.php(59): JTL\Router\Middleware\OptinMiddleware->process(Object(Laminas\Diactoros\ServerRequest), Object(League\Route\Dispatcher)) #61 /var/www/html/includes/src/Router/Middleware/CurrencyCheckMiddleware.php(26): League\Route\Dispatcher->handle(Object(Laminas\Diactoros\ServerRequest)) #62 /var/www/html/includes/vendor/league/route/src/Dispatcher.php(59): JTL\Router\Middleware\CurrencyCheckMiddleware->process(Object(Laminas\Diactoros\ServerRequest), Object(League\Route\Dispatcher)) #63 /var/www/html/includes/src/Router/Middleware/LocaleCheckMiddleware.php(34): League\Route\Dispatcher->handle(Object(Laminas\Diactoros\ServerRequest)) #64 /var/www/html/includes/vendor/league/route/src/Dispatcher.php(59): JTL\Router\Middleware\LocaleCheckMiddleware->process(Object(Laminas\Diactoros\ServerRequest), Object(League\Route\Dispatcher)) #65 /var/www/html/includes/src/Router/Middleware/CartcheckMiddleware.php(25): League\Route\Dispatcher->handle(Object(Laminas\Diactoros\ServerRequest)) #66 /var/www/html/includes/vendor/league/route/src/Dispatcher.php(59): JTL\Router\Middleware\CartcheckMiddleware->process(Object(Laminas\Diactoros\ServerRequest), Object(League\Route\Dispatcher)) #67 /var/www/html/includes/src/Router/Middleware/WishlistCheckMiddleware.php(24): League\Route\Dispatcher->handle(Object(Laminas\Diactoros\ServerRequest)) #68 /var/www/html/includes/vendor/league/route/src/Dispatcher.php(59): JTL\Router\Middleware\WishlistCheckMiddleware->process(Object(Laminas\Diactoros\ServerRequest), Object(League\Route\Dispatcher)) #69 /var/www/html/includes/src/Router/Middleware/SSLRedirectMiddleware.php(30): League\Route\Dispatcher->handle(Object(Laminas\Diactoros\ServerRequest)) #70 /var/www/html/includes/vendor/league/route/src/Dispatcher.php(59): JTL\Router\Middleware\SSLRedirectMiddleware->process(Object(Laminas\Diactoros\ServerRequest), Object(League\Route\Dispatcher)) #71 /var/www/html/includes/src/Router/Middleware/MaintenanceModeMiddleware.php(40): League\Route\Dispatcher->handle(Object(Laminas\Diactoros\ServerRequest)) #72 /var/www/html/includes/vendor/league/route/src/Dispatcher.php(59): JTL\Router\Middleware\MaintenanceModeMiddleware->process(Object(Laminas\Diactoros\ServerRequest), Object(League\Route\Dispatcher)) #73 /var/www/html/includes/src/Router/Middleware/LocaleRedirectMiddleware.php(38): League\Route\Dispatcher->handle(Object(Laminas\Diactoros\ServerRequest)) #74 /var/www/html/includes/vendor/league/route/src/Dispatcher.php(59): JTL\Router\Middleware\LocaleRedirectMiddleware->process(Object(Laminas\Diactoros\ServerRequest), Object(League\Route\Dispatcher)) #75 /var/www/html/includes/vendor/league/route/src/Strategy/ApplicationStrategy.php(37): League\Route\Dispatcher->handle(Object(Laminas\Diactoros\ServerRequest)) #76 /var/www/html/includes/vendor/league/route/src/Dispatcher.php(59): Psr\Http\Server\MiddlewareInterface@anonymous->process(Object(Laminas\Diactoros\ServerRequest), Object(League\Route\Dispatcher)) #77 /var/www/html/includes/vendor/league/route/src/Dispatcher.php(53): League\Route\Dispatcher->handle(Object(Laminas\Diactoros\ServerRequest)) #78 /var/www/html/includes/vendor/league/route/src/Router.php(111): League\Route\Dispatcher->dispatchRequest(Object(Laminas\Diactoros\ServerRequest)) #79 /var/www/html/includes/src/Router/Router.php(675): League\Route\Router->dispatch(Object(Laminas\Diactoros\ServerRequest)) #80 /var/www/html/includes/src/Shop.php(472): JTL\Router\Router->dispatch(Object(JTL\Smarty\JTLSmarty)) #81 /var/www/html/index.php(7): JTL\Shop::dispatch() #82 {main} thrown in /var/www/html/includes/src/Media/Image/AbstractImage.php on line 473

Die Funktion im Evo Template:

https://gitlab.com/jtl-software/jtl-shop/templates/evo/-/blob/master/php/functions.php#L579

Und das selbe im Nova:

https://gitlab.com/jtl-software/jtl...ncludes/src/Catalog/Product/Artikel.php#L1578

Sehe jetzt nicht was ich dort ändern müsste damit die Seite zumindest wieder geht. Hab im Forum zwar einige mit einem ähnlichen Problem im Theme gefunden aber niemand hat am Ende die Lösung dafür gepostet.