govCMS / GovCMS8

Current stable release of the main GovCMS8 distribution.
GNU General Public License v2.0
60 stars 58 forks source link

Dynamic entity reference error when adding non-existing taxonomy terms to fields #568

Open schnydszch opened 3 years ago

schnydszch commented 3 years ago

I am having a problem with my Drupal installation utilizing GovCMS8 distribution. It is Drupal 8.8.1 installed in Ubuntu 18.x. I have a field with field setting "dynamic reference type for taxonomy term" and "Create referenced entities if they don't already exist" is checked. When adding content and filling up the aforementioned field, I am getting this error message: "The referenced entity (taxonomy_term: term here) does not exist. What could be the problem? And how do I troubleshoot on this? It seems there is a problem with the autocomplete widget? Please advise. Thanks!

schnydszch commented 3 years ago

Upon further checking this, it seems I am getting the error message when there is a parenthesis in my taxonomy term like this term: Education, Department of (DepEd) since the error I am getting is like this: "The referenced entity (taxonomy_term: DepEd) does not exist." Upon further checking Drupal, it indeed is a bug: https://www.drupal.org/project/drupal/issues/2924783

thisisalistairsaccount commented 3 years ago

Hi @schnydszch it does look like the bug you've spotted and looks as thought it may be an issue at Drupal Core.

Just noting your Drupal version indicated, it does seem as though if you are using our GovCMS distro, that you may be a few releases behind. Our current GovCMS release utilises Drupal Core 8.9.7. I'd recommend reviewing your current release and upgrading, to cover more recent patches and security updates.