Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
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
Comment #1
DamienMcKennaCan 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.
Comment #2
petterw03 CreditAttribution: petterw03 commentedI searched my codebase but the string turned up no results. Is there any other way to figure out what module is causing the conflict?
Comment #3
petterw03 CreditAttribution: petterw03 commentedNevermind, I found the error now in a custom module. Thanks for the help!
Comment #4
DamienMcKennaGlad you were able to get to the bottom of it!