The AMP version of that post loads successfully: https://redpillersi.pl/kobiet-sie-nie-bije/amp/
On the non-AMP version of that post, if you look at the .entry-content
element you can see that it contains the following script being printed on the frontend:
<script>(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.async=true;
js.src = "//connect.facebook.net/pl_PL/all.js#xfbml=1&appId=395202813876688";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>
This script is invalid AMP so it is being removed. In previous versions of the AMP plugin, scripts like this would silently be removed without warning you. Now in v0.7 the plugin is informing you that there is content that is removed.
In looking at the source, I can see that this is coming from the easy-facebook-likebox plugin. In particular, it is probably coming from the efb_likebox
shortcode.
The fastest way to suppress this validation error would be to override the shortcode in AMP with some plugin code like (untested):
add_action( 'template_redirect', function() {
if ( function_exists( 'is_amp_endpoint' ) && is_amp_endpoint() ) {
add_shortcode( 'efb_likebox', '__return_empty_string' );
}
}, 9 )
Put code like that in your theme’s functions.php
or to a custom plugin.
What would be better instead of __return_empty_string
is to instead provide an AMP equivalent to the Facebook likebox: https://www.ampproject.org/docs/reference/components/amp-facebook-page