Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
I'm trying to apply fotorama format to image field and getting error : Call to undefined function template_preprocess_image_formatter() in template_preprocess_fotorama_gallery_image_item()
Comment | File | Size | Author |
---|---|---|---|
settings.png | 28.58 KB | roomit | |
error.txt | 7.04 KB | roomit |
Comments
Comment #2
roomit CreditAttribution: roomit commentedComment #3
meickolPlease, Can you tell me more about your drupal environment? drupal version?
Comment #4
roomit CreditAttribution: roomit commentedI have Drupal 8.3.1 on my local server (Openserver, https://ospanel.io/) with Apache 2.4.25, PHP 7.1 andMySQL 5.7.
Comment #5
meickolI am testing the module on this new drupal version, and yes I see this error, I fixed it clearing the cache after enabling the module, if you are using drush
drush cr
I hope for now that will let you work with the module, but I will go deeper on this. Thanks and let me know if this works for you.
Comment #6
martin107 CreditAttribution: martin107 as a volunteer commentedAfter a chat with meickol in IRC
I can reproduce this error on 8.4.x
the function that cannot be found exists in the core as
image.field.inc - template_preprocess_image_formatter()
The question why it has become disconnected.
I am looking into this further.... watch this space.
but for the moment here is the stack trace
Comment #7
meickol@martin107 I found the problem here you can see more information https://www.drupal.org/node/2638622#comment-12100180
Comment #9
meickol