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

CommentFileSizeAuthor
#3 review-error-fix.patch1022 bytessomeshver
review-error-fix.patch726 bytessomeshver

Issue fork reviews-3194498

Command icon 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:

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

someshver created an issue. See original summary.

someshver’s picture

FileSize
1022 bytes
jay.lee.bio’s picture

Here 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?

  • scot.hubbard committed 5cd5d57 on 1.0.x
    Issue #3194498: Added checked to ensure we are dealing with a node...
scot.hubbard’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

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

apaderno’s picture

Issue tags: -error, -node, -Drupal 8, -Module review