ad_track totalsqlstorage service needs logger injected

Created on 22 April 2025, about 2 months ago

Problem/Motivation

Ad_track TotalSqlStorage service does not have logger injected.

ArgumentCountError: Too few arguments to function Drupal\ad_track\TotalSqlStorage::__construct(), 1 passed in /var/www/drupalvm/web/core/lib/Drupal/Component/DependencyInjection/Container.php on line 261 and exactly 2 expected in Drupal\ad_track\TotalSqlStorage->__construct() (line 49 of modules/contrib/ad/modules/ad_track/src/TotalSqlStorage.php).
Drupal\Component\DependencyInjection\Container->createService(Array, 'ad_track.total_storage') (Line: 179)
Drupal\Component\DependencyInjection\Container->get('ad_track.total_storage') (Line: 140)
Drupal\ad_track\Plugin\Ad\Track\LocalTracker::create(Object, Array, 'delayed_local', Array) (Line: 34)
Drupal\ad_track\Plugin\Ad\Track\DelayedLocalTracker::create(Object, Array, 'delayed_local', Array) (Line: 21)
Drupal\Core\Plugin\Factory\ContainerFactory->createInstance('delayed_local', Array) (Line: 83)
Drupal\Component\Plugin\PluginManagerBase->createInstance('delayed_local') (Line: 45)
Drupal\ad\Track\TrackerFactory->get('delayed_local') (Line: 147)
Drupal\ad_content\Plugin\Ad\Bucket\AdContentBucket->getTracker() (Line: 69)
Drupal\ad_track\Controller\ClickTrackController->track('ad_content', 'fa624d67-1cff-451c-8eac-f3a2e9c2c893', Object)

Steps to reproduce

Enable ad_track, change settings to local or delayed tracking.
Clicking an ad will then generate the error.

πŸ› Bug report
Status

Active

Version

11.0

Component

ad module

Created by

πŸ‡ΊπŸ‡ΈUnited States derekw

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024