t3solution / t3sbootstrap

Startup extension to use bootstrap 5 classes, components and more out of the box.
GNU General Public License v2.0
25 stars 20 forks source link

Get TypeError in Upgrade Wizard #311

Open kiwivision opened 1 year ago

kiwivision commented 1 year ago

Typo3 Version 11.5.25 Bootstrap Components | t3sbootstrap | 5.2.11

` (1/1) TypeError

Cannot access offset of type string on string in /var/www/clients/client1/web374/web/typo3_src-11.5.25/typo3/sysext/core/Classes/Database/Query/QueryBuilder.php line 1368

    $queriedTables = [];

    // Loop through all FROM tables
    foreach ($this->getQueryPart('from') as $from) {
        $tableName = $this->unquoteSingleIdentifier($from['table']);
        $tableAlias = isset($from['alias']) ? $this->unquoteSingleIdentifier($from['alias']) : $tableName;
        if (!in_array($tableAlias, $this->restrictionsAppliedInJoinCondition, true)) {
            $queriedTables[$tableAlias] = $tableName;
        }

at TYPO3\CMS\Core\Database\Query\QueryBuilder->getQueriedTables() in /var/www/clients/client1/web374/web/typo3_src-11.5.25/typo3/sysext/core/Classes/Database/Query/QueryBuilder.php line 1399

 */
protected function addAdditionalWhereConditions()
{
    $originalWhereConditions = $this->concreteQueryBuilder->getQueryPart('where');
    $expression = $this->restrictionContainer->buildExpression($this->getQueriedTables(), $this->expr());
    // This check would be obsolete, as the composite expression would not add empty expressions anyway
    // But we keep it here to only clone the previous state, in case we really will change it.
    // Once we remove this state preserving functionality, we can remove the count check here
    // and just add the expression to the query builder.

at TYPO3\CMS\Core\Database\Query\QueryBuilder->addAdditionalWhereConditions() in /var/www/clients/client1/web374/web/typo3_src-11.5.25/typo3/sysext/core/Classes/Database/Query/QueryBuilder.php line 296

 */
public function executeQuery(): Result
{
    // Set additional query restrictions
    $originalWhereConditions = $this->addAdditionalWhereConditions();

    // @todo Call $this->concreteQueryBuilder->executeQuery()
    //        directly with doctrine/dbal:^3.2 raise in v12.
    $return = $this->concreteQueryBuilder->execute();

at TYPO3\CMS\Core\Database\Query\QueryBuilder->executeQuery() in /var/www/clients/client1/web374/web/cmp/typo3conf/ext/t3sbootstrap/Classes/Updates/T3sbCardsUpdateWizard.php line 131

  ->set('bodytext', $flexconf['text']['top'])
  ->set('tx_t3sbootstrap_bodytext', $flexconf['text']['bottom'])
  ->set('tx_t3sbootstrap_cardfooter', $flexconf['footer']['text'])
  ->set('tx_t3sbootstrap_list_item', $count)
  ->executeQuery();
}

} }

at T3SBS\T3sbootstrap\Updates\T3sbCardsUpdateWizard->upgradeCards() in /var/www/clients/client1/web374/web/cmp/typo3conf/ext/t3sbootstrap/Classes/Updates/T3sbCardsUpdateWizard.php line 51

t3solution commented 1 year ago

BUGFIX: https://github.com/t3solution/t3sbootstrap/commit/fb0c26c63f30eea0e991c7f98a79977b004009a5