Problem/Motivation

I am encountering the following PHP warnings when using the json_ld_schema_ui module:

Warning: Undefined property: stdClass::$rdfs:comment in Drupal\json_ld_schema_ui\Schemaorg\GraphNode\GraphNodeBase::fromElement() (line 53 of modules/contrib/json_ld_schema_ui/src/Schemaorg/GraphNode/GraphNodeBase.php).
Warning: Undefined property: stdClass::$rdfs:label in Drupal\json_ld_schema_ui\Schemaorg\GraphNode\GraphNodeBase::fromElement() (line 52 of modules/contrib/json_ld_schema_ui/src/Schemaorg/GraphNode/GraphNodeBase.php).

Steps to reproduce

Enable the json_ld_schema_ui module.
Navigate to the Schema.org UI (exact page depends on configuration).
The warnings appear during rendering.
PHP 8.3.27

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

anna d created an issue. See original summary.

anna d’s picture

Status: Active » Needs review

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

gxleano’s picture

Status: Needs review » Fixed

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.

gxleano’s picture

Status: Fixed » Closed (fixed)