【发布时间】:2013-01-08 23:07:00
【问题描述】:
我正在开发一个 WordPress 网站,但标题中发生了一件奇怪的事情。
它在标题和内容上方给了我一个:
当页面未找到时,这是一条 GoDaddy 消息(我相信?)。我想,因为这是 WordPress,所以它是一个 PHP 包含,只是不存在或被移动了。这是该区域的源代码。这是一张表(我再次假设它是动态生成的):
<table width="85%" border="1" bordercolor="#000000" cellspacing="0" cellpadding="3">
<tbody><tr>
<td bgcolor="#e5dccd">
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tbody><tr>
<td width="40%"><img src="http://images.godaddy.com/hosting/hdr_sorry_small.gif" border="1" bordercolor="#000000"></td>
<td align="CENTER"><h2 style="font-family: arial, sans-serif">Page Not Found</h2></td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr>
<td>
<p style="margin-left: 10px; margin-right: 10px; margin-top: 10px; margin-bottom: 10px; font-size: 10pt; font-family: arial, sans-serif">
The page you tried to access does not exist on this server. This page may not exist due to the following reasons:
</p><ol><li style="font-size: 10pt; font-family: arial, sans-serif"><strong>You arethe owner of this web site and you have not uploaded</strong> (or incorrectly uploaded) your web site. For information on uploading your web site using FTP client software or web design software, <a href="http://ftphelp.secureserver.net/index.html">click here for FTP Upload Information</a>.
<p>
</p></li><li style="font-size: 10pt; font-family: arial, sans-serif"><strong>The URL that you have entered in your browser is incorrect.</strong> Please re-enter the URL and try again.<p>
</p></li><li style="font-size: 10pt; font-family: arial, sans-serif"><strong>The Link that you clicked on incorrectly points to this page.</strong> Please contact the owner of this web site to inform them of this situation.</li></ol>
</td>
</tr>
</tbody></table>
<div id="main">
我知道这有点乱,但我只是表明这是一个正在生成的表格。我展示这个的原因是因为这里是 WordPress 模板中的代码:
<body <?php if(function_exists('body_class')) body_class(); ?>>
<div id="main">
您会看到在 body 和 div id="main" 之间没有内容。不过,该表正在那里生成。所以我不知道哪个链接坏了,也不知道此时如何追踪需要修复的内容。任何帮助将不胜感激。谢谢!
【问题讨论】:
-
这看起来像是某种 iframe。我从来没有见过 WordPress 添加这样的东西。您可以分享您网站的网址吗?
-
是的,该网站是 newellstrength.com(客户)。它看起来像一个 iFrame,但我不知道为什么会生成它,因为代码中没有任何内容可以推断会发生这种情况。
-
我以前从未见过这个。有一些东西正在将此内容添加到文档的
<head>中。我认为你必须禁用所有插件,看看这是否会消失。如果是这样,请一一启用。如果没有,请确保您的主题的header.php没有损坏。 -
好的,很好的插件调用。我会试试的。谢谢,好主意!
标签: php html wordpress http-status-code-404