TypeError: get_class(): Argument #1 ($object) must be of type object, string given in /var/www/html/web/modules/contrib/tracer/src/EventDispatcher/TraceableEventDispatcher.php on line 187

Created on 6 October 2023, 9 months ago
Updated 28 November 2023, 7 months ago

Problem/Motivation

TypeError: get_class(): Argument #1 ($object) must be of type object, string given in /var/www/html/web/modules/contrib/tracer/src/EventDispatcher/TraceableEventDispatcher.php on line 187 #0 /var/www/html/web/modules/contrib/tracer/src/EventDispatcher/TraceableEventDispatcher.php(187): get_class('Drush\\Commands\\...')
#1 /var/www/html/web/modules/contrib/tracer/src/EventDispatcher/TraceableEventDispatcher.php(96): Drupal\tracer\EventDispatcher\TraceableEventDispatcher->addCalledListener(Array, 'DrupalCodeGener...', 0)
#2 /var/www/html/vendor/chi-teck/drupal-code-generator/src/Application.php(140): Drupal\tracer\EventDispatcher\TraceableEventDispatcher->dispatch(Object(DrupalCodeGenerator\Event\GeneratorInfoAlter))
#3 /var/www/html/vendor/chi-teck/drupal-code-generator/src/Application.php(105): DrupalCodeGenerator\Application->dispatch(Object(DrupalCodeGenerator\Event\GeneratorInfoAlter))
#4 /var/www/html/vendor/drush/drush/src/Commands/generate/ApplicationFactory.php(35): DrupalCodeGenerator\Application::create(Object(Drupal\Core\DependencyInjection\Container))
#5 /var/www/html/vendor/drush/drush/src/Commands/generate/GenerateCommands.php(60): Drush\Commands\generate\ApplicationFactory->create()
#6 [internal function]: Drush\Commands\generate\GenerateCommands->generate('', Array)
#7 /var/www/html/vendor/consolidation/annotated-command/src/CommandProcessor.php(276): call_user_func_array(Array, Array)
#8 /var/www/html/vendor/consolidation/annotated-command/src/CommandProcessor.php(212): Consolidation\AnnotatedCommand\CommandProcessor->runCommandCallback(Array, Object(Consolidation\AnnotatedCommand\CommandData))
#9 /var/www/html/vendor/consolidation/annotated-command/src/CommandProcessor.php(175): Consolidation\AnnotatedCommand\CommandProcessor->validateRunAndAlter(Array, Array, Object(Consolidation\AnnotatedCommand\CommandData))
#10 /var/www/html/vendor/consolidation/annotated-command/src/AnnotatedCommand.php(387): Consolidation\AnnotatedCommand\CommandProcessor->process(Object(Symfony\Component\Console\Output\ConsoleOutput), Array, Array, Object(Consolidation\AnnotatedCommand\CommandData))
#11 /var/www/html/vendor/symfony/console/Command/Command.php(326): Consolidation\AnnotatedCommand\AnnotatedCommand->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#12 /var/www/html/vendor/symfony/console/Application.php(1081): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#13 /var/www/html/vendor/symfony/console/Application.php(320): Symfony\Component\Console\Application->doRunCommand(Object(Consolidation\AnnotatedCommand\AnnotatedCommand), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#14 /var/www/html/vendor/symfony/console/Application.php(174): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#15 /var/www/html/vendor/drush/drush/src/Runtime/Runtime.php(110): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#16 /var/www/html/vendor/drush/drush/src/Runtime/Runtime.php(40): Drush\Runtime\Runtime->doRun(Array, Object(Symfony\Component\Console\Output\ConsoleOutput))
#17 /var/www/html/vendor/drush/drush/drush.php(139): Drush\Runtime\Runtime->run(Array)
#18 /var/www/html/vendor/drush/drush/drush(4): require('/var/www/html/v...')
#19 /var/www/html/vendor/bin/drush(119): include('/var/www/html/v...')
#20 {main}
TypeError: get_class(): Argument #1 ($object) must be of type object, string given in get_class() (line 187 of /var/www/html/web/modules/contrib/tracer/src/EventDispatcher/TraceableEventDispatcher.php).
[warning] Drush command terminated abnormally.

Steps to reproduce

Run drush gen command (entirely broken due to this error)

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

๐Ÿ› Bug report
Status

Closed: duplicate

Version

1.0

Component

Code

Created by

๐Ÿ‡ฉ๐Ÿ‡ชGermany Anybody Porta Westfalica

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024