Adding comment field to content type with existing content requires save of existing content

Created on 7 April 2022, over 2 years ago
Updated 14 February 2023, over 1 year ago

On 9.3.9 adding a content field to a node content type with existing content and adding it to its display fails, it does not display. Each existing content item must be individually saved and then the comment field displays. I was expecting that adding the field and configuring its display would have the field display for all existing content items. Running PHP 7.4.28, MySQL 5.7.37.

🐛 Bug report
Status

Closed: cannot reproduce

Version

9.5

Component
Comment 

Last updated 1 day ago

Created by

🇭🇺Hungary Grabby

Live updates comments and jobs are added and updated live.
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.

  • 🇳🇱Netherlands tinto Amsterdam

    I tried to reproduce this issue by carrying out the following steps:

    1. Install Drupal 9.5.2-dev
    2. Log in as administrator
    3. Create content type "Test content type"
    4. Add content > "Test content type" > create and save
    5. Edit fields on "Test content type" on /admin/structure/types/manage/test_content_type/fields
    6. Add exisiting field > Comments > Save content type
    7. Make sure your newly added Comments field is enabled on /admin/structure/types/manage/test_content_type/display
    8. View the node you just created in step 4

    For me the comments field is displayed without any problems.

    Based on these findings, I am marking this issue as Closed (cannot reproduce).
    If the problem does persist for others, feel free to reopen. Until then, thank you for taking the time to report this issue!

Production build 0.71.5 2024