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.
Problem/Motivation
Steps to reproduce
Click on add review on node page.
Proposed resolution
Created fix for this
Remaining tasks
User interface changes
API changes
Data model changes
Comment | File | Size | Author |
---|---|---|---|
#3 | review-error-fix.patch | 1022 bytes | someshver |
Issue fork reviews-3194498
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
someshver CreditAttribution: someshver as a volunteer and commentedComment #4
jay.lee.bio CreditAttribution: jay.lee.bio commentedHere are my results after testing a fresh install of Drupal & Reviews:
1) Drupal 8.9.13 & Reviews 1.0.0-beta1 - I get the exact error above.
2) Drupal 8.9.13 & Reviews 1.0.x-dev (which includes the #3 patch above) - I get the following error message:
Error: Object of class Drupal\node\Entity\Node could not be converted to string in Drupal\Core\Entity\EntityStorageBase->buildCacheId() (line 131 of core\lib\Drupal\Core\Entity\EntityStorageBase.php)
3) Drupal 9.1.4 & Reviews 1.0.0-beta1 - I get the exact error above.
4) Drupal 9.1.4 & Reviews 1.0.x-dev (which includes the #3 patch above) - I get the following error message:
Error: Object of class Drupal\node\Entity\Node could not be converted to string in Drupal\Core\Entity\EntityStorageBase->buildCacheId() (line 126 of core\lib\Drupal\Core\Entity\EntityStorageBase.php)
What am I doing wrong?
Comment #6
scot.hubbard CreditAttribution: scot.hubbard commentedComment #8
apaderno