madeyourday / contao-rocksolid-slider

RockSolid Slider Contao Extension
http://rocksolidthemes.com/de/contao/plugins/responsive-slider
Other
9 stars 7 forks source link

Warning with PHP 8 and news not installed #74

Closed e-spin closed 3 years ago

e-spin commented 3 years ago

$GLOBALS['TL_DCA']['tl_module']['fields']['news_metaFields']['eval']['tl_class'] .= ' clr';

Warning: Undefined array key "news_metaFields"

  at vendor/madeyourday/contao-rocksolid-slider/src/Resources/contao/dca/tl_module.php:33
  at include('/www/htdocs/xxx/vendor/madeyourday/contao-rocksolid-slider/src/Resources/contao/dca/tl_module.php')
     (vendor/contao/core-bundle/src/Resources/contao/library/Contao/DcaLoader.php:108)
  at Contao\DcaLoader->loadDcaFiles(false)
     (vendor/contao/core-bundle/src/Resources/contao/library/Contao/DcaLoader.php:70)
  at Contao\DcaLoader->load(false)
     (vendor/contao/core-bundle/src/Resources/contao/library/Contao/Controller.php:1323)
  at Contao\Controller::loadDataContainer('tl_module')
     (vendor/contao/core-bundle/src/Resources/contao/library/Contao/DcaExtractor.php:380)
  at Contao\DcaExtractor->createExtract()
     (vendor/contao/core-bundle/src/Resources/contao/library/Contao/DcaExtractor.php:128)
  at Contao\DcaExtractor->__construct('tl_module')
     (vendor/contao/core-bundle/src/Resources/contao/library/Contao/DcaExtractor.php:150)
  at Contao\DcaExtractor::getInstance('tl_module')
     (vendor/contao/core-bundle/src/Resources/contao/library/Contao/Model/QueryBuilder.php:33)
  at Contao\Model\QueryBuilder::find(array('column' => array('tl_module.id IN(45,35,0,38,32)'), 'value' => null, 'order' => 'FIND_IN_SET(`tl_module`.`id`, \'45,35,0,38,32\')', 'return' => 'Collection', 'table' => 'tl_module'))
     (vendor/contao/core-bundle/src/Resources/contao/library/Contao/Model.php:1215)
  at Contao\Model::buildFindQuery(array('column' => array('tl_module.id IN(45,35,0,38,32)'), 'value' => null, 'order' => 'FIND_IN_SET(`tl_module`.`id`, \'45,35,0,38,32\')', 'return' => 'Collection', 'table' => 'tl_module'))
     (vendor/contao/core-bundle/src/Resources/contao/library/Contao/Model.php:1053)
  at Contao\Model::find(array('column' => array('tl_module.id IN(45,35,0,38,32)'), 'value' => null, 'order' => 'FIND_IN_SET(`tl_module`.`id`, \'45,35,0,38,32\')', 'return' => 'Collection', 'table' => 'tl_module'))
     (vendor/contao/core-bundle/src/Resources/contao/library/Contao/Model.php:868)
  at Contao\Model::findMultipleByIds(array(45, 35, 0, 38, 32))
     (vendor/contao/core-bundle/src/Resources/contao/pages/PageRegular.php:112)
  at Contao\PageRegular->prepare(object(PageModel))
     (vendor/contao/core-bundle/src/Resources/contao/pages/PageRegular.php:46)
  at Contao\PageRegular->getResponse(object(PageModel), true)
     (vendor/contao/core-bundle/src/Resources/contao/controllers/FrontendIndex.php:341)
  at Contao\FrontendIndex->renderPage(object(PageModel))
     (vendor/symfony/http-kernel/HttpKernel.php:157)
  at Symfony\Component\HttpKernel\HttpKernel->handleRaw(object(Request), 1)
     (vendor/symfony/http-kernel/HttpKernel.php:79)
  at Symfony\Component\HttpKernel\HttpKernel->handle(object(Request), 1, true)
     (vendor/symfony/http-kernel/Kernel.php:195)
  at Symfony\Component\HttpKernel\Kernel->handle(object(Request))
     (web/index.php:31)

composer.json

    "require": {
        "contao/conflicts": "*@dev",
        "contao/manager-bundle": "4.11.*",
        "contao/newsletter-bundle": "^4.11",
ausi commented 3 years ago

@e-spin Could you please test if the current master branch works correctly now with PHP 8 in your setup?

"madeyourday/contao-rocksolid-slider":"dev-master",

zonky2 commented 3 years ago

works fine!

thx