Error: Call to a member function getStorage() on null in Drupal\bibcite_entity\Normalizer\ContributorNormalizer->denormalize() (line 26 of bibcite/modules/bibcite_entity/src/Normalizer/ContributorNormalizer.php)

Looks, this is the reason: #2977107: Use more specific entity.manager services in module .services.yml files

Comments

antongp created an issue. See original summary.

toki’s picture

After importing Bibtex file, I had the same issue a few minutes ago with two log messages (using D8.7 and Bibcite 8.1-alpha8) :

Notice: Undefined property: Drupal\bibcite_entity\Normalizer\ContributorNormalizer::$entityManager in Drupal\bibcite_entity\Normalizer\ContributorNormalizer->denormalize()

Error: Call to a member function getStorage() on null in Drupal\bibcite_entity\Normalizer\ContributorNormalizer->denormalize()

  • adci_contributor committed f2bea79 on 8.x-1.x
    Issue #3053035 by antongp: Import and Populate Reference fail with error...

antongp’s picture

Status: Active » Needs review

We pushed a hotfix, should be compatible with both Drupal 8.6 and 8.7. If no new issue appears on Drupal 8.7, we'll release alpha9 tomorrow.

toki’s picture

Many thanks for this quick fix, I have tried two different Bibtex imports and everything went well, no more errors.

  • antongp committed 21d52d2 on 8.x-1.x
    Issue #3053035 by antongp: Import and Populate Reference fail with error...
antongp’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

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