Problem/Motivation

Deprecated function: strtr(): Passing null to parameter #1 ($string) of type string is deprecated in Drupal\services\Entity\ServiceResource->id()

Steps to reproduce

Appears when activating the User > Login service at an endpoint

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

Comments

Anybody created an issue. See original summary.

jcnventura’s picture

That id() method seems to expect a service plugin, while other parts of the same class do not. Let's try something simple to fix it for now.

  • jcnventura authored 92caae5a on 5.x
    Issue #3363853 by jcnventura: Deprecated function: strtr(): Passing null...
jcnventura’s picture

Status: Active » Fixed
anybody’s picture

Thanks @jcnventura :)

jcnventura’s picture

If you can, please test this fully.. As this is, the id is now ending with a dot.. It might make more sense to have it slightly different. Not sure what that slightly different should be.

Status: Fixed » Closed (fixed)

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