Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
Hi,
I come across an issue while working with metatag and profile2 modules . Issue is that when i create some fields with profile2 And if an user logged in into the drupal , its username get cached as user title for user page and when another user logged in into the drupal, Application is showing the previous user's username in the title of the /user page. Please help me how to deal with this issue.
Comments
Comment #1
Dave ReidIf you disable the Meta tag module this problem goes away? I am having a difficult time believing it's the real cause behind it.
Comment #2
vaibhavsingla CreditAttribution: vaibhavsingla commentedHi dave,
If i am disabling any of these (metatag, profile2) modules, Problem goes away. But i can't disable any of these modules. This problem is coming as i enable both of these modules. Please suggest any solution for that.
Comment #3
DamienMcKennaWhat token is being used for the title field?
Comment #4
tahiticlic CreditAttribution: tahiticlic commentedMaybe you should check this : https://drupal.org/node/2162397
Comment #5
DamienMcKennaComment #6
moehac CreditAttribution: moehac commentedI have multiple entities running off same url, in my case /user would invoke user entity and profile2 entity based on session. Page title for /user was getting cached until I fixed it by doing the following instructions I found in the README file:
Text in README.txt:
4. As the meta tags are output using Tokens, it may be necessary to customize
the token display for the site's entities (content types, vocabularies,
etc). To do this go to e.g., admin/structure/types/manage/article/display,
in the "Custom Display Settings" section ensure that "Tokens" is checked
(save the form if necessary), then to customize the tokens go to:
admin/structure/types/manage/article/display/token
My issue is not resolved for other meta tags on /user (example: Open Graph, Twitter card tags) which are still caching values. Any suggestions?
Comment #7
DamienMcKennaComment #8
DamienMcKennaWe're fixing this bug in #2162397: Metatags with multiple entities on page.