When I run the entity mesh batch, I get the following error:

Drupal\Component\Plugin\Exception\PluginNotFoundException: The "media_type" entity type does not exist. en Drupal\Core\Entity\EntityTypeManager->getDefinition() (linea 142 de /var/vhosts/projects/codebases/anbal-balnearios-pro/codebase/web/core/lib/Drupal/Core/Entity/EntityTypeManager.php).

CommentFileSizeAuthor
#3 Screenshot_20250911_154157.png1.22 MBmxr576
Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

bryan toapanta created an issue. See original summary.

lpeidro’s picture

Status: Active » Postponed (maintainer needs more info)

Hello @Bryan, please could you give instructions to reproduce the error and the installed modules?

Thank you very much.

mxr576’s picture

Status: Postponed (maintainer needs more info) » Active
StatusFileSize
new1.22 MB

I have just installed the module, visited the batch page, selected Node entity type and run into the same error that the description contains.

What else I can help with clarifying the RC?

mxr576’s picture

Enabled the "media" module and the error has disappeared, so the RC could be a missing dependency on media or an invalid assumption that it is enabled on a site, always.

lpeidro’s picture

Hello mxr576:

Thank you very much for your input.

You're right—there is a strong dependency between the Entity Mesh and the Media module, so we need to carefully consider the best approach.

The easiest solution would be to declare the dependency in the module's .info.yml file. While this would force the Media module to be enabled in projects that may not use it, Drupal does recommend using the Media module to manage files instead of using file fields directly on nodes or other content entities.

For that reason, I'm not entirely sure if this is the best option.

lpeidro’s picture

Status: Active » Reviewed & tested by the community

Included media dependency in the module.

Thank you mxr576 for your support.

  • lpeidro committed cc70bfe3 on 1.x
    Issue #3522730: Set module media a dependency
    
lpeidro’s picture

Status: Reviewed & tested by the community » Fixed

Now that this issue is closed, please review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, please credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.