When enabling the Metatag and the OpenGraph submodule I get the following error:

Warning: strnatcmp() expects parameter 1 to be string, array given i token_asort_tokens() (rad 569 av [...]/sites/all/modules/contrib/token/token.module).
Warning: strnatcmp() expects parameter 2 to be string, array given i token_asort_tokens() (rad 569 av [...]/sites/all/modules/contrib/token/token.module).
Warning: uasort(): Array was modified by the user comparison function i token_get_info() (rad 529 av [...]/sites/all/modules/contrib/token/token.module).

A look at the status report gives the following:

The following token or token types are defined by multiple modules:
$info['tokens']['metatag']['article:publisher']
$info['tokens']['metatag']['article:author']

This only happens when the OpenGraph module is enabled. I don't have any other of the submodules enabled. The RDF module is disabled, as recommended.

Comments

DamienMcKenna’s picture

Category: Bug report » Support request

Can you please search your codebase for the string 'article:publisher' to see where else these might be coming from? This isn't a problem with the Metatag module itself, I suspect that another module installed on the site is interfering.

petterw03’s picture

I searched my codebase but the string turned up no results. Is there any other way to figure out what module is causing the conflict?

petterw03’s picture

Status: Active » Fixed

Nevermind, I found the error now in a custom module. Thanks for the help!

DamienMcKenna’s picture

Glad you were able to get to the bottom of it!

Status: Fixed » Closed (fixed)

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