Just installed latest dev versione of this module.
I get this error (two ugual messages on the same page) on login registration form only.
I'm using Profile2 and Profile2 Registration Path.
Before enable metatag, the page was error free.

CommentFileSizeAuthor
#6 metatag-n2291993-6.patch1.63 KBdamienmckenna
#2 metatag error.JPG128.91 KBAnonymous (not verified)

Comments

damienmckenna’s picture

Title: Warning: class_exists() expects parameter 1 to be string, array given in metatag_get_instance() (line 1580 of /sites/all/modules/metatag/metatag.module). » Warning: class_exists() expects parameter 1 to be string, array given in metatag_get_instance() (line 1580 of metatag.module).

Can you please test this again with the newest -dev release, I committed several changes last night and want to make sure I'm looking at the same code you are. Thanks.

Anonymous’s picture

StatusFileSize
new128.91 KB

upgraded to the latest dev 7.x-1.0-beta9+28-dev.
The error occurs to me too in user/register and metatag config pages when you edit them.

Additionally i get these when i clear the cache
Warning: strnatcmp() expects parameter 2 to be string, array given in token_asort_tokens() (line 569 /sites/all/modules/token/token.module).
Warning: uasort() [function.uasort]: Array was modified by the user comparison function in token_get_info() (line 529 /sites/all/modules/token/token.module).
Warning: strnatcmp() expects parameter 1 to be string, array given in token_asort_tokens() (line 569 of /sites/all/modules/token/token.module).

rollingnet’s picture

I have installed the latest dev: same behavior

rollingnet’s picture

I can confirm also the additional error of #2

Warning: strnatcmp() expects parameter 2 to be string, array given in token_asort_tokens() (line 575 of /sites/all/modules/token/token.module).
Warning: uasort(): Array was modified by the user comparison function in token_get_info() (line 535 of /sites/all/modules/token/token.module).
damienmckenna’s picture

FYI I've ran into this too. Grr.

damienmckenna’s picture

Status: Active » Needs review
StatusFileSize
new1.63 KB

Argh. I forgot to remove the fb meta tags from the metatag_opengraph module in #2276361: Separate the Facebook tags from the OpenGraph tags :-\

damienmckenna’s picture

Status: Needs review » Fixed

Committed. Sorry about that.

  • DamienMcKenna committed f27cc7f on 7.x-1.x
    Issue #2291993 by DamienMcKenna: Duplicate fb meta tags causes lots of...

Status: Fixed » Closed (fixed)

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