Hello,

I'm adding a metatag by path, to be used with the Article node type (the default Article content type). In the Open Graph Image field, I'm using the Token [node:field_article_image]. I'm not changing anything else from the proposed or default values. When I try to save this metatag definition, I get the error message: "The Open Graph image is using the following invalid tokens: [node:field_article_image]."

If I add a true URL (like http://vinotopia.be/sites/default/files/styles/thumbnail/public/drupalvi... ) then the metatag is saved without any problem.

I'm using
Drupal Core 7.16
Chaos Tools 7.x-1.2
Token 7.x-1.4
Context 7.x-3.0-beta4

Anyone any clue?

Thanks & cheers --Mike

CommentFileSizeAuthor
#2 121030 node-screenshot.jpg188.85 KBvinotwit
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

DamienMcKenna’s picture

Title: The Open Graph image is using the following invalid tokens: [node:field_article_image]. » The Open Graph image is using the following invalid tokens: [node:field_article_image]
Category: bug » support
Status: Active » Postponed (maintainer needs more info)

Do you have the latest version of Token installed? Have you verified via the token browser popup that this token is still valid? Can you please attach a screenshot of the node tokens that it shows in the popup?

Out of interest, have you tried adding a new Metatag configuration for that specific content type to see if that would work instead? You do that on the the Metatag settings page (admin/config/search/metatags) - just click "Add a meta tag default" and select the content type you want to use.

vinotwit’s picture

FileSize
188.85 KB

Hi Damien,

Last version of Token installed - in fact, everything is last available version. I'm adding tokens only through the pop-up, so I assume the token is valid - screen shot attached.

But your suggestion is more interesting... Adding the token in a new Article Metatag default DOES work, and now the Facebook share works perfectly. In a way that's good because that's a solution for me (and thank you very mucj for that), but maybe it makes the bug a bit stranger?

Thanks --Mike

vinotwit’s picture

Issue summary: View changes

bug

DamienMcKenna’s picture

Issue summary: View changes
Status: Postponed (maintainer needs more info) » Fixed

This can happen when EntityToken is installed, try changing the token to [node:field-article-image] instead.

Status: Fixed » Closed (fixed)

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