Any chance to fix it?
I'm trying to install/enable commerce / commerce product 8.x-2.40 on Drupal 9.5.10 and i'm getting WSOD
Drupal\Core\Entity\EntityStorageException: Missing bundle for entity type commerce_product_variation in Drupal\Core\Entity\ContentEntityStorageBase->doCreate() (line 125 of core/lib/Drupal/Core/Entity/ContentEntityStorageBase.php
When this patch is going to be commited to Drupal 10.x?
I don't want to apply this manually after each Drupal 10 update...
I'm changing priority to critical as this bug makes WSOD!
I'm not changing status to revieved and tested as i'm not a developer although this patch fixed WSOD.
Please release new version
Hello,
is there any chance to release D10 version?
That patch worked for me too.
Hello, is there any chance to commit/merge this?
I'm still getting this. It happens on any project.
drush upgrade_status:analyze google_cse
[notice] Processing /var/www/html/drupal8/modules/contrib/google_cse.
[warning] Undefined array key 403 Lexer.php:323
[error] TypeError: PhpParser\Lexer::getNextToken(): Return value must be of type int, null returned in PhpParser\Lexer->getNextToken() (line 364 of /var/www/html/drupal8/vendor/nikic/php-parser/lib/PhpParser/Lexer.php) #0 /var/www/html/drupal8/vendor/nikic/php-parser/lib/PhpParser/ParserAbstract.php(209): PhpParser\Lexer->getNextToken('&', Array, Array)
#1 /var/www/html/drupal8/vendor/nikic/php-parser/lib/PhpParser/ParserAbstract.php(159): PhpParser\ParserAbstract->doParse()
#2 /var/www/html/drupal8/vendor/nikic/php-parser/lib/PhpParser/Parser/Multiple.php(51): PhpParser\ParserAbstract->parse('<?php\n\n/**\n * @...', Object(PhpParser\ErrorHandler\Throwing))
#3 /var/www/html/drupal8/vendor/nikic/php-parser/lib/PhpParser/Parser/Multiple.php(32): PhpParser\Parser\Multiple->tryParse(Object(PhpParser\Parser\Php7), Object(PhpParser\ErrorHandler\Throwing), '<?php\n\n/**\n * @...')
#4 /var/www/html/drupal8/modules/contrib/upgrade_status/src/ThemeFunctionDeprecationAnalyzer.php(114): PhpParser\Parser\Multiple->parse('<?php\n\n/**\n * @...')
#5 /var/www/html/drupal8/modules/contrib/upgrade_status/src/ThemeFunctionDeprecationAnalyzer.php(58): Drupal\upgrade_status\ThemeFunctionDeprecationAnalyzer->analyzeFunction('google_cse_them...', Object(Drupal\Core\Extension\Extension))
#6 /var/www/html/drupal8/modules/contrib/upgrade_status/src/DeprecationAnalyzer.php(420): Drupal\upgrade_status\ThemeFunctionDeprecationAnalyzer->analyze(Object(Drupal\Core\Extension\Extension))
#7 /var/www/html/drupal8/modules/contrib/upgrade_status/src/Commands/UpgradeStatusCommands.php(264): Drupal\upgrade_status\DeprecationAnalyzer->analyze(Object(Drupal\Core\Extension\Extension), Array)
#8 /var/www/html/drupal8/modules/contrib/upgrade_status/src/Commands/UpgradeStatusCommands.php(147): Drupal\upgrade_status\Commands\UpgradeStatusCommands->doAnalyze(Array, Array)
#9 [internal function]: Drupal\upgrade_status\Commands\UpgradeStatusCommands->analyze(Array, Array)
#10 /var/www/html/drupal8/vendor/consolidation/annotated-command/src/CommandProcessor.php(257): call_user_func_array(Array, Array)
#11 /var/www/html/drupal8/vendor/consolidation/annotated-command/src/CommandProcessor.php(212): Consolidation\AnnotatedCommand\CommandProcessor->runCommandCallback(Array, Object(Consolidation\AnnotatedCommand\CommandData))
#12 /var/www/html/drupal8/vendor/consolidation/annotated-command/src/CommandProcessor.php(176): Consolidation\AnnotatedCommand\CommandProcessor->validateRunAndAlter(Array, Array, Object(Consolidation\AnnotatedCommand\CommandData))
#13 /var/www/html/drupal8/vendor/consolidation/annotated-command/src/AnnotatedCommand.php(311): Consolidation\AnnotatedCommand\CommandProcessor->process(Object(Symfony\Component\Console\Output\ConsoleOutput), Array, Array, Object(Consolidation\AnnotatedCommand\CommandData))
#14 /var/www/html/drupal8/vendor/symfony/console/Command/Command.php(255): Consolidation\AnnotatedCommand\AnnotatedCommand->execute(Object(Drush\Symfony\DrushArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#15 /var/www/html/drupal8/vendor/symfony/console/Application.php(1039): Symfony\Component\Console\Command\Command->run(Object(Drush\Symfony\DrushArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#16 /var/www/html/drupal8/vendor/symfony/console/Application.php(275): Symfony\Component\Console\Application->doRunCommand(Object(Consolidation\AnnotatedCommand\AnnotatedCommand), Object(Drush\Symfony\DrushArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#17 /var/www/html/drupal8/vendor/symfony/console/Application.php(149): Symfony\Component\Console\Application->doRun(Object(Drush\Symfony\DrushArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#18 /var/www/html/drupal8/vendor/drush/drush/src/Runtime/Runtime.php(118): Symfony\Component\Console\Application->run(Object(Drush\Symfony\DrushArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#19 /var/www/html/drupal8/vendor/drush/drush/src/Runtime/Runtime.php(48): Drush\Runtime\Runtime->doRun(Array, Object(Symfony\Component\Console\Output\ConsoleOutput))
#20 /var/www/html/drupal8/vendor/drush/drush/drush.php(72): Drush\Runtime\Runtime->run(Array)
#21 /var/www/html/drupal8/vendor/drush/drush/drush(4): require('/var/www/html/d...')
#22 /var/www/html/drupal8/vendor/bin/drush(120): include('/var/www/html/d...')
#23 {main}.
TypeError: PhpParser\Lexer::getNextToken(): Return value must be of type int, null returned in /var/www/html/drupal8/vendor/nikic/php-parser/lib/PhpParser/Lexer.php on line 364 #0 /var/www/html/drupal8/vendor/nikic/php-parser/lib/PhpParser/ParserAbstract.php(209): PhpParser\Lexer->getNextToken('&', Array, Array)
#1 /var/www/html/drupal8/vendor/nikic/php-parser/lib/PhpParser/ParserAbstract.php(159): PhpParser\ParserAbstract->doParse()
#2 /var/www/html/drupal8/vendor/nikic/php-parser/lib/PhpParser/Parser/Multiple.php(51): PhpParser\ParserAbstract->parse('<?php\n\n/**\n * @...', Object(PhpParser\ErrorHandler\Throwing))
#3 /var/www/html/drupal8/vendor/nikic/php-parser/lib/PhpParser/Parser/Multiple.php(32): PhpParser\Parser\Multiple->tryParse(Object(PhpParser\Parser\Php7), Object(PhpParser\ErrorHandler\Throwing), '<?php\n\n/**\n * @...')
#4 /var/www/html/drupal8/modules/contrib/upgrade_status/src/ThemeFunctionDeprecationAnalyzer.php(114): PhpParser\Parser\Multiple->parse('<?php\n\n/**\n * @...')
#5 /var/www/html/drupal8/modules/contrib/upgrade_status/src/ThemeFunctionDeprecationAnalyzer.php(58): Drupal\upgrade_status\ThemeFunctionDeprecationAnalyzer->analyzeFunction('google_cse_them...', Object(Drupal\Core\Extension\Extension))
#6 /var/www/html/drupal8/modules/contrib/upgrade_status/src/DeprecationAnalyzer.php(420): Drupal\upgrade_status\ThemeFunctionDeprecationAnalyzer->analyze(Object(Drupal\Core\Extension\Extension))
#7 /var/www/html/drupal8/modules/contrib/upgrade_status/src/Commands/UpgradeStatusCommands.php(264): Drupal\upgrade_status\DeprecationAnalyzer->analyze(Object(Drupal\Core\Extension\Extension), Array)
#8 /var/www/html/drupal8/modules/contrib/upgrade_status/src/Commands/UpgradeStatusCommands.php(147): Drupal\upgrade_status\Commands\UpgradeStatusCommands->doAnalyze(Array, Array)
#9 [internal function]: Drupal\upgrade_status\Commands\UpgradeStatusCommands->analyze(Array, Array)
#10 /var/www/html/drupal8/vendor/consolidation/annotated-command/src/CommandProcessor.php(257): call_user_func_array(Array, Array)
#11 /var/www/html/drupal8/vendor/consolidation/annotated-command/src/CommandProcessor.php(212): Consolidation\AnnotatedCommand\CommandProcessor->runCommandCallback(Array, Object(Consolidation\AnnotatedCommand\CommandData))
#12 /var/www/html/drupal8/vendor/consolidation/annotated-command/src/CommandProcessor.php(176): Consolidation\AnnotatedCommand\CommandProcessor->validateRunAndAlter(Array, Array, Object(Consolidation\AnnotatedCommand\CommandData))
#13 /var/www/html/drupal8/vendor/consolidation/annotated-command/src/AnnotatedCommand.php(311): Consolidation\AnnotatedCommand\CommandProcessor->process(Object(Symfony\Component\Console\Output\ConsoleOutput), Array, Array, Object(Consolidation\AnnotatedCommand\CommandData))
#14 /var/www/html/drupal8/vendor/symfony/console/Command/Command.php(255): Consolidation\AnnotatedCommand\AnnotatedCommand->execute(Object(Drush\Symfony\DrushArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#15 /var/www/html/drupal8/vendor/symfony/console/Application.php(1039): Symfony\Component\Console\Command\Command->run(Object(Drush\Symfony\DrushArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#16 /var/www/html/drupal8/vendor/symfony/console/Application.php(275): Symfony\Component\Console\Application->doRunCommand(Object(Consolidation\AnnotatedCommand\AnnotatedCommand), Object(Drush\Symfony\DrushArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#17 /var/www/html/drupal8/vendor/symfony/console/Application.php(149): Symfony\Component\Console\Application->doRun(Object(Drush\Symfony\DrushArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#18 /var/www/html/drupal8/vendor/drush/drush/src/Runtime/Runtime.php(118): Symfony\Component\Console\Application->run(Object(Drush\Symfony\DrushArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#19 /var/www/html/drupal8/vendor/drush/drush/src/Runtime/Runtime.php(48): Drush\Runtime\Runtime->doRun(Array, Object(Symfony\Component\Console\Output\ConsoleOutput))
#20 /var/www/html/drupal8/vendor/drush/drush/drush.php(72): Drush\Runtime\Runtime->run(Array)
#21 /var/www/html/drupal8/vendor/drush/drush/drush(4): require('/var/www/html/d...')
#22 /var/www/html/drupal8/vendor/bin/drush(120): include('/var/www/html/d...')
#23 {main}
TypeError: PhpParser\Lexer::getNextToken(): Return value must be of type int, null returned in PhpParser\Lexer->getNextToken() (line 364 of /var/www/html/drupal8/vendor/nikic/php-parser/lib/PhpParser/Lexer.php).
[warning] Drush command terminated abnormally.
Now i'm running: upgrade_status 4.0.0, Drupal 9.5.11 on PHP 8.1.24
When is this patch going to be commited? This bug is crashing websites updated from Drupal 9.5.7 to 9.5.10!
Priority should be higher than Normal...
Oh, it looks like this is a duplicate of issue 3362713 🐛 LanguageManager does not check against altered language_switch_links Needs review and proposed patch did fix the issue for me.