Symfony\Component\DependencyInjection\Exception\ServiceNotFoundException: You have requested a non-existent service "entity.manager". in Drupal\Component\DependencyInjection\Container->get() (line 156 of /home/jasonmcd/public_html/core/lib/Drupal/Component/DependencyInjection/Container.php).

This seems to be an error with the EXIF module in Drupal 9.2. It's the exif 8.x-2.x-dev version. EXIF has some sort of a patch, but I have no idea how to apply that patch. I tried in Composer and there it asks for what file to patch, and I have no idea where the patch goes.

I just installed Composer and this is the first 24 hours of using it.

Thank you!

Comments

wombatbuddy’s picture

One patch is here: https://www.drupal.org/project/exif/issues/3172682 Here is the tutorial about applying patches via composer: "Apply Drupal 8 Patch by Composer without update Drupal Core". Also, you may try to apply the patch manually.

jasonmcd’s picture

Thanks! I was able to patch the EXIF module. But now when I try to pull metadata from an image, I get this error:

Error: Call to undefined function Drupal\exif\exec() in Drupal\exif\SimpleExifToolFacade->runTool() (line 174 of modules/contrib/exif/src/SimpleExifToolFacade.php).
jasonmcd’s picture

; This directive allows you to disable certain functions for security reasons.
; It receives a comma-delimited list of function names.
; http://php.net/disable-functions
disable-functions =

It doesn't seem that that exec() is in php.ini. Could it be a user-defined function?

Thanks!

jasonmcd’s picture

Okay my provider gave me the correct file to edit php.ini. I didn't realize there were so many possibilities for editing that code.