ArgumentCountError: Too few arguments to function

Created on 27 November 2023, 12 months ago

Problem/Motivation

In the process of upgrading to D10 I get the same error, preventing the upgrade:

ArgumentCountError: Too few arguments to function Drupal\image\Plugin\Field\FieldFormatter\ImageFormatter::__construct(), 9 passed in /home/hs/w10/web/modules/contrib/panolens/src/Plugin/Field/FieldFormatter/ImagePanoramaFormatter.php on line 38 and exactly 10 expected in Drupal\image\Plugin\Field\FieldFormatter\ImageFormatter->__construct() (line 75 of /home/hs/w10/web/core/modules/image/src/Plugin/Field/FieldFormatter/ImageFormatter.php).

I am on D10.1.6, Panolens 1.0.11, have of course installed Three.js and defined a content-type image-panorama. The error occurs when trying to secify a display type of "Image Panorama" for the image field.

Steps to reproduce

Try to define a display type of Image Panorama for the image to be displayed using Panolens

Proposed resolution

correct the call to the constructor with respect to the arguments

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

🇦🇹Austria hstoellinger Salzburg

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

Comments & Activities

Production build 0.71.5 2024