http://mysite.com/node/add/my_polls|1||Drupal\typed_data\Exception\InvalidArgumentException: Unable to apply data selector 'field_userpoints_default_linkref' at 'field_userpoints_default_linkref':

Field field_userpoints_default_linkref is unknown. in Drupal\typed_data\DataFetcher->fetchDataBySubPaths() (line 100 of drupal-8.5.3/html/modules/contrib/typed_data/src/DataFetcher.php

I have enabled userpoints_default
I applied the userpoints_rules patch
I enabled userpoints_rules
I created a content type called poll with an entity reference to the poll entity (http://drupal.org/project/poll).
I hit save and got a white screen
I had to refresh my screen and the content type was saved but I do not think the userpoint was

I then went to the transaction type:
admin/config/workflow/transaction/edit/userpoints_default_points/fields/transaction.userpoints_default_points.field_userpoints_default_linkref

and I noticed that I had to select content types under the dynamic field options.

Some have no options available but still are required (redhen)

Comments

SocialNicheGuru created an issue. See original summary.

socialnicheguru’s picture

Ok.

so you need to goto the dynamic reference field and select the items that you want to attach this to. (Not everything has a required option to choose).

Make sure to select the items that you want and de-select "Exclude selected".

socialnicheguru’s picture

Issue summary: View changes
socialnicheguru’s picture

Priority: Normal » Major
Status: Active » Needs review

I am not sure if this is something that should be added to the module and thus a feature request.
But this step is critical to using the module

socialnicheguru’s picture

Status: Needs review » Closed (works as designed)

OK. I think my original thought was not correct.

I think everything is fine with the field.

The issues comes up if there is a missing route or possibly other error associated with one of the referenced entity types.

Instead of throwing an error, clicking on the userpoints_default_linkref edit button will yield a WSOD.

socialnicheguru’s picture

Status: Closed (works as designed) » Closed (duplicate)