Error message:
Recoverable fatal error: Argument 3 passed to metatag_metatags_form() must be of the type array, boolean given, called in /var/www/html/www/sites/all/modules/contrib/metatag/metatag.module on line 1895 and defined in metatag_metatags_form() (line 1277 of /var/www/html/www/sites/all/modules/contrib/metatag/metatag.module).

Comments

doostinharrell created an issue. See original summary.

doostinharrell’s picture

StatusFileSize
new548 bytes
doostinharrell’s picture

StatusFileSize
new548 bytes
doostinharrell’s picture

StatusFileSize
new549 bytes
doostinharrell’s picture

Status: Needs work » Needs review
StatusFileSize
new513 bytes

After a bit of digging it appears that "$metatags = $entity->metatags[$entity_language];" on line 1860 was resulting in "$entity->metatags['und'] = FALSE". So when metatag_metatags_form() is called and a boolean was passed instead of an array the function call failed.

It is also important to note that the node I experienced this error on was a panels node. My guess is that the node was created with an older version of metatag installed and after a module upgrade the error was introduced.

damienmckenna’s picture

StatusFileSize
new589 bytes

Thanks for the patches. Does this also fix the problem for you?

doostinharrell’s picture

Yes, that patch also resolves my problem.

Cheers

damienmckenna’s picture

Status: Needs review » Fixed
Parent issue: » #2663006: Plan for Metatag 7.x-1.14 release

Committed. Thanks.

Status: Fixed » Closed (fixed)

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