Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
S sg_cookie_optin
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 16
    • Issues 16
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • Operations
    • Operations
    • Incidents
  • Analytics
    • Analytics
    • Repository
    • Value Stream
  • Members
    • Members
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • TYPO3
  • sg_cookie_optin
  • Issues
  • #152

Closed
Open
Created Mar 01, 2021 by Henrik@henrik.ahrens

TYPO3-Error in Statistic-Module (Call to undefined method Doctrine\DBAL\Driver\Mysqli\MysqliStatement::fetchAllAssociative())

I've updated the ext in my dev-env to v4.0.1 and got an TYPO3-Error when i try to view statistics or consent-management in the backend module.

My System:

  • Typo3 10.4.6
  • DDEV Env
  • webserver_type: nginx-fpm
  • Mysql-Version: MySQL 5.5.5-10.2.32-MariaDB-1:10.2.32+maria~bionic-log
  • PHP-Version: 7.2.31-1+0~20200514.41+debian10~1.gbpe2a56b

Call to undefined method Doctrine\DBAL\Driver\Mysqli\MysqliStatement::fetchAllAssociative()

in /var/www/html/public/typo3conf/ext/sg_cookie_optin/Classes/Service/OptinHistoryService.php line 266

  );
  $queryBuilder->addGroupBy('item_type');
  $queryBuilder->addGroupBy('item_identifier');

  return array_column($queryBuilder->execute()->fetchAllAssociative(), 'item_identifier');
 }

 /**
  * Gets the available versions

at SGalinski\SgCookieOptin\Service\OptinHistoryService::getItemIdentifiers(array('pid' => 54)) in /var/www/html/public/typo3conf/ext/sg_cookie_optin/Classes/Controller/ConsentController.php line 62

  $pageUid = (int) GeneralUtility::_GP('id');
  $this->view->assign(
   'identifiers', OptinHistoryService::getItemIdentifiers(
   [
    'pid' => $pageUid
   ]
  ));

  if ($pageUid) {
Edited Mar 01, 2021 by Henrik
Assignee
Assign to
4.0.0
Milestone
4.0.0
Assign milestone
Time tracking