When setting exif to use the external exiftool program everything seems alright until it needs to load the drop-down with available tag names.
In the log if find
PHP message: Error: Class 'Drupal\exif\SimpleExifToolFacade' not found
While The file "modules/exif/src/SimpleExiftoolFacade.php" does exist.

As we need the IPTC Keywords tag I don't think we really need the exiftool backend. If there is a workaround please let me know

Comments

karel010 created an issue. See original summary.

tanc’s picture

We're also seeing this issue but I'm unable to replicate it locally which makes debugging it really hard. I'm only seeing it on a server, running PHP7.0 (I'm also running PHP7.0 locally). In this case there is no dropdown on our node form. Switching to using PHP extension instead of exiftool bypasses the class loading issue.

karel010’s picture

@tanc
I see I made an error in the last paragraph. I of course meant that we really need the exiftool or a way to have the PHP extension use IPTC.

We recently set up an environment local d8 development so I will see if we have the same problem.
Do you have things installed with composer or without?

tanc’s picture

With composer. Its an extremely frustrating error as I can't replicate it locally to debug. I've tried all sorts of things, regenerating the autoloader, using longhand syntax to include the classes, use statements. Nothing seems to get the class recognised.

tanc’s picture

The only progress I've made is by including the class file directly in the getExifInterface() method:

  public static function getExifInterface() {
    include 'SimpleExiftoolFacade.php';
  ...
tanc’s picture

StatusFileSize
new573 bytes

Here is a patch. I don't think this is a good solution but we need to move forward so uploading this here for composer patching purposes.

Matt_TOTW’s picture

StatusFileSize
new578 bytes

Thanks @tanc!
We need to include_once, then all good.

hosef’s picture

Status: Active » Needs review
StatusFileSize
new175 bytes

This issue is caused because the file name is not capitalized correctly, and the autoloader cannot find it because it is case sensitive.

Here is a patch that renames the file.

karel010’s picture

@hosef good catch!

jphautin’s picture

Assigned: Unassigned » jphautin
Status: Needs review » Fixed

@hosef thanks. integrated in dev branch

  • jphautin committed c47fe31 on 8.x-1.x authored by hosef
    Issue #2941644 : Error Class Drupal\exif\SimpleExifToolFacade not found
    

Status: Fixed » Closed (fixed)

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