Deprecated notice errors are showing in nodes view page.

Created on 11 January 2024, about 1 year 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()

🐛 Bug report
Status

Active

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 about 1 year 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 7 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

  • 🇮🇹Italy kopeboy Milan

    I would expect the problem to go away after disabling the verification from the field formatter, but on every link field save the page takes ages to load and will again show the errors. Why is that? I even tried removing the verification checkbox on the modules settings for each social network, but the problem stayed. Should I open another issue?

Production build 0.71.5 2024