When i updated the module to the latest dev version, i find a lot of warning messages in the site log:
Notice: Undefined variable: value in metatag_set_preprocess_variable() (row 1110 from /home/www/1dev/sites/all/modules/metatag/metatag.module).
Warning: Missing argument 2 for metatag_set_preprocess_variable() in metatag_set_preprocess_variable() (row 1108 from /home/www/1dev/sites/all/modules/metatag/metatag.module).
Warning: Missing argument 3 for metatag_set_preprocess_variable() in metatag_set_preprocess_variable() (row 1108 from /home/www/1dev/sites/all/modules/metatag/metatag.module).
All forks fine with 7.x-1.0-alpha6+1-dev, but i have a problem only with latest dev and latest stable version.
Comments
Comment #1
damienmckennaOnly the page title meta tag uses the metatag_set_preprocess_variable function, and it's strange that it wouldn't have a variable. Did you clear your site cache after updating?
Comment #2
sun-fire commentedDamienMcKenna, thanks for reply. The problem was into my template file. It was not a module problem.
In my template.php file I use such code to override title for the certain pages based on current path. This is some hackish way, because I override veriable in preprocess_page function:
What's the right way to accomplish this with newer version of the module?
Comment #3
sun-fire commentedComment #4
damienmckennaNow that we've a) fixed the per-entity functionality, b) bundled Metatag Context, you shouldn't be hacking templates to do per-page output.