When I enable this module and then try to select any value in the selectbox I get:
PHP Fatal error: Call to a member function getPluginId() on a non-object in EntityDisplayTrait.php on line 54

The same error appears and on 8.x-1.0 version

Error appears when $display->getRenderer($field_name) is empty (when $field_name is a name of current List field)
if I try to add checking like this: if(empty($display->getRenderer($field_name))) { return; } - Everything seems working, but Im not sure that everything goes correct after it

Comments

Aleksey Pavlyuk created an issue. See original summary.

mradcliffe’s picture

Priority: Normal » Critical
Status: Active » Needs review
Issue tags: +Needs manual testing
StatusFileSize
new623 bytes

Thank you for reporting this! I reproduced it locally, but after several hours of trying to write a test, I could not write a test that would cause this to fail. I tried a bunch of different scenarios of multiple content types with and without list fields using cck_select_other or not.

So here's a patch but needs to be tested manually.

Status: Needs review » Needs work

The last submitted patch, 2: cck_select_other-2709413-fix-null-renderer-1.patch, failed testing.

mradcliffe’s picture

Opened #2712219: Support Drupal 8.2.x to address Drupal 8.2.x failure.

The last submitted patch, 2: cck_select_other-2709413-fix-null-renderer-1.patch, failed testing.

The last submitted patch, 2: cck_select_other-2709413-fix-null-renderer-1.patch, failed testing.

The last submitted patch, 2: cck_select_other-2709413-fix-null-renderer-1.patch, failed testing.

The last submitted patch, 2: cck_select_other-2709413-fix-null-renderer-1.patch, failed testing.

The last submitted patch, 2: cck_select_other-2709413-fix-null-renderer-1.patch, failed testing.

  • mradcliffe committed 39a5196 on 8.x-1.x
    Issue #2709413 by mradcliffe: Fix for empty plugin ID
    
mradcliffe’s picture

Status: Needs work » Fixed

This passes tests locally on PostgreSQL, and it passes tests on MySQL here.

Must be a random test fail...

Status: Fixed » Closed (fixed)

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