Argument 2 passed to Drupal\\views\\Plugin\\views\\relationship\\RelationshipPluginBase::init() must be an instance of Drupal\\views\\Plugin\\views\\display\\DisplayPluginBase, array given, called in /var/www/html/drupal817/core/modules/views/src/Plugin/views/row/RowPluginBase.php on line 93 and defined in /var/www/html/drupal817/core/modules/views/src/Plugin/views/relationship/RelationshipPluginBase.php on line 64

Steps to Reproduce:

1. Create Views of Content.
2. Add Relationship involving Reference Field.
3. Now, Under Format > Show select content option and then try to choose the display mode.

Here occurs the error, which can be seen in dblog.

Thanks,
PK

Comments

sandeepreddyg created an issue. See original summary.

purushotam.rai’s picture

Version: 8.1.x-dev » 8.2.x-dev
Status: Active » Needs review
StatusFileSize
new842 bytes

I was able to reproduce this issue on my local. Here goes the patch to solve this issue. Issue persists on 8.2.x branch too.

jonathanshaw’s picture

Could you give steps to reproduce? The IS explains the cause of the problem, but it might help to say what the result is.

purushotam.rai’s picture

Issue summary: View changes
purushotam.rai’s picture

Issue summary: View changes
jonathanshaw’s picture

Your patch works for me, but this issue would seem to be a duplicate of #2457999: Cannot use relationship for rendered entity on Views?

purushotam.rai’s picture

Status: Needs review » Closed (duplicate)
Related issues: +#2457999: Cannot use relationship for rendered entity on Views