The method metatag_page_build has hardcoded information about the 'content' region.
While this works for most of the themes, there might be a theme that doesn't have the content region (like mine).

I will attach a patch, that retrieves the system main region for the current theme, as soon as I know the ticket number.

CommentFileSizeAuthor
#1 retrieve_region-1431426.patch1.62 KBwjzijderveld

Comments

wjzijderveld’s picture

StatusFileSize
new1.62 KB
David_Rothstein’s picture

Status: Patch (to be ported) » Needs work

Themes in Drupal 7 are required to have a 'content' region (see e.g. http://drupal.org/node/171205#regions and http://drupal.org/node/254940#content-region), so I think this is probably "won't fix".

That said, the patch needs work either way because it will lead to fatal errors if the Block module is not installed, right?

See also #1434288: Metatags aren't rendered if there are no blocks in the "Content" region, by the way.

wjzijderveld’s picture

Status: Needs work » Closed (won't fix)

Ah, I did Google, if content region might be required, but didn't find that second link. Thanks!
Also, I didn't realize the Block module was a optional one. I'm not developing for Drupal that long, again thanks!

I did search for tickets about content, but couldn't find the one you mention. Or I can't search, or the search function isn't very good :-)

I agree it's a "won't fix", thanks for you response!