TypeError return value of EntityStorageBase::getEntityClass() must be of the type string

Created on 7 February 2025, 3 months ago

Problem/Motivation

#3259941-20: getEntityClass() must be of the type string, null returned

Steps to reproduce

Drupal 11.1.1
key module 1.x-dev latest as of today
key module 1.19 also affected
symfony mailer lite: 2.0.2

Operation: add a key-override for the smtp username and smtp password of the symfony mailer transport configuration.

The path of the request: /admin/config/development/configuration/key-overrides/add?ajax-form

TypeError: Return value of Drupal\Core\Entity\EntityStorageBase::getEntityClass() must be of the type string, null

Proposed resolution

TBD

Remaining tasks

TBD

User interface changes

TBD

API changes

TBD

Data model changes

TBD

💬 Support request
Status

Active

Version

1.0

Component

Code

Created by

🇨🇦Canada joseph.olstad

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

Comments & Activities

  • Issue created by @joseph.olstad
  • 🇮🇳India ankitv18

    Hey @joseph.olstad
    Is this issue still exists as I tried with the below version:
    Drupal: 11.1.5
    Key: 1.20
    smtp: 1.4.0
    symfony_mailer: 1.5.0
    symfony_mailer_lite: 2.0.2

    Below are the screenshot of overriding smtp username with custom test key.

    Am I missing something here? could you check with the latest version of modules and update the issue accordingly?

  • 🇨🇦Canada joseph.olstad

    hmm, ok we're still using the patch, my contract with the client using this has only a few hours left so I won't be able to re-test.

  • 🇮🇳India rajeshreeputra Pune

    As unable to reproduce with latest dev of key and dependencies mentioned in description, will close the issue as it is functioning as designed. Please feel free to open a new issue if the problem persists.

  • 🇺🇸United States japerry KVUO

    I have a feeling that there is a bug here in how we're returning the class type, but not sure how to reproduce it yet.

  • 🇺🇸United States mglaman WI, USA

    Why does the URL have ?ajax-form? That's not part of the normal action link. Is there another contrib at play which AJAX-ifies forms?

Production build 0.71.5 2024