markocupic / gallery-creator-bundle

Manage and display photo galleries. Plugin for Contao CMS.
GNU General Public License v3.0
7 stars 3 forks source link

Setting metadata is not supported in this extra metadata bag #39

Closed mlwebworker closed 1 week ago

mlwebworker commented 1 week ago

Contao 5.4.4 GalleryCreator: 3.0.2

Stacktrace:

RuntimeException:
Setting metadata is not supported in this extra metadata bag.

  at F:\public_html\xxx\vendor\contao\core-bundle\src\Filesystem\ExtraMetadata.php:93
  at Contao\CoreBundle\Filesystem\ExtraMetadata->offsetSet('title', '')
     (F:\public_html\xxx\vendor\markocupic\gallery-creator-bundle\src\Util\PictureUtil.php:66)
  at Markocupic\GalleryCreatorBundle\Util\PictureUtil->getPictureData(object(GalleryCreatorPicturesModel), object(ContentModel))
     (F:\public_html\xxx\vendor\markocupic\gallery-creator-bundle\src\Controller\ContentElement\AbstractGalleryCreatorController.php:309)
  at Markocupic\GalleryCreatorBundle\Controller\ContentElement\AbstractGalleryCreatorController->addAlbumPicturesToTemplate(object(GalleryCreatorAlbumsModel), object(ContentModel), object(FragmentTemplate), object(PageModel))
     (F:\public_html\xxx\vendor\markocupic\gallery-creator-bundle\src\Controller\ContentElement\GalleryCreatorController.php:227)
  at Markocupic\GalleryCreatorBundle\Controller\ContentElement\GalleryCreatorController->getResponse(object(FragmentTemplate), object(ContentModel), object(Request))
     (F:\public_html\xxx\vendor\contao\core-bundle\src\Controller\ContentElement\AbstractContentElementController.php:40)
  at Contao\CoreBundle\Controller\ContentElement\AbstractContentElementController->__invoke(object(Request), object(ContentModel), 'main', null)
     (F:\public_html\xxx\vendor\markocupic\gallery-creator-bundle\src\Controller\ContentElement\GalleryCreatorController.php:152)
  at Markocupic\GalleryCreatorBundle\Controller\ContentElement\GalleryCreatorController->__invoke(object(Request), object(ContentModel), 'main', null, object(PageModel))
     (F:\public_html\xxx\vendor\symfony\http-kernel\HttpKernel.php:181)
  at Symfony\Component\HttpKernel\HttpKernel->handleRaw(object(Request), 2)
     (F:\public_html\xxx\vendor\symfony\http-kernel\HttpKernel.php:76)
  at Symfony\Component\HttpKernel\HttpKernel->handle(object(Request), 2, false)
     (F:\public_html\xxx\vendor\symfony\http-kernel\HttpCache\SubRequestHandler.php:86)
  at Symfony\Component\HttpKernel\HttpCache\SubRequestHandler::handle(object(HttpKernel), object(Request), 2, false)
     (F:\public_html\xxx\vendor\symfony\http-kernel\Fragment\InlineFragmentRenderer.php:78)
  at Symfony\Component\HttpKernel\Fragment\InlineFragmentRenderer->render('/preview.php/_fragment?_path=_format%3Dhtml%26_locale%3Dde%26_controller%3Dcontao.content_element.gallery_creator', object(Request), array('ignore_errors' => false))
     (F:\public_html\xxx\vendor\symfony\http-kernel\Fragment\FragmentHandler.php:83)
  at Symfony\Component\HttpKernel\Fragment\FragmentHandler->render(object(ContentElementReference), 'forward', array('ignore_errors' => false))
     (F:\public_html\xxx\vendor\contao\core-bundle\src\Fragment\FragmentHandler.php:66)
  at Contao\CoreBundle\Fragment\FragmentHandler->render(object(ContentElementReference))
     (F:\public_html\xxx\vendor\contao\core-bundle\contao\elements\ContentProxy.php:74)
  at Contao\ContentProxy->generate()
     (F:\public_html\xxx\vendor\contao\core-bundle\contao\library\Contao\Controller.php:601)
  at Contao\Controller::getContentElement(object(ContentModel), 'main')
     (F:\public_html\xxx\vendor\contao\core-bundle\contao\modules\ModuleArticle.php:189)
  at Contao\ModuleArticle->compile()
     (F:\public_html\xxx\vendor\contao\core-bundle\contao\modules\Module.php:213)
  at Contao\Module->generate()
     (F:\public_html\xxx\vendor\contao\core-bundle\contao\modules\ModuleArticle.php:69)
  at Contao\ModuleArticle->generate(false)
     (F:\public_html\xxx\vendor\contao\core-bundle\contao\library\Contao\Controller.php:490)
  at Contao\Controller::getArticle(object(ArticleModel), false, false, 'main')
     (F:\public_html\xxx\vendor\contao\core-bundle\contao\library\Contao\Controller.php:356)
  at Contao\Controller::getFrontendModule('0', 'main')
     (F:\public_html\xxx\vendor\contao\core-bundle\contao\pages\PageRegular.php:177)
  at Contao\PageRegular->prepare(object(PageModel))
     (F:\public_html\xxx\vendor\contao\core-bundle\contao\pages\PageRegular.php:47)
  at Contao\PageRegular->getResponse(object(PageModel), true)
     (F:\public_html\xxx\vendor\contao\core-bundle\contao\controllers\FrontendIndex.php:65)
  at Contao\FrontendIndex->renderPage(object(PageModel))
     (F:\public_html\xxx\vendor\symfony\http-kernel\HttpKernel.php:181)
  at Symfony\Component\HttpKernel\HttpKernel->handleRaw(object(Request), 1)
     (F:\public_html\xxx\vendor\symfony\http-kernel\HttpKernel.php:76)
  at Symfony\Component\HttpKernel\HttpKernel->handle(object(Request), 1, true)
     (F:\public_html\xxx\vendor\symfony\http-kernel\Kernel.php:197)
  at Symfony\Component\HttpKernel\Kernel->handle(object(Request))
     (F:\public_html\xxx\public\preview.php:44) 

Danach ebenfalls getestet in Contao 5.3.17 und mit Gallery Creator 3.0.1 - gleicher Fehler. Mit Contao 5.3.15 und 5.4.3 funktioniert die Erweiterung ohne Fehler. Hängt nach meinem Nicht-Entwickler-Verständnis mit folgender Änderung im Contao Core zusammen: https://github.com/contao/contao/pull/7626

markocupic commented 1 week ago

@mlwebworker Thank you for reporting the issue!

mlwebworker commented 1 week ago

Danke fürs schnelle fixen