Bug: Core Taxonomy module needs to be declared as a dependency for Mercury Editor

Created on 9 June 2024, 6 months ago
Updated 5 July 2024, 5 months ago

Problem/Motivation

After installing and configuring Paragraphs and Layout Paragraphs to test the layout functionality and creating paragraphss for layout purposes, tried to enable mercury_editor and got the following stackdump error:

 [warning] Undefined array key "taxonomy_term" mercury_editor.module:618
 [error]  Error: Call to a member function setFormClass() on null in mercury_editor_entity_type_build() (line 618 of /var/www/html/web/modules/contrib/mercury_editor/mercury_editor.module) #0 /var/www/html/web/core/lib/Drupal/Core/Entity/EntityTypeManager.php(118): mercury_editor_entity_type_build(Array)
#1 /var/www/html/web/core/lib/Drupal/Core/Extension/ModuleHandler.php(388): Drupal\Core\Entity\EntityTypeManager->Drupal\Core\Entity\{closure}(Object(Closure), 'mercury_editor')
#2 /var/www/html/web/core/lib/Drupal/Core/Entity/EntityTypeManager.php(119): Drupal\Core\Extension\ModuleHandler->invokeAllWith('entity_type_bui...', Object(Closure))
#3 /var/www/html/web/core/lib/Drupal/Core/Plugin/DefaultPluginManager.php(205): Drupal\Core\Entity\EntityTypeManager->findDefinitions()
#4 /var/www/html/web/core/lib/Drupal/Core/Extension/ModuleInstaller.php(296): Drupal\Core\Plugin\DefaultPluginManager->getDefinitions()
#5 /var/www/html/web/core/lib/Drupal/Core/ProxyClass/Extension/ModuleInstaller.php(83): Drupal\Core\Extension\ModuleInstaller->install(Array, true)
#6 /var/www/html/vendor/drush/drush/src/Commands/pm/PmCommands.php(102): Drupal\Core\ProxyClass\Extension\ModuleInstaller->install(Array, true)
#7 [internal function]: Drush\Commands\pm\PmCommands->install(Array, Array)
#8 /var/www/html/vendor/consolidation/annotated-command/src/CommandProcessor.php(276): call_user_func_array(Array, Array)
#9 /var/www/html/vendor/consolidation/annotated-command/src/CommandProcessor.php(212): Consolidation\AnnotatedCommand\CommandProcessor->runCommandCallback(Array, Object(Consolidation\AnnotatedCommand\CommandData))
#10 /var/www/html/vendor/consolidation/annotated-command/src/CommandProcessor.php(176): Consolidation\AnnotatedCommand\CommandProcessor->validateRunAndAlter(Array, Array, Object(Consolidation\AnnotatedCommand\CommandData))
#11 /var/www/html/vendor/consolidation/annotated-command/src/AnnotatedCommand.php(391): Consolidation\AnnotatedCommand\CommandProcessor->process(Object(Symfony\Component\Console\Output\ConsoleOutput), Array, Array, Object(Consolidation\AnnotatedCommand\CommandData))
#12 /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))
#13 /var/www/html/vendor/symfony/console/Application.php(1096): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#14 /var/www/html/vendor/symfony/console/Application.php(324): Symfony\Component\Console\Application->doRunCommand(Object(Consolidation\AnnotatedCommand\AnnotatedCommand), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#15 /var/www/html/vendor/symfony/console/Application.php(175): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#16 /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))
#17 /var/www/html/vendor/drush/drush/src/Runtime/Runtime.php(40): Drush\Runtime\Runtime->doRun(Array, Object(Symfony\Component\Console\Output\ConsoleOutput))
#18 /var/www/html/vendor/drush/drush/drush.php(139): Drush\Runtime\Runtime->run(Array)
#19 /var/www/html/vendor/drush/drush/drush(4): require('/var/www/html/v...')
#20 /var/www/html/vendor/bin/drush(119): include('/var/www/html/v...')
#21 {main}. 

Steps to reproduce

1. Install Drupal 10.2 using the minimal profile
2. Install Paragraphs and Layout Paragraphs, and enable both
3. Create Paragraph entities to work with Layout Paragraphs, and configure a content entity to use both, along with necessary configuraiton for Layout Paragraphs Builder on the content entity display
4. Enable mercury editor using drush

Proposed resolution

Add core taxonomy module as a dependency to the module's .info.yml file.

πŸ› Bug report
Status

Fixed

Version

2.1

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States lhridley

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024