Hello everyone. I would not say that this is a direct problem, but I am faced with the fact that if you do not specify the machine name of the view, an error will appear.

Call to a member function initDisplay() on null in Drupal\schema_metatag\Plugin\schema_metatag\PropertyType\ItemListElement->getItems() (line 133 of modules/contrib/schema_metatag/src/Plugin/schema_metatag/PropertyType/ItemListElement.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

PavelGerasuta created an issue. See original summary.

pavelgerasuta’s picture

StatusFileSize
new652 bytes

I suggest using the patch so that if the machine name is not specified, it will be taken from \Drupal::request().

PavelGerasuta changed the visibility of the branch 3409784-call-to-a to hidden.

abhishek_gupta1 made their first commit to this issue’s fork.

abhishek_gupta1’s picture

Assigned: pavelgerasuta » Unassigned
Status: Active » Needs review

@wells, fixed the issue and created MR corresponding above issue, please kindly review the MR.

pearls’s picture

Status: Needs review » Reviewed & tested by the community

mr46 solved the following issue.

Error: Drupal\schema_metatag\Plugin\schema_metatag\PropertyType\ItemListElement->getItems() (line 123 Call to a member function initDisplay() on null (/var/www/html/d11site/web/modules/contrib/schema_metatag/src/Plugin/schema_metatag/PropertyType/ItemListElement.php).

Tested versions:
Schema Metatag: 3.0.3
Drupal: 11.2.3

thejimbirch made their first commit to this issue’s fork.

thejimbirch’s picture

Status: Reviewed & tested by the community » Fixed

Started the merge train, thanks!

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

thejimbirch’s picture

Version: 3.0.1 » 3.0.x-dev

Status: Fixed » Closed (fixed)

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

damienmckenna’s picture