backdrop-contrib / metatag

Add structured metadata, aka "meta tags", for various pages on your site.
GNU General Public License v2.0
3 stars 15 forks source link

errors on config import #2

Closed jenlampton closed 7 years ago

jenlampton commented 7 years ago
 Fatal error: Cannot use object of type Config as array in backdrop/modules/contrib/metatag/metatag.module on line 400
jenlampton commented 7 years ago

And another one:

Configuration sync failed. The following errors were reported:
    The configuration "metatag.instance.global" must have a "label" attribute specified.

And another:

Recoverable fatal error: Object of class Config could not be converted to string in metatag_config_create() (line 281 of backdrop/modules/contrib/metatag/metatag.module).
jenlampton commented 7 years ago

Hm, it looks like these might be related to my own config situation being a little snafu'd. I'm going to resolve manually and then see if I can reproduce these issues. Closing for now.

jenlampton commented 7 years ago

This looks valid, I've traced the problem back to metatag_config_create() which appears to be accidentally invoking hook_config_create(). The good news is that function wasn't being called by anything else, so I have removed it. I'll test this on my site for a bit, but if nothing is affected it should be a quick fix.

jenlampton commented 7 years ago

Removed, and will be fixed in the next release.