Hello

Been seeing these 2 error below for quite sometime:

Notice: Undefined offset: 1 in metatag_views_post_render() (line 2112 of .../metatag/metatag.module).
Notice: Trying to get property of non-object in metatag_views_post_render() (line 2116 of .../metatag/metatag.module).

Seems like it is an error in the view that is using the metatag, can't quite poinpoint it on the view itself. Below is the patch that makes it all go away.

CommentFileSizeAuthor
#2 metatag_views_post_render-2559359.patch488 byteslabboy0276

Comments

labboy0276 created an issue. See original summary.

labboy0276’s picture

StatusFileSize
new488 bytes

Here is the patch

damienmckenna’s picture

Version: 7.x-1.7 » 7.x-1.x-dev
Status: Active » Needs review
Parent issue: » #2539438: Plan for Metatag 7.x-1.8 release

Thanks for the patch, I'll be sure to review it and, most likely, include it in the next release.

PS, when you upload a patch you should change the issue status to "needs review", that'll both trigger the testbot to help ensure the patch doesn't introduce any regressions (bugs), and also lets others know that there's a patch to review. Thanks again!

damienmckenna’s picture

Status: Needs review » Fixed

Committed. Thanks!

Status: Fixed » Closed (fixed)

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