Error: Call to a member function transformDimensions() on null in Drupal\photoswipe\PhotoswipePreprocessProcessor->getPath() (line 146 of modules/contrib/photoswipe/src/PhotoswipePreprocessProcessor.php).

Created on 6 August 2024, 5 months ago
Updated 3 September 2024, 4 months ago

Problem/Motivation

On certain entities the following error appears:

Error: Call to a member function transformDimensions() on null in Drupal\photoswipe\PhotoswipePreprocessProcessor->getPath() (line 146 of modules/contrib/photoswipe/src/PhotoswipePreprocessProcessor.php).

I guess it happens if the image file is missing or broken.

Should we maybe handle or catch this issue otherwise or simply let this happen?

I don't really think this is a bug in Photoswipe itself. Also see the related issues.

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Fixed

Version

5.0

Component

Code

Created by

🇩🇪Germany Anybody Porta Westfalica

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024