Wordpress 在Facebook上共享时出现错误404

Wordpress 在Facebook上共享时出现错误404,wordpress,facebook,share,Wordpress,Facebook,Share,这个问题已经发布并解决了很多,但由于某些原因,我仍然无法将我的新帖子(使用Wordpress)分享到Facebook,无论是直接在Facebook上还是在我的帖子上使用共享插件(通过Jetpack)。在这两种情况下,它都返回404 not found。(没有图片,没有摘录,但单击后会在我的帖子上正确重定向)。 几天前还不错 在这里提问之前,我已经做了几天的研究,我看到的所有解决方案都不适合我。 我尝试使用Facebook链接调试器,一个类似Facebook的修复插件(显然对某人有用),用www调

这个问题已经发布并解决了很多,但由于某些原因,我仍然无法将我的新帖子(使用Wordpress)分享到Facebook,无论是直接在Facebook上还是在我的帖子上使用共享插件(通过Jetpack)。在这两种情况下,它都返回404 not found。(没有图片,没有摘录,但单击后会在我的帖子上正确重定向)。 几天前还不错

在这里提问之前,我已经做了几天的研究,我看到的所有解决方案都不适合我。 我尝试使用Facebook链接调试器,一个类似Facebook的修复插件(显然对某人有用),用www调试链接,添加一些我在相关文章中找到的代码等

我经常被重定向到这个帖子() 在思考了很多可能导致这个问题的原因之后,我甚至认为,如果我在Windows上更改时区后,Wordpress会认为我“更早”发布了它,那么这是否可能(因为我的帖子没有安排)发生呢

因此,我最终认为它与metas有关,不幸的是,这对我来说仍然是一个谜,因为我认为我的标题没有正确编写

以下是我在无法分享的特定帖子上使用Facebook调试器时得到的信息:

Critical Errors That Must Be Fixed
Bad Response Code   URL returned a bad HTTP response code.
Warning

Errors That Must Be Fixed
Missing Required Property   The 'og:type' property is required, but not present.

Notice
Warnings That Should Be Fixed
Inferred Property   The 'og:url' property should be explicitly provided, even if a value can be inferred from other tags.
Inferred Property   The 'og:title' property should be explicitly provided, even if a value can be inferred from other tags.
Inferred Property   The 'og:description' property should be explicitly provided, even if a value can be inferred from other tags.
不过,调试器在网站上运行良好

我真的希望你们能给我一些建议,告诉我如何让它工作。如果需要任何其他细节,我很乐意在我的帖子中添加它们


后期编辑:

所以我一直在寻找我的问题的来源。 由于某些原因,现在我甚至不能为我的“website.com”和我以前的帖子“website.com/post that to work”重新抓取信息(使用FB URL调试器),尽管我可以看到已经存在的抓取信息。(与最近的帖子不同,我既看不到现有的刮痕,也看不到新的刮痕)

根据:,我在标题中添加了所有需要的metas“og:,但没有起作用

好像已经有什么东西在叫它了,所以我安装了NGFB插件,告诉我Yoast SEO和Photon(Jetpack)有问题。 我两个都没激活,没用

我在尝试调试帖子上的链接时,在尝试重新获取信息时,仍然会遇到以下错误:

Error parsing input URL, no data was cached, or no data was scraped.
重新刮取时,在网站上自身:

显示非工作岗位的现有报废信息时

Critical Errors That Must Be Fixed
Bad Response Code   URL returned a bad HTTP response code.

Errors That Must Be Fixed
Missing Required Property   The 'og:type' property is required, but not present.

Warnings That Should Be Fixed
Inferred Property   The 'og:url' property should be explicitly provided, even if a value can be inferred from other tags.
Inferred Property   The 'og:title' property should be explicitly provided, even if a value can be inferred from other tags.
Inferred Property   The 'og:description' property should be explicitly provided, even if a value can be inferred from other tags.
单击时,请准确查看我们的刮板为您的URL所看到的内容

Critical Errors That Must Be Fixed
Bad Response Code   URL returned a bad HTTP response code.

Errors That Must Be Fixed
Missing Required Property   The 'og:type' property is required, but not present.

Warnings That Should Be Fixed
Inferred Property   The 'og:url' property should be explicitly provided, even if a value can be inferred from other tags.
Inferred Property   The 'og:title' property should be explicitly provided, even if a value can be inferred from other tags.
Inferred Property   The 'og:description' property should be explicitly provided, even if a value can be inferred from other tags.
-非工作职位:

-网站本身:


最后,我现在的头部分:

<!doctype html>
<!--[if lt IE 7]> <html class="no-js ie6 oldie" <?php language_attributes(); ?>> <![endif]-->
<!--[if IE 7]>    <html class="no-js ie7 oldie" <?php language_attributes(); ?>> <![endif]-->
<!--[if IE 8]>    <html class="no-js ie8 oldie" <?php language_attributes(); ?>> <![endif]-->
<!--[if gt IE 8]><!--> <html <?php language_attributes(); ?>> <!--<![endif]-->
<head>

<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta http-equiv="Content-Type" content="
<?php bloginfo('html_type'); ?>;
charset=<?php bloginfo('charset'); ?>" />
<meta charset="<?php bloginfo( 'charset' ); ?>" />
<meta name="description" content="Description (changed)"/>
<meta name="author" content="Author (changed)"/>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"/>
<meta property="og:title" content="Title (changed)" />
 <meta property="og:site_name" content="Site name (changed)"/>
<meta property="og:description" content="Description (changed)" />
<meta property="og:url" content="http://website.fr" />



<link rel="shortcut icon" href="<?php echo THEME_DIR; ?>/favicon.ico" />
<link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> RSS2 Feed" href="<?php bloginfo('rss2_url'); ?>" />
<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />


<title><?php wp_title(); ?> - <?php bloginfo( 'name' ); ?></title>

<?php wp_head(); ?>

</head>


要解决此问题,只需访问并单击“获取新的刮取信息”。事先清除网站缓存是个好主意


我仍然不知道为什么会出现此问题,我也没有使用预定的帖子,但这立即解决了我的问题。

我知道这是一篇旧帖子,但我花了一段时间才弄清楚:

在上次抓取URL的时间和方式下:检查IP地址

我发现它是一个IPV6地址,但我的网站只在IPV4上运行


IPV6地址转到了服务器的默认页面站点,该站点生成了404错误,因为URL没有给出结果。

如果系统返回HTTP状态码404,则与元标记无关。首先,当您在浏览器中请求相同的URL时,您应该检查该URL是否返回了正确的状态代码(大多数情况下为200)。(浏览器开发工具中的网络面板将帮助您验证这一点。)如果不是这样,那么您的系统设置将出现严重错误。[…][…]如果返回正确的状态码,但只有FB scraper获得404–那么你应该检查你安装的插件–也许其中一个插件将以某种方式“对抗机器人”视为自己的工作,并将FB scraper的请求识别为“坏”,因此,我试图告诉它所请求的资源将不存在。好吧,那么:1#在不起作用的页面上,我认为有问题,因为我有很多错误,这些错误在旧页面/帖子中没有出现。一张图片会有帮助:2#另一方面,工作(共享)的旧页面没有错误,也没有网络活动:我承认我真的迷失在这一切中了。。编辑:我最近更新了WP 4.2.3,这可能是问题所在吗?就像一个不干净的安装一样?这些错误似乎不是主文档的“for”,而是由嵌入到页面中的外部脚本引起的-这不应该影响FB scraper对实际文档的查看。对于文章页面本身的实际URL,显示的HTTP响应代码是什么?我想,响应代码显示在我链接的第一个图像中。使用http状态检查器,页面的URL不工作(用于共享)将返回200代码。不幸的是,这对我不起作用。我的第一篇文章引用了给出的错误代码。我仍然没有找到如何解决我的问题。我也为此挣扎了一天,在最初的3-4次“新刮”(实际上,每次尝试都会出现不同的错误)时,我也犯了同样的错误,但在尝试了几次抓取之后,所有的错误都被修复了。顺便问一下,你能给一个链接到你的网站,和一个样本页面,不获取正确的。可能更容易找到解决办法。我到处找,但仍然找不到问题所在。。url是db-super.fr。我真的很希望这能帮助你解决我的问题。我觉得这没问题。共享它没有问题,调试器显示没有任何问题。是的,我终于找到了我的问题所在,要么是我的头中的代码行错误,要么是dns问题(如其他论坛所示)!
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<meta http-equiv="Refresh" content="0;url=defaultsite">
<!-- FR -->
</head>
<body>
</body>
</html>
<!doctype html>
<!--[if lt IE 7]> <html class="no-js ie6 oldie" <?php language_attributes(); ?>> <![endif]-->
<!--[if IE 7]>    <html class="no-js ie7 oldie" <?php language_attributes(); ?>> <![endif]-->
<!--[if IE 8]>    <html class="no-js ie8 oldie" <?php language_attributes(); ?>> <![endif]-->
<!--[if gt IE 8]><!--> <html <?php language_attributes(); ?>> <!--<![endif]-->
<head>

<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta http-equiv="Content-Type" content="
<?php bloginfo('html_type'); ?>;
charset=<?php bloginfo('charset'); ?>" />
<meta charset="<?php bloginfo( 'charset' ); ?>" />
<meta name="description" content="Description (changed)"/>
<meta name="author" content="Author (changed)"/>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"/>
<meta property="og:title" content="Title (changed)" />
 <meta property="og:site_name" content="Site name (changed)"/>
<meta property="og:description" content="Description (changed)" />
<meta property="og:url" content="http://website.fr" />



<link rel="shortcut icon" href="<?php echo THEME_DIR; ?>/favicon.ico" />
<link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> RSS2 Feed" href="<?php bloginfo('rss2_url'); ?>" />
<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />


<title><?php wp_title(); ?> - <?php bloginfo( 'name' ); ?></title>

<?php wp_head(); ?>

</head>