- Issue created by @jmouse888
Somehow I'm getting this error while using unique on Entity Reference fields. I have content types set up with fields using Entity Reference which are set to be "Unique". They were working for the past few months on my dev site. Today all of the sudden, the unique constrain stopped working, and user are able to create new content with the same unique field value. I'm getting this (or similar) error in the status log and PHP log. My specific error is "Warning: Illegal string offset 'target_id' in unique_field_ajax_validate_unique() (line 572 of ...../modules/contrib/unique_field_ajax/unique_field_ajax.module)"
Running Drupal 9.5.9 and Unique Field Ajax 2.1.2
Not sure if this could've caused the issue: my server is still running PHP 7.4 due to current site is on D7.
** commented this on a related issue but not getting any response, so posting as an issue **
Active
2.1
Code