Deprecated notice errors are showing in nodes view page.

Created on 11 January 2024, 11 months ago
Updated 18 July 2024, 4 months ago

Multiple notice errors are showing in the db log.

Deprecated function: Return type of XML_XRD_PropertyAccess::offsetExists($type) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in require_once() in modules/contrib/link_decorator/src/Plugin/Field/FieldFormatter/DecoratedLinksFormatter.php(415): Drupal\link_decorator\Plugin\Field\FieldFormatter\DecoratedLinksFormatter->verify()
modules/contrib/link_decorator/src/Plugin/Field/FieldFormatter/DecoratedLinksFormatter.php(243): Drupal\link_decorator\Plugin\Field\FieldFormatter\DecoratedLinksFormatter->decorate()
modules/contrib/link_decorator/src/Plugin/Field/FieldFormatter/DecoratedLinksFormatter.php(373): Drupal\link_decorator\Plugin\Verifier\WebfingerVerifier->verify()

Deprecated function: Return type of XML_XRD_PropertyAccess::offsetGet($type) should either be compatible with ArrayAccess::offsetGet(mixed $offset): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in require_once()

📌 Task
Status

Needs work

Version

1.0

Component

Code

Created by

🇮🇳India revathi.b

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

  • Issue created by @revathi.b
  • Merge request !7Fixing notice errors. → (Open) created by revathi.b
  • Status changed to Needs review 11 months ago
  • 🇮🇳India revathi.b

    MR !7 fixing these errors. Thanks!

  • 🇩🇪Germany sanduhrs 🇪🇺 Heidelberg, Germany, Europe

    It's just deprecation notices, re-categorizing.

  • Status changed to Needs work 4 months ago
  • 🇮🇹Italy kopeboy Milan

    Unfortunately that's not enough.

    I'm still getting 5 errors every time I save a node with a decorated link field (with a fresh Drupal 10.3.1):

    (also please notice that the page is very slow to load)

    Deprecated function: Return type of XML_XRD_PropertyAccess::offsetExists($type) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in require_once() (line 30 of /var/www/html/vendor/pear/xml_xrd/src/XML/XRD/PropertyAccess.php).

    Deprecated function: Return type of XML_XRD_PropertyAccess::offsetGet($type) should either be compatible with ArrayAccess::offsetGet(mixed $offset): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in require_once() (line 30 of /var/www/html/vendor/pear/xml_xrd/src/XML/XRD/PropertyAccess.php).

    Deprecated function: Return type of XML_XRD_PropertyAccess::offsetSet($type, $value) should either be compatible with ArrayAccess::offsetSet(mixed $offset, mixed $value): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in require_once() (line 30 of /var/www/html/vendor/pear/xml_xrd/src/XML/XRD/PropertyAccess.php).

    Deprecated function: Return type of XML_XRD_PropertyAccess::offsetUnset($type) should either be compatible with ArrayAccess::offsetUnset(mixed $offset): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in require_once() (line 30 of /var/www/html/vendor/pear/xml_xrd/src/XML/XRD/PropertyAccess.php).

    Deprecated function: Return type of XML_XRD::getIterator() should either be compatible with IteratorAggregate::getIterator(): Traversable, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in require_once() (line 38 of /var/www/html/vendor/pear/xml_xrd/src/XML/XRD.php).

  • 🇩🇪Germany sanduhrs 🇪🇺 Heidelberg, Germany, Europe

    If you want this fixed, please support the upstream merge request: https://github.com/pear/XML_XRD/pull/2

Production build 0.71.5 2024