Wordpress - Page fetched successfully - no metatags found

cards
wordpress

#1

Description of issue:
I am running Wordpress with the Yoast SEO plugin. For years, this plugin has allowed us to generate twitter meta tags for the Twitter Cards. All of a sudden, some of our posts are unable to generate twitter cards. The meta data is found on all posts, even the ones the Card Validator says doesn’t have meta tags. Any ideas why the meta tags are getting picked up for some posts but not all? I am even able to see the meta tags in a CURL command:

curl -A Twitterbot http://collegead.com/pepperdine-university-13/ |grep twitter
<meta name="twitter:description" content="The Assistant Director of Compliance is responsible for monitoring and documenting compliance with the NCAA and West Coast Conference legislation for Pepperdine Athletics. Duties include: Monitor compliance with NCAA recruiting and CARA legislation. Coordinate the monitoring of recruiting logs and CARA hours within ARMS. Assist [&hellip;]" />
<meta name="twitter:title" content="PEPPERDINE UNIVERSITY - CollegeAD" />
<meta name="twitter:site" content="@CollegeAD" />
<meta name="twitter:image" content="http://collegead.com/wp-content/uploads/2016/12/PEPPERDINE-UNIVERSITY.png" />
<meta name="twitter:creator" content="@collegead" />

URL affected (must be public):
Working URL: http://collegead.com/focus-on-the-whole-team-better-teammate/
Non Working URL: http://collegead.com/pepperdine-university-13/

Troubleshooting steps attempted [note that we will not prioritise posts unless there is evidence of following the troubleshooting guides]:


#2

Anyone have any ideas? I seem to be suffering the same issue that was mentioned here: No metatags found, but I can see them.


#3

Agreed, I can see your tags, but fetching that URL via curl returns

HTTP/1.1 500 Internal Server Error

If we see an error like that, it doesn’t matter if the page and tags are returned, the crawler ignores them.


#4

@andypiper, what are you doing to generate the 500 error? I am using:

curl -A Twitterbot http://collegead.com/pepperdine-university-13/

but I don’t see any errors.


#5

We were able to discover the source of the error. We had a syntax error in some of our theme’s code that was triggering the 500 response to twitter bot. Thanks for pointing this out @andypiper.