Comments

dotidentity’s picture

Error disappears when I uninstall Open Graph meta tags

socialnicheguru’s picture

I get the same error. will try removing open graph meta tags

Chris Charlton’s picture

It appears Metatag module isn't clearing out any add-on entries when they are disabled or uninstalled (including the OpenGraph add-on, and any custom Metatag add-ons). My Smart App Banners add-on for Metatag module is experiencing this issue at the moment.

Note: I am running version 7.x-1.0-alpha6.

damienmckenna’s picture

Title: Error metatag_get_instance() » Error metatag_get_instance() after uninstalling metatag_opengraph
Version: 7.x-1.0-alpha2 » 7.x-1.x-dev

I need to test this.

damienmckenna’s picture

Ok, yes, the bug persists.

damienmckenna’s picture

Status: Active » Needs review
StatusFileSize
new399 bytes

This is a problem with how the module works. When a meta tag's configuration is unavailable, due to a module being either disabled or uninstalled, any data that depended on that module will still be loaded, thus Metatag tries to load the necessary classes and display it. Obviously there's no configuration available for an invalid meta tag, so the module currently displays a warning. This patch removes the code that displays the warning message because Dave Reid felt in #1771080: Uninstall Hook that the module should continue to work.

damienmckenna’s picture

Status: Needs review » Fixed

Committed.

damienmckenna’s picture

Status: Fixed » Closed (fixed)

Last night saw the release of 7.x-1.0-beta1, so I'm closing all these "fixed" issues in the interest of tidying up the issue queue. Thank you all for your help getting us to this point!