I'm running into a strange bug on my site when using MetaTag. I've tried both the current stable release and the latest dev release (as of today 11/29/12). For some reason, the zero's are getting chopped off of my URL's when using tokens, even when the token doesn't contain the port number (I tried concatenating the string containing the base URL with the relative path token, but it still chopped it). I've tried several of the various URL tokens and they all chop off the zeros in my port number. For example:
Open Graph URL: http://web.clatsopcc.edu:8000[current-page:url:relative]
Results in: <meta property="og:url" content="http://web.clatsopcc.edu:8/student-resources/student-login-help" />
Dublin Core Relation: [current-page:url]
Results in: <meta property="dcterms.relation" content="http://web.clatsopcc.edu:8/student-resources/student-login-help" />
Twitter Page URL: [current-page:url:absolute]
Results in: <link property="twitter:url" content="http://web.clatsopcc.edu:8/student-resources/student-login-help" />
However, if I just type text and don't use a token, it works fine.
Open Graph URL: http://web.clatsopcc.edu:8000
Results in: <meta property="og:url" content="http://web.clatsopcc.edu:8000" />
Comments
Comment #0.0
jlea9378 commentededit
Comment #1
damienmckennaI haven't been able to reproduce this, do you have the latest version of the Token module and Drupal core?
Comment #2
jlea9378 commentedDrupal core 7.17
Token 7.x-1.4
Comment #3
damienmckennaDo you have any custom modules, or theme preprocessing functions, that might be altering the output? I'm sorry but I just cannot see any way that Metatag is responsible for this.
Comment #4
jlea9378 commentedI don't know if there is anything installed that could be the culprit. It's worth mentioning that I have also noticed that URL aliases created by PathAuto strip out the number 1. This is unusual and unexpected behavior. It's not supposed to do that... it could be related? They both use Tokens I believe. I poked around on the Tokens issue list but didn't see any posts related to this.
Attached is a list of my enabled modules if that helps.
Let me know if you want me to try disabling some modules.
Comment #5
damienmckennaOk, the fact that the first item happens suggests it is not a Token problem but something funny in the theming. You might try updating the base theme as a starting point.
Comment #6
jlea9378 commentedBoth Fusion Core and Marinelli were already up to date. The available updates page I sent you lied because I had a second child theme (for mobile devices) that had an outdated info file which contained the wrong version number. I fixed that .info file and now both core themes display as up to date:
Up to dateok
Fusion 7.x-2.0-beta2
Includes: Clatsop Mobile, Fusion Core
Depends on: Fusion Core
Required by: Clatsop Mobile
Up to dateok
Marinelli 7.x-3.0-beta11
Includes: Marinelli
Fixing that .info file had no impact on the problem with the meta tags/tokens.
Comment #7
damienmckennaStep 1: Try one of the core themes, see if that makes a difference.
Step 2: Disable each module until you find the culprit.
Comment #8
jlea9378 commentedWell I tried switching to Garland and disabled all other themes, then cleared cache, but that didn't help.
I'll try step 2 when I get a chance. There are a lot of possibilities, so that could take a few days. I'll let you know how it goes.
Comment #9
jlea9378 commentedThe culprit is: Universally Unique IDentifier 7.x-1.0-alpha3
There is a newer dev version. I will try that and let you know if it helps.
Comment #10
jlea9378 commentedAfter installing the latest dev of UUID, running update.php, and then clicking "Generate Missing UUID's" on the admin page, I am no longer experiencing this issue.
Comment #11
damienmckennaExcellent! Glad you were able to get to the bottom of it!
Comment #11.0
damienmckennaedit2