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).

Comments

pachabhaiya’s picture

Submitted a patch to fix the issue mentioned in the issue description.

This patch solved the issue for me.

pachabhaiya’s picture

Status: Active » Needs review
nikolay shapovalov’s picture

StatusFileSize
new1.89 KB

Nice 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.

nikolay shapovalov’s picture

StatusFileSize
new1.9 KB

Small typo. Use return instead of continue.

nikolay shapovalov’s picture

Title: Getting multiple watchdog notices and warning when visiting /taxonomy/term/N, where N is the taxonomy term id. » Handle multiple views tids arguments for taxonomy/term/%
StatusFileSize
new1.92 KB

Update. Fix single value handling.

nikolay shapovalov’s picture

astonvictor’s picture

Status: Needs review » Closed (outdated)

D7 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.

Now that this issue is closed, please review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, please credit people who helped resolve this issue.