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 ![]()
$page ![]()
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 ![]()
$page ![]()
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
Comment #1
damienmckennaYour 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.
Comment #2
waveer commentedI 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.
Comment #3
damienmckennaDid you make sure to run all of the database updates?
Comment #4
damienmckennaYou might also try the patch from #1919070: Fix any meta tags that may have been serialized twice to see if that resolves the problem.
Comment #5
waveer commentedIs 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.
Comment #6
damienmckennaThat patch has not been committed yet, am going to do so tomorrow.
Comment #6.0
damienmckennaAdd something about other version metatag
Comment #7
damienmckennaThis should have been working for some time now.