Problem/Motivation

I see this error whenever I load the "Manage Display" tab of a Bynder media type:

Deprecated function: strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in Drupal\bynder\Plugin\Field\FieldFormatter\BynderFormatterBase->getAttributesFieldsCandidates() (line 137 of modules/local/bynder/src/Plugin/Field/FieldFormatter/BynderFormatterBase.php).

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

CommentFileSizeAuthor
#3 bynder-3323484-1.patch800 bytesankitjhakal

Comments

Dave Reid created an issue. See original summary.

ankitjhakal’s picture

Assigned: Unassigned » ankitjhakal
ankitjhakal’s picture

Assigned: ankitjhakal » Unassigned
Status: Active » Needs review
StatusFileSize
new800 bytes

Here's the patch.

levmyshkin’s picture

Status: Needs review » Reviewed & tested by the community

Thank you, it's working for me fine.

  • Berdir committed d899edab on 4.x authored by ankitjhakal
    Issue #3323484 by ankitjhakal: PHP Deprecated function: strpos():...
berdir’s picture

Status: Reviewed & tested by the community » Fixed

Committed, thanks.

Status: Fixed » Closed (fixed)

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