Bonjour à tous,
Je cherche à optimiser mon site et j'ai commencé par optimiser mes images.
A l'heure actuelle, le passage de mes images en format .webp est la meilleure solution que j'ai trouvé
Après avoir converti mes image au bon format je les intègre dans le module "Background" mais lors de l'import de l'image fraîchement converti au format .webp j'obtiens l'erreur suivante :
1: ERROR [ErrorListener.php:logException()] {109} 2020-02-21 11:43:48:Uncaught exceptionUnable to open image D:\Commun\Informatique\Sites\lcv3\local/media/images\background\carrousel-concept-49.webp
Stack Trace: #0 D:\Commun\Informatique\Sites\lcv3\core\lib\Thelia\Action\Image.php(138): Imagine\Gd\Imagine->open('D:\\Commun\\Infor...')
#1 [internal function]: Thelia\Action\Image->processImage(Object(Thelia\Core\Event\Image\ImageEvent), 'action.processI...', Object(Symfony\Component\EventDispatcher\ContainerAwareEventDispatcher))
#2 D:\Commun\Informatique\Sites\lcv3\core\vendor\symfony\event-dispatcher\EventDispatcher.php(181): call_user_func(Array, Object(Thelia\Core\Event\Image\ImageEvent), 'action.processI...', Object(Symfony\Component\EventDispatcher\ContainerAwareEventDispatcher))
#3 D:\Commun\Informatique\Sites\lcv3\core\vendor\symfony\event-dispatcher\EventDispatcher.php(46): Symfony\Component\EventDispatcher\EventDispatcher->doDispatch(Array, 'action.processI...', Object(Thelia\Core\Event\Image\ImageEvent))
#4 D:\Commun\Informatique\Sites\lcv3\local\modules\Background\Loop\BackgroundLoop.php(119): Symfony\Component\EventDispatcher\EventDispatcher->dispatch('action.processI...', Object(Thelia\Core\Event\Image\ImageEvent))
#5 D:\Commun\Informatique\Sites\lcv3\core\lib\Thelia\Core\Template\Element\BaseLoop.php(540): Background\Loop\BackgroundLoop->parseResults(Object(Thelia\Core\Template\Element\LoopResult))
#6 D:\Commun\Informatique\Sites\lcv3\local\modules\TheliaSmarty\Template\Plugins\TheliaLoop.php(156): Thelia\Core\Template\Element\BaseLoop->exec(NULL)
#7 D:\Commun\Informatique\Sites\lcv3\cache\prod\smarty\compile\e893a68e2886ee88b698c1ba0e498307caa3f97a.string.php(161): TheliaSmarty\Template\Plugins\TheliaLoop->theliaLoop(Array, NULL, Object(Smarty_Internal_Template), true)
#8 D:\Commun\Informatique\Sites\lcv3\core\vendor\smarty\smarty\libs\sysplugins\smarty_internal_templatebase.php(188): content_5e4faf0d736d26_82396221(Object(Smarty_Internal_Template))
#9 D:\Commun\Informatique\Sites\lcv3\local\modules\TheliaSmarty\Template\Plugins\Module.php(87): Smarty_Internal_TemplateBase->fetch('string:<div cla...')
#10 D:\Commun\Informatique\Sites\lcv3\local\modules\TheliaSmarty\Template\Plugins\Hook.php(141): TheliaSmarty\Template\Plugins\Module->theliaModule(Array, Object(Smarty_Internal_Template))
#11 D:\Commun\Informatique\Sites\lcv3\local\modules\TheliaSmarty\Template\Plugins\Hook.php(118): TheliaSmarty\Template\Plugins\Hook->moduleIncludeCompat(Array, Object(Smarty_Internal_Template))
#12 D:\Commun\Informatique\Sites\lcv3\cache\prod\smarty\compile\9bde7e78c4759486dc70775be1fee5e500ca032a.file.module-configure.html.php(255): TheliaSmarty\Template\Plugins\Hook->processHookFunction(Array, Object(Smarty_Internal_Template))
#13 D:\Commun\Informatique\Sites\lcv3\core\vendor\smarty\smarty\libs\sysplugins\smarty_internal_templatebase.php(188): content_5e4540f9f334a5_11093395(Object(Smarty_Internal_Template))
#14 D:\Commun\Informatique\Sites\lcv3\local\modules\TheliaSmarty\Template\SmartyParser.php(381): Smarty_Internal_TemplateBase->fetch('file:module-con...')
#15 D:\Commun\Informatique\Sites\lcv3\local\modules\TheliaSmarty\Template\SmartyParser.php(424): TheliaSmarty\Template\SmartyParser->internalRenderer('file', 'module-configur...', Array, true)
#16 D:\Commun\Informatique\Sites\lcv3\core\lib\Thelia\Controller\Admin\BaseAdminController.php(390): TheliaSmarty\Template\SmartyParser->render('module-configur...', Array)
#17 D:\Commun\Informatique\Sites\lcv3\core\lib\Thelia\Controller\Admin\BaseAdminController.php(346): Thelia\Controller\Admin\BaseAdminController->renderRaw('module-configur...', Array)
#18 D:\Commun\Informatique\Sites\lcv3\core\lib\Thelia\Controller\Admin\ModuleController.php(240): Thelia\Controller\Admin\BaseAdminController->render('module-configur...', Array)
#19 [internal function]: Thelia\Controller\Admin\ModuleController->configureAction('Background')
#20 D:\Commun\Informatique\Sites\lcv3\core\vendor\symfony\http-kernel\HttpKernel.php(139): call_user_func_array(Array, Array)
#21 D:\Commun\Informatique\Sites\lcv3\core\vendor\symfony\http-kernel\HttpKernel.php(62): Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object(Thelia\Core\HttpFoundation\Request), 1)
#22 D:\Commun\Informatique\Sites\lcv3\core\lib\Thelia\Core\TheliaHttpKernel.php(76): Symfony\Component\HttpKernel\HttpKernel->handle(Object(Thelia\Core\HttpFoundation\Request), 1, true)
#23 D:\Commun\Informatique\Sites\lcv3\core\lib\Thelia\Core\Stack\ParamInitMiddleware.php(87): Thelia\Core\TheliaHttpKernel->handle(Object(Thelia\Core\HttpFoundation\Request), 1, true)
#24 D:\Commun\Informatique\Sites\lcv3\core\lib\Thelia\Core\Stack\SessionMiddleware.php(80): Thelia\Core\Stack\ParamInitMiddleware->handle(Object(Thelia\Core\HttpFoundation\Request), 1, true)
#25 D:\Commun\Informatique\Sites\lcv3\core\vendor\stack\builder\src\Stack\StackedHttpKernel.php(23): Thelia\Core\Stack\SessionMiddleware->handle(Object(Thelia\Core\HttpFoundation\Request), 1, true)
#26 D:\Commun\Informatique\Sites\lcv3\core\vendor\symfony\http-kernel\Kernel.php(185): Stack\StackedHttpKernel->handle(Object(Thelia\Core\HttpFoundation\Request), 1, true)
#27 D:\Commun\Informatique\Sites\lcv3\web\index.php(38): Symfony\Component\HttpKernel\Kernel->handle(Object(Thelia\Core\HttpFoundation\Request))
#28 {main}
Suite à ce message d'erreur en Back-Office, j'ai du me rendre dans en base de données pour supprimer manuellement l'image de façon à retrouver un fonctionnement normale de mon module sans quoi je restais avec le message d'erreur malgré le rafraîchissement du cache navigateur et de la page.
Thélia est-il compatible avec ce format d'image ?
Manos
Last edited by Manos (21-02-2020 11:51:51)