PHP Fatal error after upgrade

Created on 19 September 2024, 3 months ago

Problem/Motivation

after upgrade lo last 3 version this error apear and site is out of service

Steps to reproduce

[19-Sep-2024 19:40:59 UTC] PHP Fatal error: Uncaught Error: Class "Drupal\serialization\Normalizer\PrimitiveDataNormalizer" not found in /home/xxx/public_html/xxx/web/modules/contrib/custom_field/src/Normalizer/StringLongNormalizer.php:11
Stack trace:
#0 /home/xxx/public_html/xxx/vendor/composer/ClassLoader.php(576): include()
#1 /home/xxx/public_html/xxx/vendor/composer/ClassLoader.php(427): Composer\Autoload\{closure}()
#2 [internal function]: Composer\Autoload\ClassLoader->loadClass()
#3 /home/xxx/public_html/xxx/vendor/symfony/dependency-injection/ContainerBuilder.php(363): class_exists()
#4 /home/xxx/public_html/xxx/vendor/symfony/dependency-injection/Compiler/RegisterAutoconfigureAttributesPass.php(32): Symfony\Component\DependencyInjection\ContainerBuilder->getReflectionClass()
#5 /home/xxx/public_html/xxx/vendor/symfony/dependency-injection/Compiler/Compiler.php(80): Symfony\Component\DependencyInjection\Compiler\RegisterAutoconfigureAttributesPass->process()
#6 /home/xxx/public_html/xxx/vendor/symfony/dependency-injection/ContainerBuilder.php(767): Symfony\Component\DependencyInjection\Compiler\Compiler->compile()
#7 /home/xxx/public_html/xxx/web/core/lib/Drupal/Core/DrupalKernel.php(1447): Symfony\Component\DependencyInjection\ContainerBuilder->compile()
#8 /home/xxx/public_html/xxx/web/core/lib/Drupal/Core/DrupalKernel.php(971): Drupal\Core\DrupalKernel->compileContainer()
#9 /home/xxx/public_html/xxx/web/core/lib/Drupal/Core/DrupalKernel.php(515): Drupal\Core\DrupalKernel->initializeContainer()
#10 /home/xxx/public_html/xxx/web/core/includes/utility.inc(34): Drupal\Core\DrupalKernel->boot()
#11 /home/xxx/public_html/xxx/vendor/drush/drush/src/Commands/core/CacheRebuildCommands.php(70): drupal_rebuild()
#12 [internal function]: Drush\Commands\core\CacheRebuildCommands->rebuild()
#13 /home/xxx/public_html/xxx/vendor/consolidation/annotated-command/src/CommandProcessor.php(276): call_user_func_array()
#14 /home/xxx/public_html/xxx/vendor/consolidation/annotated-command/src/CommandProcessor.php(212): Consolidation\AnnotatedCommand\CommandProcessor->runCommandCallback()
#15 /home/xxx/public_html/xxx/vendor/consolidation/annotated-command/src/CommandProcessor.php(175): Consolidation\AnnotatedCommand\CommandProcessor->validateRunAndAlter()
#16 /home/xxx/public_html/xxx/vendor/consolidation/annotated-command/src/AnnotatedCommand.php(387): Consolidation\AnnotatedCommand\CommandProcessor->process()
#17 /home/xxx/public_html/xxx/vendor/symfony/console/Command/Command.php(326): Consolidation\AnnotatedCommand\AnnotatedCommand->execute()
#18 /home/xxx/public_html/xxx/vendor/symfony/console/Application.php(1096): Symfony\Component\Console\Command\Command->run()
#19 /home/xxx/public_html/xxx/vendor/symfony/console/Application.php(324): Symfony\Component\Console\Application->doRunCommand()
#20 /home/xxx/public_html/xxx/vendor/symfony/console/Application.php(175): Symfony\Component\Console\Application->doRun()
#21 /home/xxx/public_html/xxx/vendor/drush/drush/src/Runtime/Runtime.php(110): Symfony\Component\Console\Application->run()
#22 /home/xxx/public_html/xxx/vendor/drush/drush/src/Runtime/Runtime.php(40): Drush\Runtime\Runtime->doRun()
#23 /home/xxx/public_html/xxx/vendor/drush/drush/drush.php(139): Drush\Runtime\Runtime->run()
#24 /home/xxx/public_html/xxx/vendor/drush/drush/drush(4): require('/home/xxx/...')
#25 {main}
thrown in /home/xxx/public_html/xxx/web/modules/contrib/custom_field/src/Normalizer/StringLongNormalizer.php on line 11

Proposed resolution

I downgrade to previ version and all work

Remaining tasks

User interface changes

API changes

Data model changes

Gracias

πŸ› Bug report
Status

Fixed

Version

3.0

Component

Code

Created by

πŸ‡ͺπŸ‡ΈSpain ady1503

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

Comments & Activities

  • Issue created by @ady1503
  • Status changed to Postponed: needs info 3 months ago
  • πŸ‡ΊπŸ‡ΈUnited States apmsooner

    I can't reproduce this. The class definitely exists for me and I'm on Drupal 10.3.5.

    1. What version did you update from?
    2. What version of Drupal core are you on?
    3. Did you try clearing cache?
  • Status changed to Active 3 months ago
  • πŸ‡ΊπŸ‡ΈUnited States apmsooner

    Oh! I know what it is. I set the autoconfigure flag on services.yml and didn't think that one through. I'll push up an immediate new release. Thanks

  • πŸ‡ΊπŸ‡ΈUnited States apmsooner

    New release to fix the issue.

  • Status changed to Fixed 3 months ago
  • πŸ‡ΊπŸ‡ΈUnited States apmsooner
Production build 0.71.5 2024