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

Comments

hstoellinger created an issue. See original summary.

sanduhrs’s picture

Title: Panolens on Drupal 10 » ArgumentCountError: Too few arguments to function
Version: 1.0.11 » 1.0.x-dev
Category: Support request » Bug report

  • sanduhrs committed cbd700a5 on 1.0.x
    Issue #3404349: ArgumentCountError: Too few arguments to function
    
sanduhrs’s picture

Status: Active » Fixed

Fix in next release, thanks for reporting.

hstoellinger’s picture

Truly fixed! Thanks for the prompt attention and - greetings from Salzburg

Status: Fixed » Closed (fixed)

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