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
Comments
Comment #2
sanduhrsComment #4
sanduhrsFix in next release, thanks for reporting.
Comment #5
hstoellinger commentedTruly fixed! Thanks for the prompt attention and - greetings from Salzburg