Error: Class "Faker\Factory" not found

Created on 12 January 2023, almost 2 years ago
Updated 24 July 2024, 4 months ago

Error: Class "Faker\Factory" not found in gdpr/modules/anonymizer/src/Service/FakerService.php on line 25 #0 docroot/core/lib/Drupal/Component/DependencyInjection/Container.php(262): Drupal\anonymizer\Service\FakerService->__construct()

ddev drush gdpr-sql-dump

Error: Class "Faker\Factory" not found in /var/www/html/docroot/modules/contrib/gdpr/modules/anonymizer/src/Service/FakerService.php on line 25 #0 /var/www/html/docroot/core/lib/Drupal/Component/DependencyInjection/Container.php(262): Drupal\anonymizer\Service\FakerService->__construct()
#1 /var/www/html/docroot/core/lib/Drupal/Component/DependencyInjection/Container.php(176): Drupal\Component\DependencyInjection\Container->createService(Array, 'anonymizer.fake...')
#2 /var/www/html/docroot/modules/contrib/gdpr/modules/anonymizer/src/Anonymizer/AnonymizerBase.php(52): Drupal\Component\DependencyInjection\Container->get('anonymizer.fake...')
#3 /var/www/html/docroot/core/lib/Drupal/Core/Plugin/Factory/ContainerFactory.php(21): Drupal\anonymizer\Anonymizer\AnonymizerBase::create(Object(Drupal\Core\DependencyInjection\Container), Array, 'text_anonymizer', Array)
#4 /var/www/html/docroot/core/lib/Drupal/Component/Plugin/PluginManagerBase.php(83): Drupal\Core\Plugin\Factory\ContainerFactory->createInstance('text_anonymizer', Array)
#5 /var/www/html/docroot/modules/contrib/gdpr/modules/anonymizer/src/Anonymizer/AnonymizerFactory.php(56): Drupal\Component\Plugin\PluginManagerBase->createInstance('text_anonymizer')
#6 /var/www/html/docroot/modules/contrib/gdpr/modules/gdpr_dump/src/Service/GdprSqlDump.php(279): Drupal\anonymizer\Anonymizer\AnonymizerFactory->get('text_anonymizer')
#7 /var/www/html/docroot/modules/contrib/gdpr/modules/gdpr_dump/src/Service/GdprSqlDump.php(314): Drupal\gdpr_dump\Service\GdprSqlDump->sanitizeData()
#8 /var/www/html/docroot/modules/contrib/gdpr/modules/gdpr_dump/src/Service/GdprSqlDump.php(118): Drupal\gdpr_dump\Service\GdprSqlDump->prepare()
#9 /var/www/html/docroot/modules/contrib/gdpr/modules/gdpr_dump/src/Commands/GdprDumpCommands.php(97): Drupal\gdpr_dump\Service\GdprSqlDump->dump(Array)
#10 [internal function]: Drupal\gdpr_dump\Commands\GdprDumpCommands->dump(Array)
#11 /var/www/html/vendor/consolidation/annotated-command/src/CommandProcessor.php(257): call_user_func_array(Array, Array)
#12 /var/www/html/vendor/consolidation/annotated-command/src/CommandProcessor.php(212): Consolidation\AnnotatedCommand\CommandProcessor->runCommandCallback(Array, Object(Consolidation\AnnotatedCommand\CommandData))
#13 /var/www/html/vendor/consolidation/annotated-command/src/CommandProcessor.php(176): Consolidation\AnnotatedCommand\CommandProcessor->validateRunAndAlter(Array, Array, Object(Consolidation\AnnotatedCommand\CommandData))
#14 /var/www/html/vendor/consolidation/annotated-command/src/AnnotatedCommand.php(350): Consolidation\AnnotatedCommand\CommandProcessor->process(Object(Symfony\Component\Console\Output\ConsoleOutput), Array, Array, Object(Consolidation\AnnotatedCommand\CommandData))
#15 /var/www/html/vendor/symfony/console/Command/Command.php(255): Consolidation\AnnotatedCommand\AnnotatedCommand->execute(Object(Drush\Symfony\DrushArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#16 /var/www/html/vendor/symfony/console/Application.php(1027): Symfony\Component\Console\Command\Command->run(Object(Drush\Symfony\DrushArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#17 /var/www/html/vendor/symfony/console/Application.php(273): Symfony\Component\Console\Application->doRunCommand(Object(Consolidation\AnnotatedCommand\AnnotatedCommand), Object(Drush\Symfony\DrushArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#18 /var/www/html/vendor/symfony/console/Application.php(149): Symfony\Component\Console\Application->doRun(Object(Drush\Symfony\DrushArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#19 /var/www/html/vendor/drush/drush/src/Runtime/Runtime.php(118): Symfony\Component\Console\Application->run(Object(Drush\Symfony\DrushArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#20 /var/www/html/vendor/drush/drush/src/Runtime/Runtime.php(48): Drush\Runtime\Runtime->doRun(Array, Object(Symfony\Component\Console\Output\ConsoleOutput))
#21 /var/www/html/vendor/drush/drush/drush.php(72): Drush\Runtime\Runtime->run(Array)
#22 /var/www/html/vendor/drush/drush/drush(4): require('/var/www/html/v...')
#23 /var/www/html/vendor/bin/drush(120): include('/var/www/html/v...')
#24 {main}
Error: Class "Faker\Factory" not found in Drupal\anonymizer\Service\FakerService->__construct() (line 25 of /var/www/html/docroot/modules/contrib/gdpr/modules/anonymizer/src/Service/FakerService.php).
 [warning] Drush command terminated abnormally.
🐛 Bug report
Status

Fixed

Version

3.0

Component

Code

Created by

🇮🇳India sanoopuio

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

Merge Requests

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.71.5 2024