I get this error when navigating to node/add/xxx (any node type).

Looking at sortedGroupsWithTags(), $tag_id is not defined anywhere. I suspect it should be $tag['id']

I changed to $tag['id'] and all is well.

CommentFileSizeAuthor
#3 metatag-n2945799-3.patch694 bytesdamienmckenna

Comments

webfaqtory created an issue. See original summary.

webfaqtory’s picture

The tag_group is 'schema_article' and the tag_name is 'schema_article_aggregate_rating_votingapi' I'm guessing that this has a lot to do with the other issue I raised about getting 9 'AGGREGATERATING FOR VOTING API' blocks under Basic Tags

damienmckenna’s picture

Version: 8.x-1.4 » 8.x-1.x-dev
Status: Active » Needs review
StatusFileSize
new694 bytes

Ah! Thanks. This bug isn't triggered by the main module, and that line goes past 80 characters so I never noticed it X-)

This should fix the bug.

webfaqtory’s picture

Yep, ok now

  • DamienMcKenna committed ef565a2 on 8.x-1.x
    Issue #2945799 by DamienMcKenna: Undefined variable: tag_id in...

  • DamienMcKenna committed 4b7875c on 8.x-1.x
    Issue #2945799 by DamienMcKenna, webfaqtory: Undefined variable: tag_id...
  • DamienMcKenna committed ec868b5 on 8.x-1.x
    Revert "Issue #2945799 by DamienMcKenna: Undefined variable: tag_id in...
damienmckenna’s picture

Status: Needs review » Fixed
Parent issue: » #2932455: Plan for Metatag 8.x-1.5

Committed. Thanks for reporting the bug!

Status: Fixed » Closed (fixed)

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