Module throws an error when images are served from different environment with use of stage_file_proxy

Created on 15 December 2021, over 3 years ago
Updated 18 October 2023, over 1 year ago

Problem/Motivation

Let's assume there are two Drupal environments: QA and PROD. Public images are stored only on PROD environment and QA is using Stage File Proxy β†’ module to serve images directly from PROD. If ImageMagick is enabled, the following error is being thrown during some background processes, for example during search reindex:
> [error] File at 'public://path/to/file/my_image.png' does not exist (plugin: imagemagick_identify) (method: loadMetadataFromFile)

However the image itself can be displayed at the path mentioned in the error.

Steps to reproduce

1. Prepare Drupal environment "A" with modules: stage_file_proxy, imagemagick, search_api.
2. Create a node and embed some images.
3. Clone Drupal environment "A" from 1) into separe environment "B" and configure stage_file_proxy there to serve images from environment "A".
4. Try to reindex search on "B" using drush search-api-index command.

Proposed resolution

TBD

Remaining tasks

TBD

User interface changes

N/A

API changes

N/A

Data model changes

N/A

πŸ› Bug report
Status

Active

Version

3.1

Component

Code

Created by

πŸ‡΅πŸ‡±Poland piotrkonefal

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024