Problem/Motivation

Right after applying the formatter to an existing image field (even without touching the options) and on every page load thereafter, I'm getting this error message:

Deprecated function: Creation of dynamic property Drupal\panorama_viewer\Plugin\Field\FieldFormatter\PanoramaViewerFormatter::$entityTypeManager is deprecated in Drupal\panorama_viewer\Plugin\Field\FieldFormatter\PanoramaViewerFormatter->__construct() (line 47 of modules/contrib/panorama_viewer/src/Plugin/Field/FieldFormatter/PanoramaViewerFormatter.php).

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

kopeboy created an issue. See original summary.

priti197’s picture

Patch created to fix the issue, please review.

priti197’s picture

Status: Active » Needs review
g.mustapha’s picture

@kopeboy There is no info on which environment you get this issue. Can you provide the Drupal version and steps to reproduce the issue?

g.mustapha’s picture

The module works on 9.5.x & from 10.2.x to 10.4.x but gives the error. on d 11.1.x

  • 96f9d093 committed on 1.0.x
    Issue #3484344: Deprecated function: Creation of dynamic property in...
g.mustapha’s picture

g.mustapha’s picture

Status: Needs review » Fixed

fixn on v 1.0.4

g.mustapha’s picture

Status: Fixed » Closed (fixed)