In my production site the metatag dont works at node page, but works at front page.

I use the below code debug it at template.php,

function theme_preprocess_page(&$vars){
  dpm($vars);
}

function theme_preprocess_node(&$vars){
  dpm($vars);
}

In the Production site, the result:

$node Only local images are allowed.
$page Only local images are allowed.

It is really strange

And i also install a new drupal site(7.21) and test
I enable the locale and content translate module like my production site.

The test site works fine. The result is same when i debug $page and $node.

$node Only local images are allowed.
$page Only local images are allowed.

So can someone help me analyse it, what is the problem.

And I also install a previous version metatag, the version is : version = "7.x-1.0-beta1+20-dev"
It works fine at my production site.

I am crazy.Hope someone can help me.

Thanks!

Comments

damienmckenna’s picture

Status: Active » Fixed

Your version is several months old and has been resolved, please update to the newest -dev release but make sure to test it on a copy of your site first.

waveer’s picture

I download the lastest -dev version, and test it, it doesnt works at one of my site, and it works at a new installed drupal site for test.

The version "7.x-1.0-beta1+20-dev" i referred, it works for my problem site, i know it is a old version, so i want to use the latest version.

But the latest version doesnt works at my production site, it works at my test sites.

And the metatags array in the $page and $node is different, This make me crazy.

damienmckenna’s picture

Status: Fixed » Postponed (maintainer needs more info)

Did you make sure to run all of the database updates?

damienmckenna’s picture

You might also try the patch from #1919070: Fix any meta tags that may have been serialized twice to see if that resolves the problem.

waveer’s picture

Is this patch already in the newest -dev version?

I have seen the metatag_update_7009 at the metatag.install.

I will use the old version temporarily, then I have time, I will try to find problem.

damienmckenna’s picture

That patch has not been committed yet, am going to do so tomorrow.

damienmckenna’s picture

Issue summary: View changes

Add something about other version metatag

damienmckenna’s picture

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

This should have been working for some time now.

Status: Fixed » Closed (fixed)

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