module breaks site - php fatal error - PrimitiveDataNormalizer not found

Created on 25 September 2017, about 7 years ago
Updated 28 June 2024, 6 months ago

PHP Fatal error: Class 'Drupal\serialization\Normalizer\PrimitiveDataNormalizer' not found in /home/domain.com/docroot/modules/contrib/rest_absolute_urls/src/Normalizer/StringDataNormalizer.php on line 11
PHP Stack trace:
PHP 1. {main}() /opt/drush-8.x/vendor/drush/drush/drush.php:0
PHP 2. drush_main() /opt/drush-8.x/vendor/drush/drush/drush.php:12
PHP 3. Drush\Boot\DrupalBoot8->bootstrap_and_dispatch() /opt/drush-8.x/vendor/drush/drush/includes/preflight.inc:66
PHP 4. drush_dispatch() /opt/drush-8.x/vendor/drush/drush/lib/Drush/Boot/BaseBoot.php:67
PHP 5. drush_command() /opt/drush-8.x/vendor/drush/drush/includes/command.inc:199
PHP 6. _drush_invoke_hooks() /opt/drush-8.x/vendor/drush/drush/includes/command.inc:231
PHP 7. drush_cache_rebuild() /opt/drush-8.x/vendor/drush/drush/includes/command.inc:422
PHP 8. drupal_rebuild() /opt/drush-8.x/vendor/drush/drush/commands/core/cache.drush.inc:300
PHP 9. drupal_flush_all_caches() /home/domain.com/docroot/core/includes/utility.inc:51
PHP 10. Drupal\Core\ProxyClass\Routing\RouteBuilder->rebuild() /home/domain.com/docroot/core/includes/common.inc:1141
PHP 11. Drupal\Core\Routing\RouteBuilder->rebuild() /home/domain.com/docroot/core/lib/Drupal/Core/ProxyClass/Routing/RouteBuilder.php:83
PHP 12. call_user_func:{/home/domain.com/docroot/core/lib/Drupal/Core/Routing/RouteBuilder.php:146}() /home/domain.com/docroot/core/lib/Drupal/Core/Routing/RouteBuilder.php:146
PHP 13. Drupal\views\EventSubscriber\RouteSubscriber->routes() /home/domain.com/docroot/core/lib/Drupal/Core/Routing/RouteBuilder.php:146
PHP 14. Drupal\rest\Plugin\views\display\RestExport->collectRoutes() /home/domain.com/docroot/core/modules/views/src/EventSubscriber/RouteSubscriber.php:120
PHP 15. Drupal\rest\Plugin\views\display\RestExport->collectRoutes() /home/domain.com/docroot/core/modules/rest/src/Plugin/views/display/RestExport.php:323
PHP 16. Drupal\rest\Plugin\views\display\RestExport->getRoute() /home/domain.com/docroot/core/modules/views/src/Plugin/views/display/PathPluginBase.php:220
PHP 17. Drupal\views\ViewExecutable->getTitle() /home/domain.com/docroot/core/modules/views/src/Plugin/views/display/PathPluginBase.php:132
PHP 18. Drupal\views\ViewExecutable->initStyle() /home/domain.com/docroot/core/modules/views/src/ViewExecutable.php:1829
PHP 19. Drupal\rest\Plugin\views\display\RestExport->getPlugin() /home/domain.com/docroot/core/modules/views/src/ViewExecutable.php:872
PHP 20. Drupal\views\Plugin\ViewsPluginManager->createInstance() /home/domain.com/docroot/core/modules/views/src/Plugin/views/display/DisplayPluginBase.php:810
PHP 21. Drupal\Core\Plugin\Factory\ContainerFactory->createInstance() /home/domain.com/docroot/core/lib/Drupal/Component/Plugin/PluginManagerBase.php:84
PHP 22. Drupal\rest\Plugin\views\style\Serializer::create() /home/domain.com/docroot/core/lib/Drupal/Core/Plugin/Factory/ContainerFactory.php:21
PHP 23. Drupal\Core\DependencyInjection\Container->get() /home/domain.com/docroot/core/modules/rest/src/Plugin/views/style/Serializer.php:65
PHP 24. Drupal\Core\DependencyInjection\Container->createService() /home/domain.com/docroot/core/lib/Drupal/Component/DependencyInjection/Container.php:177
PHP 25. Drupal\Core\DependencyInjection\Container->resolveServicesAndParameters() /home/domain.com/docroot/core/lib/Drupal/Component/DependencyInjection/Container.php:236
PHP 26. Drupal\Core\DependencyInjection\Container->resolveServicesAndParameters() /home/domain.com/docroot/core/lib/Drupal/Component/DependencyInjection/Container.php:522
PHP 27. Drupal\Core\DependencyInjection\Container->get() /home/domain.com/docroot/core/lib/Drupal/Component/DependencyInjection/Container.php:494
PHP 28. Drupal\Core\DependencyInjection\Container->createService() /home/domain.com/docroot/core/lib/Drupal/Component/DependencyInjection/Container.php:177
PHP 29. spl_autoload_call() /home/domain.com/docroot/core/lib/Drupal/Component/DependencyInjection/Container.php:268
PHP 30. Composer\Autoload\ClassLoader->loadClass() /home/domain.com/docroot/core/lib/Drupal/Component/DependencyInjection/Container.php:268
PHP 31. Composer\Autoload\includeFile() /opt/drush-8.x/vendor/composer/ClassLoader.php:301
PHP 32. include() /opt/drush-8.x/vendor/composer/ClassLoader.php:412
Drush command terminated abnormally due to an unrecoverable error. [error]
Error: Class 'Drupal\serialization\Normalizer\PrimitiveDataNormalizer' not found in
/home/domain.com/docroot/modules/contrib/rest_absolute_urls/src/Normalizer/StringDataNormalizer.php, line 11

🐛 Bug report
Status

Closed: cannot reproduce

Component

Code

Created by

🇬🇷Greece giorgosk Chios, Greece 🇬🇷

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