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

jlea9378’s picture

Issue summary: View changes

edit

damienmckenna’s picture

Status: Active » Postponed (maintainer needs more info)

I haven't been able to reproduce this, do you have the latest version of the Token module and Drupal core?

jlea9378’s picture

Status: Postponed (maintainer needs more info) » Active

Drupal core 7.17
Token 7.x-1.4

damienmckenna’s picture

Do 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.

jlea9378’s picture

I 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.

damienmckenna’s picture

Category: bug » support
Priority: Normal » Minor

Ok, 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.

jlea9378’s picture

Both 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.

damienmckenna’s picture

Step 1: Try one of the core themes, see if that makes a difference.

Step 2: Disable each module until you find the culprit.

jlea9378’s picture

Well 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.

jlea9378’s picture

The 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.

jlea9378’s picture

After 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.

damienmckenna’s picture

Status: Active » Closed (works as designed)

Excellent! Glad you were able to get to the bottom of it!

damienmckenna’s picture

Issue summary: View changes

edit2