This happens when trying to install/uninstall any module.

Comments

slydevil created an issue. See original summary.

slydevil’s picture

Issue summary: View changes
slydevil’s picture

Issue summary: View changes
slydevil’s picture

Title: Fatal error » Fatal error: Class 'Drupal\serialization\Normalizer\NormalizerBase' not found in /htdocs/modules/contrib/metatag/src/Normalizer/FieldItemNormalizer.php on line 10
Issue summary: View changes
slydevil’s picture

Looks like the serialization module has not been added as a dependency. Patch pending.

slydevil’s picture

Priority: Normal » Critical
StatusFileSize
new326 bytes
slydevil’s picture

Status: Active » Needs review
damienmckenna’s picture

Thank you for that. However, we're already working on this problem in #2899234: Missing dependency (drupal:serialization) / Fatal error: Class NormalizerBase not found.

hanoii’s picture

Just to double check, can you confirm you are also using the webprofiler module that comes from devel and have it enabled?

slydevil’s picture

Yes, I am. That modules causes more problems than it is worth.

marblegravy’s picture

I just wanted to confirm that this issue occurs when trying to enable Metatag when Web Profiler module is enabled.

Disabling the Web Profiler module will allow you to install and enable Metatag without issue.

leewbutler’s picture

To add to what marblegravy mentioned above - I encountered this issue as well when trying to enable the WebProfiler module after having already enabled + configured + saved data via the Metatag module (so disabling Metatag to use WebProfiler is not an option lest I lose that metatag data).

landsman’s picture

I have same problem with webprofiler and metatag

akempler’s picture

Same issue here - Metatag was already installed and configured, received error in #4 when enabling webprofiler. Drupal 8.5beta.

dunot’s picture

same here with drupal-8.6.dev & metatag 8.x-1.3+1-dev while Web Profiler is enabled – can't even load update.php

damienmckenna’s picture

@dunot: Please update your Metatag module to 8.x-1.5.

kartagis’s picture

I'm occassionally getting this error on /devel/php. The error goes away when I do `drush dre metatag`. I'm using metatag:1.8 and I don't have webprofiler installed.