In src/Form/AutoTranslatorSettingsForm.php line 93

    $media_types = $this->entityTypeManager
      ->getStorage('media_type')
      ->loadMultiple();

This would seem to assume that the core 'media' module is installed, yet that module is not listed as a dependency.

Solution:

if($this->moduleHandler->moduleExists('media')) {
$media_types = $this->entityTypeManager
->getStorage('media_type')
->loadMultiple();
}

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

matslats created an issue. See original summary.

kalpanajaiswal made their first commit to this issue’s fork.

kalpanajaiswal’s picture

Both Patch and MR have been created to address the issue.

kalpanajaiswal’s picture

Status: Active » Needs review
bigbabert’s picture

Assigned: Unassigned » bigbabert
Status: Needs review » Needs work

Hi @kalpanajaiswal thank for the notice, i'll fix this weekend, not adding dependency but adding the control if media module is enabled before the relative translation logic.

  • mario.elias committed 28599067 on 1.0.x
    Issue #3454786 by bigbabert: The "media_type" entity type does not exist
    

bigbabert’s picture

bigbabert’s picture

Version: 1.0.8 » 1.0.9
Issue summary: View changes
Status: Needs work » Fixed
bigbabert’s picture

Status: Fixed » Closed (fixed)

bigbabert’s picture