codefog / contao-haste

Haste is a collection of tools and classes to ease working with Contao
http://codefog.pl/extension/haste.html
MIT License
42 stars 24 forks source link

ErrorException in debug mode: Undefined array key "formatted" #171

Closed contaoacademy closed 2 years ago

contaoacademy commented 2 years ago

In debug mode, I get the following error in the frontend when I use the module «Isotope Messages»

Warning: Undefined array key "formatted"

  at vendor/codefog/contao-haste/library/Haste/Data/Collection.php:42
  at Haste\Data\Collection->__toString()
     (vendor/isotope/isotope-core/system/modules/isotope/templates/modules/mod_iso_messages.html5:5)
  at include('/demo_isotope/vendor/isotope/isotope-core/system/modules/isotope/templates/modules/mod_iso_messages.html5')
     (vendor/contao/core-bundle/src/Resources/contao/library/Contao/TemplateInheritance.php:108)
  at Contao\Template->inherit()
     (vendor/contao/core-bundle/src/Resources/contao/library/Contao/Template.php:295)
  at Contao\Template->parse()
     (vendor/contao/core-bundle/src/Resources/contao/classes/FrontendTemplate.php:43)
  at Contao\FrontendTemplate->parse()
     (vendor/contao/core-bundle/src/Resources/contao/modules/Module.php:245)
  at Contao\Module->generate()
     (vendor/codefog/contao-haste/library/Haste/Frontend/AbstractFrontendModule.php:52)
  at Haste\Frontend\AbstractFrontendModule->generate()
     (vendor/isotope/isotope-core/system/modules/isotope/library/Isotope/Module/Module.php:115)
  at Isotope\Module\Module->generate()
     (vendor/isotope/isotope-core/system/modules/isotope/library/Isotope/Module/Messages.php:44)
  at Isotope\Module\Messages->generate()
     (vendor/contao/core-bundle/src/Resources/contao/library/Contao/Controller.php:434)
  at Contao\Controller::getFrontendModule(object(ModuleModel), 'shopmessage')
     (vendor/contao/core-bundle/src/Resources/contao/pages/PageRegular.php:199)
  at Contao\PageRegular->prepare(object(PageModel))
     (vendor/contao/core-bundle/src/Resources/contao/pages/PageRegular.php:60)
  at Contao\PageRegular->getResponse(object(PageModel), true)
     (vendor/contao/core-bundle/src/Resources/contao/controllers/FrontendIndex.php:316)
  at Contao\FrontendIndex->renderPage(object(PageModel))
     (vendor/symfony/http-kernel/HttpKernel.php:152)
  at Symfony\Component\HttpKernel\HttpKernel->handleRaw(object(Request), 1)
     (vendor/symfony/http-kernel/HttpKernel.php:74)
  at Symfony\Component\HttpKernel\HttpKernel->handle(object(Request), 1, true)
     (vendor/symfony/http-kernel/Kernel.php:202)
  at Symfony\Component\HttpKernel\Kernel->handle(object(Request))
     (public/index.php:44)                
An error occurred while loading the web debug toolbar.

https://github.com/isotope/core/issues/2314#issuecomment-1174685670

qzminski commented 2 years ago

Fixed in a880f76.