error upon updb :The "pm_thread_access_time" entity type does not exist.

Created on 5 December 2024, 5 months ago

Problem/Motivation

I'm getting this error upon updb :
Saving the configuration entity with ID core.entity_view_mode.pm_thread_access_time.token generated an exception: 'The "pm_thread_access_time" entity type does not exist.'
882> [error] Update failed: system_post_update_add_description_to_entity_view_mode

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Active

Version

3.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States dianacastillo Miami

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

Comments & Activities

  • Issue created by @dianacastillo
  • πŸ‡·πŸ‡΄Romania claudiu.cristea Arad πŸ‡·πŸ‡΄

    We need more info:

    • Which was the value of "value" column from the "key_value" table for "collection" = "system.schema" and "name" = "private_message" before you've started the update?
    • Which was the initial module version before you've started the update to 3.0.4?
  • πŸ‡ΊπŸ‡ΈUnited States dianacastillo Miami

    answer to value from key_value table for collection system.schema name private message -- value is i:8014;

  • πŸ‡ΊπŸ‡ΈUnited States dianacastillo Miami
  • πŸ‡ΊπŸ‡ΈUnited States dianacastillo Miami

    i did a cim before the updb and now i dont get the error. thanks

  • πŸ‡ΊπŸ‡ΈUnited States dianacastillo Miami
  • πŸ‡ΊπŸ‡ΈUnited States firstlut

    Why is this issue marked as fixed? I'm having the same problem.
    My prior version is: 8.x-2.0-beta18
    Prior system schema version: 8006.

    Same exact error message.

    Thanks!

  • πŸ‡ΊπŸ‡ΈUnited States dianacastillo Miami

    firstlut because if you run a cim first before the updb the issue is fixed.

  • πŸ‡ΊπŸ‡ΈUnited States firstlut

    OK, I figured this one out. The entities were deleted, but a couple of View Modes are still hanging around:
    core.entity_view_mode.pm_thread_access_time.token
    core.entity_view_mode.pm_thread_delete_time.token

    You have to delete these orphaned config entities with Drush:
    drush cdel core.entity_view_mode.pm_thread_access_time.token, core.entity_view_mode.pm_thread_delete_time.token

    For reference, here's the Drush manual page.
    Changing status back to "Fixed."

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

  • Status changed to Fixed 25 days ago
  • πŸ‡ΊπŸ‡ΈUnited States dianacastillo Miami

    update - with a new database and code what i had to to was manually go into the all of the files that started with core.entity_view_mode.private_message. and core.entity_view_mode.pm and add a description: "" line
    then do a cim and then do an updb

Production build 0.71.5 2024