Uncaught TypeError: Drupal\social_course\CourseWrapper::__construct(): Argument #4 ($moduleHandler) must be of type Drupal\Core\Extension\ModuleHandler, Drupal\hux\HuxModuleHandler given

Created on 3 December 2024, 5 months ago

Problem/Motivation

Upgraded to social 13.0.0-alpha19
Now when drush cr is run i get this:

Error: Uncaught TypeError:
Drupal\social_course\CourseWrapper::__construct(): Argument #4
($moduleHandler) must be of type
Drupal\Core\Extension\ModuleHandler, Drupal\hux\HuxModuleHandler
given, called in
drupal-10.3.x/html/core/lib/Drupal/Component/DependencyInjection/Container.php
on line 261 and defined in
drupal-10.3.x/html/modules/contrib/social_course/src/CourseWrapper.php:77
Stack trace:
#0
drupal-10.3.x/html/core/lib/Drupal/Component/DependencyInjection/Container.php(261):
Drupal\social_course\CourseWrapper->__construct()
#1
drupal-10.3.x/html/core/lib/Drupal/Component/DependencyInjection/Container.php(179):
Drupal\Component\DependencyInjection\Container->createService()
#2
drupal-10.3.x/html/core/lib/Drupal.php(197):
Drupal\Component\DependencyInjection\Container->get()
#3
drupal-10.3.x/html/modules/contrib/social_course/social_course.module(852):
Drupal::service()
#4
drupal-10.3.x/html/core/lib/Drupal/Core/Extension/ModuleHandler.php(552):
social_course_social_group_types_alter()
#5
drupal-10.3.x/html/modules/contrib/hux/src/HuxModuleHandler.php(163):
Drupal\Core\Extension\ModuleHandler->alter()
#6
drupal-10.3.x/html/profiles/contrib/social/modules/social_features/social_group/modules/social_group_request/src/SocialGroupRequestConfigOverride.php(84):
Drupal\hux\HuxModuleHandler->alter()
#7
drupal-10.3.x/html/core/lib/Drupal/Core/Config/ConfigFactory.php(209):
Drupal\social_group_request\SocialGroupRequestConfigOverride->loadOverrides()
#8
drupal-10.3.x/html/core/lib/Drupal/Core/Config/ConfigFactory.php(169):
Drupal\Core\Config\ConfigFactory->loadOverrides()
#9
drupal-10.3.x/html/core/lib/Drupal/Core/Config/ConfigFactory.php(104):
Drupal\Core\Config\ConfigFactory->doLoadMultiple()
#10
drupal-10.3.x/html/core/lib/Drupal/Core/Config/ConfigFactory.php(89):
Drupal\Core\Config\ConfigFactory->doGet()
#11
drupal-10.3.x/html/core/lib/Drupal/Core/Extension/ThemeHandler.php(70):
Drupal\Core\Config\ConfigFactory->get()
#12
drupal-10.3.x/html/core/lib/Drupal/Core/Template/Loader/FilesystemLoader.php(46):
Drupal\Core\Extension\ThemeHandler->listInfo()
#13
drupal-10.3.x/html/core/lib/Drupal/Component/DependencyInjection/Container.php(261):
Drupal\Core\Template\Loader\FilesystemLoader->__construct()
#14
drupal-10.3.x/html/core/lib/Drupal/Component/DependencyInjection/Container.php(179):
Drupal\Component\DependencyInjection\Container->createService()
#15
drupal-10.3.x/html/core/lib/Drupal/Component/DependencyInjection/Container.php(438):
Drupal\Component\DependencyInjection\Container->get()
#16
drupal-10.3.x/html/core/lib/Drupal/Component/DependencyInjection/Container.php(275):
Drupal\Component\DependencyInjection\Container->resolveServicesAndParameters()
#17
drupal-10.3.x/html/core/lib/Drupal/Component/DependencyInjection/Container.php(179):
Drupal\Component\DependencyInjection\Container->createService()
#18
drupal-10.3.x/html/core/lib/Drupal/Component/DependencyInjection/Container.php(438):
Drupal\Component\DependencyInjection\Container->get()
#19
drupal-10.3.x/html/core/lib/Drupal/Component/DependencyInjection/Container.php(239):
Drupal\Component\DependencyInjection\Container->resolveServicesAndParameters()
#20
drupal-10.3.x/html/core/lib/Drupal/Component/DependencyInjection/Container.php(179):
Drupal\Component\DependencyInjection\Container->createService()
#21
drupal-10.3.x/html/core/lib/Drupal.php(197):
Drupal\Component\DependencyInjection\Container->get()
#22
drupal-10.3.x/html/core/includes/common.inc(457):
Drupal::service()
#23
drupal-10.3.x/html/core/includes/utility.inc(41):
drupal_flush_all_caches()
#24 /usr/local/share/drush/commands/core/cache.drush.inc(302):
drupal_rebuild()
#25 /usr/local/share/drush/includes/command.inc(422):
drush_cache_rebuild()
#26 /usr/local/share/drush/includes/command.inc(231):
_drush_invoke_hooks()
#27 /usr/local/share/drush/includes/command.inc(199):
drush_command()
#28 /usr/local/share/drush/lib/Drush/Boot/BaseBoot.php(67):
drush_dispatch()
#29 /usr/local/share/drush/includes/preflight.inc(67):
Drush\Boot\BaseBoot->bootstrap_and_dispatch()
#30 /usr/local/share/drush/drush.php(12): drush_main()
#31 {main}
thrown in
drupal-10.3.x/html/modules/contrib/social_course/src/CourseWrapper.php,
line 77

Steps to reproduce

when drush cr is run

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Active

Version

6.1

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States SocialNicheGuru

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

Comments & Activities

Production build 0.71.5 2024