• Resolved AlexMS

    (@hthsrtdtuk)


    I share my posts on Twitter, all was good, but recently all images are disappeared. I checked on the card validator and got this message: ERROR: No card found (Card error). What happening? Any help on this matter would be greatly appreciated. Thanks.

    • This topic was modified 5 years, 7 months ago by AlexMS.

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Sybre Waaijer

    (@cybr)

    Hello!

    I found that the minification by WP Fastest Cache failed to parse correctly. With that, the HTML markup of that page is also incorrect. Now, although browsers can cope with many errors, Twitter is less capable.

    So, I suggest flushing that page’s cache, and try debugging it again.

    Thread Starter AlexMS

    (@hthsrtdtuk)

    Thanks, I found the cause of the problem, it was an Autoptimize plugin, after it is turned off everything works fine, I will try other settings.

    Thread Starter AlexMS

    (@hthsrtdtuk)

    All the fault was this setting: Inline all CSS?

    “Inline all CSS” indeed pushes social meta-tags (or whatever they’re called) down the HTML and the applications reading the HTML only read the top part. In general “inline & defer” is the better approach (see AO FAQ for more info) but you can alternatively also force AO to inject the CSS later in the HTML, e.g. with this code snippet;

    
    add_filter('autoptimize_filter_css_replacetag','alexms_css_replacetag',10,1);
    function alexms_css_replacetag($replacetag) {
    	return array("</head>","before");
    	}

    hope this helps,
    frank (ao dev)

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Twitter ERROR: No card found’ is closed to new replies.