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).
| Comment | File | Size | Author |
|---|---|---|---|
| #8 | before.png | 9.77 KB | abacaba |
| #7 | after.png | 83.85 KB | abacaba |
| #2 | taxonomy_formatter-the_web_encountered_an_unexpected_error-2912923-2.patch | 1.15 KB | interdruper |
Comments
Comment #2
interdruper commentedIt seems that the developer forgot to remove a couple of line related with othe module. Patch attached.
Comment #3
s-jack commentedHi, @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.
Comment #4
s-jack commentedSorry 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 ) ?
Comment #5
interdruper commentedYes, s-jack, please report it as a new issue; this is only related to the exception explained in the title.
Comment #6
s-jack commentedHi,interrupter.
Thank you for the advice.
Comment #7
abacaba commentedHi,
@interdruper thanks for patch, #2 help me)
Comment #8
abacaba commentedComment #9
nehajyoti commentedPatch got applied successfully. Applying patch to 8.x-1.x branch.
Comment #11
nehajyoti commentedComment #13
spyronis commentedI 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).
Comment #14
spyronis commentedI thought the patch was on alpha version, but it seems it is still on dev:
composer require 'drupal/taxonomy_formatter:1.x-dev'
Comment #15
joshuautley commentedWorked for me. Thank you!
Comment #16
RKumar-dupe commentedI 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.
Comment #17
bufflex commentedThanks 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.