Invalid card type error message


#1

I try to create Twitter Card from https://dev.twitter.com/cards
I have gone to "Try them " and selected my “Card catalog”
I chosed “Summary”

Twitter card
site not required
title required
description required
*creator not required
*image not required
domain automatic
Twitter says *creator & *image are not required, but everytime I run a validate, these
two sections are flagged as error and missing. However filling the information to these
two locations still not fix the problem either.

I’m using Zyro builder at http://us.zyro.com/
I embedded following codes in my webpage.

<meta name="twitter:card" content="summary" <meta name="twitter:site" content="@YukiSuda2" <meta name="twitter:title" content="Angry Little Girls" <meta name="twitter:description" content="testing twitter card" <meta name="twitter:creator" content="@YukiSuda2" <meta name="twitter:image:src" content="http://4.bp.blogspot.com/-Ljg4MNs-eAE/ThUyozs68AI/AAAAAAAAFIE/JEvAd7xH4y8/s1600/f1-hot-girls01.jpg" <meta name="twitter:domain" content="" <meta name="twitter:app:name:iphone" content="" <meta name="twitter:app:name:ipad" content="" <meta name="twitter:app:name:googleplay" content="" <meta name="twitter:app:url:iphone" content="" <meta name="twitter:app:url:ipad" content="" <meta name="twitter:app:url:googleplay" content="" <meta name="twitter:app:id:iphone" content="" <meta name="twitter:app:id:ipad" content="" <meta name="twitter:app:id:googleplay" content=""

in this website: http://jasmin.resellrightsnetwork.com/Home/

But it didn’t work out. In the Validation process I got red dot and it said
"Invalid card type" I try another code types too, but it never work out for me.

Why I cannot create Twitter card? I’m inserting meta in HTML.
Also I would like to know how I can add Twitter card in Wordpress, Joomla and Drupal, too


#2

Trying with another site too at
http://jrestaurant.resellrightsnetwork.com/w/
Using Wordpress Version 3.8.1
Embed Twitter meta tags in following location: Appearance-> Editor-> Head.php file
(Am I embedding Twitter Meta Tags in right PHP file location? )

Changed “Twitter:card” content=“summary” tag to

Because it gives me invalid card type error.

I read about *Robot.txt, but it is confusing for me, I cannot locate robot.txt in my WordPress, and some users say it is generate *automatically, while some says it has to be create manually. Also where this file should be located?
(https://dev.twitter.com/discussions/12671
https://dev.twitter.com/discussions/10931)
*WordPress Support Forum - believe WordPress itself creates the robots.txt file and it is a virtual file, meaning there won’t be a hard copy on your server for you to edit.


#3

https://dev.twitter.com/docs/cards/getting-started
Twitter uses the User-Agent of Twitterbot (with version, such as *Twitterbot/1.0), which can be used to create an exception in your robots.txt file. (Is *Twitterbot/1.0 most up to date version? Or is it(Twitterbot) switches as API1.0 moved up to version API1.1?)
Robot.txt
For example, here is a robots.txt which disallows crawling for all robots except Twitter’s fetcher:
User-agent: Twitterbot
Disallow:

User-agent: *
Disallow: /

another example, which specifies which directories are allowed to be crawled by Twitterbot (in this case, disallowing all except the images and archives directories)
User-agent: Twitterbot
Disallow: *

Allow: /images
Allow: /archives

In both above examples, it seems Asterisks(*) mark is used as wild card but not in set as .

Your server’s robots.txt file must be saved as plain text with ASCII character encoding. To verify this, you can run the following command:
$ file -I robots.txt
robots.txt: text/plain; charset=us-ascii

Despite the example given I’m not sure how to do this from WordPress. Do I have to get in to PHP?

Twitter Card analytics dashboard
it takes 24hrs
https://support.twitter.com/articles/20170934-twitter-card-analytics-dashboard

What is in my Head.php right now

<?php /* * Print the tag based on what is being viewed. */ global $page, $paged;
wp_title( '|', true, 'right' );

// Add the blog name.
bloginfo( 'name' );

// Add the blog description for the home/front page.
$site_description = get_bloginfo( 'description', 'display' );
if ( $site_description && ( is_home() || is_front_page() ) )
	echo " | $site_description";

// Add a page number if necessary:
if ( $paged >= 2 || $page >= 2 )
	echo ' | ' . sprintf( __( 'Page %s', 'twentyeleven' ), max( $paged, $page ) );

?></title>
<?php /* We add some JavaScript to pages with the comment form * to support sites with threaded comments (when in use). */ if ( is_singular() && get_option( 'thread_comments' ) ) wp_enqueue_script( 'comment-reply' );
/* Always have wp_head() just before the closing </head>
 * tag of your theme, or you will break many plugins, which
 * generally use this hook to add elements to <head> such
 * as styles, scripts, and meta tags.
 */
wp_head();

?>

from WordPress Head.php URL http://jrestaurant.resellrightsnetwork.com/w/

#4

You should remove the empty tags (the ones with content="").


#5

@vincentisambart コメント有難うございます。Thank you for your comment. So I don’t have to worry about robot.txt file?


#6

Current Twitter Card Meta Tags in header.php in WordPress ver 3.8.1
https://dev.twitter.com/discussions/12665
To @vincentisambart @rchoi

<?php /* * Print the tag based on what is being viewed. */ global $page, $paged;
wp_title( '|', true, 'right' );

// Add the blog name.
bloginfo( 'name' );

// Add the blog description for the home/front page.
$site_description = get_bloginfo( 'description', 'display' );
if ( $site_description && ( is_home() || is_front_page() ) )
	echo " | $site_description";

// Add a page number if necessary:
if ( $paged >= 2 || $page >= 2 )
	echo ' | ' . sprintf( __( 'Page %s', 'twentyeleven' ), max( $paged, $page ) );

?>
<?php /* We add some JavaScript to pages with the comment form * to support sites with threaded comments (when in use). */ if ( is_singular() && get_option( 'thread_comments' ) ) wp_enqueue_script( 'comment-reply' );
/* Always have wp_head() just before the closing </head>
 * tag of your theme, or you will break many plugins, which
 * generally use this hook to add elements to <head> such
 * as styles, scripts, and meta tags.
 */
wp_head();

?>


#7
/** */ /** */ /** */ /** */ /** */ /** */ /** */ <?php /* * Print the tag based on what is being viewed. */ global $page, $paged;
wp_title( '|', true, 'right' );

// Add the blog name.
bloginfo( 'name' );

// Add the blog description for the home/front page.
$site_description = get_bloginfo( 'description', 'display' );
if ( $site_description && ( is_home() || is_front_page() ) )
	echo " | $site_description";

// Add a page number if necessary:
if ( $paged >= 2 || $page >= 2 )
	echo ' | ' . sprintf( __( 'Page %s', 'twentyeleven' ), max( $paged, $page ) );

?></title>
<?php /* We add some JavaScript to pages with the comment form * to support sites with threaded comments (when in use). */ if ( is_singular() && get_option( 'thread_comments' ) ) wp_enqueue_script( 'comment-reply' );
/* Always have wp_head() just before the closing </head>
 * tag of your theme, or you will break many plugins, which
 * generally use this hook to add elements to <head> such
 * as styles, scripts, and meta tags.
 */
wp_head();

?>


#8

1.meta name=“twitter:card” content="summary_large_image"
2. meta name="twitter:image:src"
3. content="http://jrestaurant.resellrightsnetwork.com/w/wp-content/uploads/2014/02/79359.jpg"
4.meta name=“twitter:domain” content=“http://jrestaurant.resellrightsnetwork.com/w/
5.meta name=“twitter:site” content=”@yukisuda2"
6.meta name=“twitter:creator” content=”@yukisuda2"
7.
8.
9.
10.
11.
12.
13.meta name=“twitter:description” content="Just another WordPress site"
14.meta name=“twitter:title” content="My WordPress site"
15.meta name=“twitter:url” content=“http://jrestaurant.resellrightsnetwork.com/w/


#9

First one: http://jasmin.resellrightsnetwork.com/Home/

When I view source of that page I do not see any twitter:card on it. When I look at “About” or “Contact” pages, I also do not see any twitter:card on it. I am not familiar with Zyro, so I’m not sure what technique you are using.

Second one: http://jrestaurant.resellrightsnetwork.com/w/

When I view source, tags look OK. Through validator, I see what you say: the twitter:site changes to the URL. I’ve updated our back-end to have the default site user @yukisuda2, and you should be OK to go with implementing your meta tags. Here is what I see when I tweet that URL:

http://imgur.com/b1j6hxe


#10

Hi @rchoi Hope you are feeling better today. Thank you for taking a time to check my issue.
1st Site, Jasmin, is using Joomla and I’m having hard time locating section. If you could not see the Meta Tags,
probably I have put it in wrong location, mainly because of Zyro service. Can you please tell me how you are seeing source? Are you using Browser to checking source code or something like DreamWeaver?

For 2nd site: Do I still have to set Robot.txt to accept Twitterbot? https://dev.twitter.com/docs/cards/getting-started
URL Crawling & Caching
Your server’s robots.txt file must be saved as plain text with ASCII character encoding. To verify this, you can run the following command:
$ file -I robots.txt
robots.txt: text/plain; charset=us-ascii

Above example is given to us, but how can I run this command. Is this command run from PHP database or from WordPress? If so how?

I believe this process is no longer accurate.
FROM drop-down MENU SETTING I cannot add user as described in the link.


Twitter Card analytics dashboard
Using Twitter Card analytics
Twitter Card analytics will be available to your primary account and other Twitter accounts to which you grant access. Allowing Analyst access (or greater) for a Twitter account will enable viewing of all analytics dashboards.

To enable Analyst access for an account, follow these steps from your primary account:

1.Log in to the primary account.
2.In the Accounts drop-down, select “*Edit access to account.” (*SEEMS like out of date INFO)
3. Click “Add more users.”
4.Enter the account @ username and set the preferred level of access.


#11

1 - We are using the browser to see the source code
2 - If there is no /robots.txt, it means no restriction so you do not have to worry about it.


#12

Thank you for reply @vincentisambart Are you feeling OK, @rchoi ?

  1. OK, one less thing to consider.

  2. don’t have to worry Robot.txt
    (Even so want to know how to use
    $ file -I robots.txt
    robots.txt: text/plain; charset=us-ascii command.)

  3. Adding user. https://support.twitter.com/articles/20170934-twitter-card-analytics-dashboard
    No such function in pull down menu; Edit profile or Setting do not have this add more user function.

  4. How to activate Twitter Analytics? Twitter says I do not have access to Twitter Analytics.
    https://analytics.twitter.com/about
    the following meta tag is in my WordPress web pages

Is this something to do with Card Validator- Validate & apply changing my @yukisuda to URL @http://jrestaurant.resellrightsnetwork.com/w/ ?

#13

Logged in as @yukisuda2 you should be able to see your site data in https://analytics.twitter.com/


#14

It should, but it still refusing the access. I wish I could attach a picture here to show you.
@yukisuda2 does not have access to Twitter Analytics. If you’re a publisher, developer, or advertiser, learn how to get access.

I know you are busy, but can you answer me my other questions, or refer me to post that may have answers?

Why I cannot get Analytics access? Is this something to do with My computer settings, OS system, Browsers, virus protection software? Or is this something to do with Twitter side, regional server?


#15

@rchoi
@vincentisambart
@buster
It didn’t work!!! Picture attached in Twitter post.


#16

Wait 48 hours and if you still do not have access, reply to this post and I will investigate again.


#17

Thank you for ignoring all of my tweet. It seem like one excuse after another. I don’t have such a luxuary of time like you.


#18

I have waited 48 hrs and still have not been able to gained access or recieved a confirmation an email to Player Cards after being approved. Could you please investigate for the domain name: zaptones.com. Thank You.


#19

@Zaptones , Thank you for sharing your experience, too.