Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I get the following error when generating content with a value in the "Maximum number of comments per node." field.
Fatal error: Call to undefined method stdClass::save() in ...drupal-8.x-dev/core/modules/comment/comment.module on line 1442
Comment | File | Size | Author |
---|---|---|---|
#2 | devel-genc-comment-1375800-2.patch | 1.9 KB | clemens.tolboom |
Comments
Comment #1
jwilson3Also hitting this error, tested with both 'testing' install profile plus node+comment modules enabled by hand, as well as the 'standard' install profile on core 8.x branch.
Comment #2
clemens.tolboomAs comments are now of class Comment we need to use it.
Attached patch reordered the creation of pid and uses entity_create().
Comment #3
moshe weitzman CreditAttribution: moshe weitzman commentedLooks good to me. Do other entities need updating (hint hint)?
Comment #4
clemens.tolboomGood point ... I'll have to fix first 'drush entity' #1429040: entity-read fails on Drupal 8. If so we will post more bugs over here.
Comment #5
salvisWhere do we stand here, and in relation to #1549662: Node, taxonomy, comment, and user are all classed objects?
Comment #6
salvisThis has been fixed with #1549662: Node, taxonomy, comment, and user are all classed objects.