heimrichhannot / contao-utils-bundle

This bundle offers various utility functionality for the Contao CMS.
GNU Lesser General Public License v3.0
8 stars 4 forks source link

Type Error nach Update auf Contao 4.4.45 #12

Closed saress closed 4 years ago

saress commented 4 years ago

Hallo,

seit dem heutigen Update auf Contao 4.4.45 (von Contao 4.4.44) erhalten wir beim Aufruf der Erweiterung terminal42/contao-node im Backend folgende Fehlermeldung:

Type error: Argument 1 passed to HeimrichHannot\UtilsBundle\Model\CfgTagModel::__construct() must implement interface Contao\CoreBundle\Framework\ContaoFrameworkInterface, instance of Contao\Database\Result given, called in /home/vendor/contao/core-bundle/src/Resources/contao/library/Contao/Model/Collection.php on line 146

Der Stacktrace dazu schaut wie folgt aus:

Symfony\Component\Debug\Exception\FatalThrowableError: Type error: Argument 1 passed to HeimrichHannot\UtilsBundle\Model\CfgTagModel::__construct() must implement interface Contao\CoreBundle\Framework\ContaoFrameworkInterface, instance of Contao\Database\Result given, called in /home/vendor/contao/core-bundle/src/Resources/contao/library/Contao/Model/Collection.php on line 146

at vendor/heimrichhannot/contao-utils-bundle/src/Model/CfgTagModel.php:23 at HeimrichHannot\UtilsBundle\Model\CfgTagModel->__construct(object(Result)) (vendor/contao/core-bundle/src/Resources/contao/library/Contao/Model/Collection.php:146) at Contao\Model\Collection::createFromDbResult(object(Result), 'tl_cfg_tag') (vendor/contao/core-bundle/src/Resources/contao/library/Contao/Model.php:1269) at Contao\Model::createCollectionFromDbResult(object(Result), 'tl_cfg_tag') (vendor/contao/core-bundle/src/Resources/contao/library/Contao/Model.php:1108) at Contao\Model::find(array('column' => array('source=?', 'id IN (1,2,3,11,4,5,6,7,23,8,14,9,10,12,13,36,15,16,17,18,20,22,21,24,25,26,27,29,30,31,32,33,34,35,37,38,39,40,41,43,44,45,46,47,48,49,50,51,52,53,54,55,56)'), 'value' => array('terminal42_node'), 'return' => 'Collection', 'order' => 'name', 'table' => 'tl_cfg_tag', 'limit' => 0, 'offset' => 0)) (vendor/contao/core-bundle/src/Resources/contao/library/Contao/Model.php:952) at Contao\Model::findBy(array('source=?', 'id IN (1,2,3,11,4,5,6,7,23,8,14,9,10,12,13,36,15,16,17,18,20,22,21,24,25,26,27,29,30,31,32,33,34,35,37,38,39,40,41,43,44,45,46,47,48,49,50,51,52,53,54,55,56)'), array('terminal42_node'), array('column' => array('source=?', 'id IN (1,2,3,11,4,5,6,7,23,8,14,9,10,12,13,36,15,16,17,18,20,22,21,24,25,26,27,29,30,31,32,33,34,35,37,38,39,40,41,43,44,45,46,47,48,49,50,51,52,53,54,55,56)'), 'value' => array('terminal42_node'), 'return' => 'Collection', 'order' => 'name')) (vendor/codefog/tags-bundle/src/Model/TagModel.php:49) at Codefog\TagsBundle\Model\TagModel::findByCriteria(array('values' => array('1', '2', '3', '11', '4', '5', '6', '7', '23', '8', '14', '9', '10', '12', '13', '36', '15', '16', '17', '18', '20', '22', '21', '24', '25', '26', '27', '29', '30', '31', '32', '33', '34', '35', '37', '38', '39', '40', '41', '43', '44', '45', '46', '47', '48', '49', '50', '51', '52', '53', '54', '55', '56'), 'source' => 'terminal42_node', 'sourceTable' => 'tl_node', 'sourceField' => 'tags')) (vendor/contao/core-bundle/src/Framework/Adapter.php:47) at Contao\CoreBundle\Framework\Adapter->__call('findByCriteria', array(array('values' => array('1', '2', '3', '11', '4', '5', '6', '7', '23', '8', '14', '9', '10', '12', '13', '36', '15', '16', '17', '18', '20', '22', '21', '24', '25', '26', '27', '29', '30', '31', '32', '33', '34', '35', '37', '38', '39', '40', '41', '43', '44', '45', '46', '47', '48', '49', '50', '51', '52', '53', '54', '55', '56'), 'source' => 'terminal42_node', 'sourceTable' => 'tl_node', 'sourceField' => 'tags'))) (vendor/codefog/tags-bundle/src/Manager/DefaultManager.php:234) at Codefog\TagsBundle\Manager\DefaultManager->findMultiple(array('values' => array('1', '2', '3', '11', '4', '5', '6', '7', '23', '8', '14', '9', '10', '12', '13', '36', '15', '16', '17', '18', '20', '22', '21', '24', '25', '26', '27', '29', '30', '31', '32', '33', '34', '35', '37', '38', '39', '40', '41', '43', '44', '45', '46', '47', '48', '49', '50', '51', '52', '53', '54', '55', '56'))) (vendor/codefog/tags-bundle/src/Manager/DefaultManager.php:321) at Codefog\TagsBundle\Manager\DefaultManager->getFilterOptions(object(DC_Table)) (vendor/codefog/tags-bundle/src/EventListener/TagManagerListener.php:103) at Codefog\TagsBundle\EventListener\TagManagerListener->onOptionsCallback(object(DC_Table)) (vendor/codefog/contao-haste/library/Haste/Model/Relations.php:673) at Haste\Model\Relations->addRelationFilters(object(DC_Table)) (vendor/contao/core-bundle/src/Resources/contao/classes/DataContainer.php:1034) at Contao\DataContainer->panel() (vendor/contao/core-bundle/src/Resources/contao/drivers/DC_Table.php:345) at Contao\DC_Table->showAll() (vendor/contao/core-bundle/src/Resources/contao/classes/Backend.php:620) at Contao\Backend->getBackendModule('nodes', null) (vendor/contao/core-bundle/src/Resources/contao/controllers/BackendMain.php:131) at Contao\BackendMain->run() (vendor/contao/core-bundle/src/Controller/BackendController.php:55) at Contao\CoreBundle\Controller\BackendController->mainAction() (vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php:151) at Symfony\Component\HttpKernel\HttpKernel->handleRaw(object(Request), 1) (vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php:68) at Symfony\Component\HttpKernel\HttpKernel->handle(object(Request), 1, true) (vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Kernel.php:200) at Symfony\Component\HttpKernel\Kernel->handle(object(Request)) (web/app_dev.php:69)

Da sich aber weder bei Kamils Tags-Modul noch beim Terminal42 Node Modul in letzter Zeit sonderlich viel getan hat, haben wir aktuell noch nicht herausgefunden, wo das Problem genau liegt.

Vielen Dank und beste Grüße Saress

Defcon0 commented 4 years ago

Hi,

schau bitte mal, ob Version 2.119.2 das Problem bei dir löst (gerade gepusht).

saress commented 4 years ago

Vielen Dank Defcon0, die aktuelle Version behebt das Problem :-)

Beste Grüße Saress