Getting errors like:

Notice: Undefined property: stdClass::$type in _metatag_entity_is_page() (line 1373 of /xyz/code/sites/all/modules/contrib/metatag/metatag.module).

I have a patch that I'll attach

Comments

kristen pol’s picture

Status: Active » Needs review
StatusFileSize
new969 bytes

Here's the trivial patch

kristen pol’s picture

Hmm... that patch is getting rejected when I use it. I used:

git format-patch origin/7.x-1.x --stdout

from:

[#1054616]

and am trying to apply it on my project with:

patch -p1 < [filename]

kristen pol’s picture

Status: Needs review » Needs work

Ah... I think our code is a bit outdated... moving back to needs work.

kristen pol’s picture

I tried with git diff too and it still didn't work... argh. I'm giving up for now.

kristen pol’s picture

Assigned: kristen pol » Unassigned
damienmckenna’s picture

Status: Needs work » Needs review
StatusFileSize
new1.4 KB

Thanks for spotting something is up. It actually needs to verify the entity_type is 'node' before doing anything else, rather than use $entity_type.

damienmckenna’s picture

Status: Needs review » Fixed

Committed. Thanks for noticing something was up, Kristen.

Status: Fixed » Closed (fixed)

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