using convert_bundles module can expose db api bug

Created on 29 January 2021, almost 4 years ago
Updated 5 June 2024, 7 months ago

Problem/Motivation

Error message:

The website encountered an unexpected error. Please try again later.
Error: Call to a member function isTranslatable() on null in Drupal\Core\Entity\Sql\SqlContentEntityStorage->loadFromDedicatedTables() (line 1280 of core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorage.php).

Using postgresql however probably affects mysql also.

Steps to reproduce

convert content from bundleA to bundleB (content typeA / typeB), have taxonomy term references, using translation in some fields, not others. WSOD after migrating bundle using convert_bundles module, the content works fine if I patch core (one liner), see patch forthcomming.

Proposed resolution

core patch fixes the glitch.

Remaining tasks

Review core patch, make tests.

User interface changes

N/A

API changes

I don't see how this would change the api.

Data model changes

N/A

Release notes snippet

database abstraction layer improvement.

πŸ› Bug report
Status

Closed: duplicate

Version

10.1 ✨

Component
EntityΒ  β†’

Last updated about 17 hours ago

Created by

πŸ‡¨πŸ‡¦Canada joseph.olstad

Live updates comments and jobs are added and updated live.
  • Needs tests

    The change is currently missing an automated test that fails when run with the original code, and succeeds when the bug has been fixed.

Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024