Repeatable:Always
1.Download module with composer
2.Install module
3.Set default delimita "," in the term reference field of a one content type
4.View some contents of that contents type

OS: MacOS 10.11.6
Database: MySQL 5.5.48-37.8
Web Server: Apache/2.4.17 (Unix)
PHP 7.0.14
Drupal 8.3.7(drupal-project) imported in Acquia Dev Desktop 2

Actual Results:
The message "The website encountered an unexpected error. " will be displayed. 
Home>Administration>Reports>Recent log>messages showed this error:

InvalidArgumentException: Field taxonomy_image is unknown. in Drupal\Core\Entity\ContentEntityBase->getTranslatedField() (line 509 of /Users/hogehoge/Sites/devdesktop/fugafuga/web/core/lib/Drupal/Core/Entity/ContentEntityBase.php).

Comments

s-jack created an issue. See original summary.

interdruper’s picture

Status: Active » Needs review
StatusFileSize
new1.15 KB

It seems that the developer forgot to remove a couple of line related with othe module. Patch attached.

s-jack’s picture

Hi, @interdruper.
Thanks for patch.
When separator is "," or something, term are correctly displayed horizontally!

There is an additional problem.
When separator is "" means no space, all terms are not displayed.
How can I easily break it with space?
When separator is "" means one space, term are displayed.

s-jack’s picture

Sorry about additional issue.
Separators by entering spaces cause problems.
If there is no term, the label is displayed.
Should I post as another issue ( feature request ) ?

interdruper’s picture

Yes, s-jack, please report it as a new issue; this is only related to the exception explained in the title.

s-jack’s picture

Hi,interrupter.
Thank you for the advice.

abacaba’s picture

Status: Needs review » Reviewed & tested by the community
StatusFileSize
new83.85 KB
new83.85 KB

Hi,

@interdruper thanks for patch, #2 help me)

abacaba’s picture

StatusFileSize
new9.77 KB
nehajyoti’s picture

Patch got applied successfully. Applying patch to 8.x-1.x branch.

nehajyoti’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

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

spyronis’s picture

I am still facing issue.
Using drupal 8.5.6
And obtained module via:
composer require 'drupal/taxonomy_formatter'
or composer require 'drupal/taxonomy_formatter:^1.0-alpha1'

Getting error:
The website encountered an unexpected error. Please try again later.InvalidArgumentException: Field taxonomy_image is unknown. in Drupal\Core\Entity\ContentEntityBase->getTranslatedField() (line 580 of core/lib/Drupal/Core/Entity/ContentEntityBase.php).

spyronis’s picture

I thought the patch was on alpha version, but it seems it is still on dev:
composer require 'drupal/taxonomy_formatter:1.x-dev'

joshuautley’s picture

Worked for me. Thank you!

RKumar-dupe’s picture

I still get "The website encountered an unexpected error" on alpha version and works fine on dev version

I have four taxonomy fields one after another. Now when I make the heading inline, all the taxonomy fields are aligning to one line. And one word from the next field is missing or shows up above the first taxonomy field.

bufflex’s picture

Thanks for the information, everyone. I had the same problem until I found this topic and reverted back to the dev version. After that everything worked just as intended.