When I visit /taxonomy/term/N (replace N with any taxonomy term id), if the taxonomy term id "N" does not exist, then I'm getting following watchdog notices and warning. If the taxonomy term id "N" exists, then everything looks good.
Location http://example.com/taxonomy/term/100
Message Notice: Trying to get property of non-object in metatags_quick_views_post_render() (line 15 of /var/www/sites/all/modules/contrib/metatags_quick/metatags_quick.views.inc).
Location http://example.com/taxonomy/term/100
Message Notice: Undefined index: entity_type in field_get_display() (line 643 of /var/www/modules/field/field.module).
Location http://example.com/taxonomy/term/100
Message Notice: Undefined index: bundle in field_get_display() (line 643 of /var/www/modules/field/field.module).
Location http://example.com/taxonomy/term/100
Message Notice: Undefined index: view modes in field_view_mode_settings() (line 616 of /var/www/modules/field/field.module).
Location http://example.com/taxonomy/term/100
Message Warning: Invalid argument supplied for foreach() in field_view_mode_settings() (line 616 of /var/www/modules/field/field.module).| Comment | File | Size | Author |
|---|---|---|---|
| #5 | preview-2415315-5.patch | 1.92 KB | nikolay shapovalov |
Comments
Comment #1
pachabhaiya commentedSubmitted a patch to fix the issue mentioned in the issue description.
This patch solved the issue for me.
Comment #2
pachabhaiya commentedComment #3
nikolay shapovalov commentedNice patch, but when you use tid like 1,2,3 or 1+2+3 no one of metatgs field will display.
My patch handle single tid argument value, and also multiple tid argument values like 1,2,3 or 1+2+3.
When multiple values is provided, will be displayed metatags fields for the first term only.
Comment #4
nikolay shapovalov commentedSmall typo. Use return instead of continue.
Comment #5
nikolay shapovalov commentedUpdate. Fix single value handling.
Comment #6
nikolay shapovalov commentedComment #7
astonvictor commentedD7 reached its EOL back in January 2025, and there is no active release for D7 for this module anymore.
Development or support is not planned for D7. All D7-related issues are marked as outdated in a bunch.