-
Notifications
You must be signed in to change notification settings - Fork 0
/
219 WordPress莫名错误:Fatal error Call to undefin.html
20 lines (19 loc) · 3.44 KB
/
219 WordPress莫名错误:Fatal error Call to undefin.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<html>
<head>
<title>219 WordPress莫名错误:Fatal error: Call to undefined function: wp()</title>
<basefont face="Tahoma" size="2" />
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<meta name="exporter-version" content="Evernote Windows/270217 (zh-CN); Windows/6.1.7600;"/>
<style>
body, td {
font-family: Tahoma;
font-size: 10pt;
}
</style>
</head>
<body>
<a name="2043"/>
<h1>219 WordPress莫名错误:Fatal error: Call to undefined function: wp()</h1>
<div>
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><p style="margin: 0px; padding: 5px 0px; line-height: 22px; color: rgb(51, 51, 51); font-family: 'Microsoft YaHei', Tahoma, Arial; font-size: 14px; background-color: rgb(255, 255, 255);">今早打开博客,莫名其妙的出现一行错误提示:”Fatal error: Call to undefined function: wp()”,之前好好的,啥也没动啊。想打开后台看看,结果提示错误:”Fatal error: Call to undefined function get_option() “,擦,肿么回事?</p><p style="margin: 0px; padding: 5px 0px; line-height: 22px; color: rgb(51, 51, 51); font-family: 'Microsoft YaHei', Tahoma, Arial; font-size: 14px; background-color: rgb(255, 255, 255);"> </p><p style="margin: 0px; padding: 5px 0px; line-height: 22px; color: rgb(51, 51, 51); font-family: 'Microsoft YaHei', Tahoma, Arial; font-size: 14px; background-color: rgb(255, 255, 255);">直接搜错误提示文本,发现有好些人遇到了这样的问题,也有人给出了解决办法。依葫芦画瓢,先解决问题再说。</p><p style="margin: 0px; padding: 5px 0px; line-height: 22px; color: rgb(51, 51, 51); font-family: 'Microsoft YaHei', Tahoma, Arial; font-size: 14px; background-color: rgb(255, 255, 255);"> </p><p style="margin: 0px; padding: 5px 0px; line-height: 22px; color: rgb(51, 51, 51); font-family: 'Microsoft YaHei', Tahoma, Arial; font-size: 14px; background-color: rgb(255, 255, 255);">病灶通常是出在“wp-config.php”,用ftp下载查看wp-config.php,发现所有语句都堆在了一行。网上也有人的情况是此文件变成了0kb的空文件。</p><p style="margin: 0px; padding: 5px 0px; line-height: 22px; color: rgb(51, 51, 51); font-family: 'Microsoft YaHei', Tahoma, Arial; font-size: 14px; background-color: rgb(255, 255, 255);"> </p><p style="margin: 0px; padding: 5px 0px; line-height: 22px; color: rgb(51, 51, 51); font-family: 'Microsoft YaHei', Tahoma, Arial; font-size: 14px; background-color: rgb(255, 255, 255);">需要重新配置wp-config.php。我的是没法改了(或者说改着太头疼了),删除之。然后重新键入博客首页,借用安装程序重新配置wp-config.php。基本也就是只是重新输入数据库信息,让安装程序重新生成wp-config.php。结束后,再打开首页,OK了,oyeah~</p><p style="margin: 0px; padding: 5px 0px; line-height: 22px; color: rgb(51, 51, 51); font-family: 'Microsoft YaHei', Tahoma, Arial; font-size: 14px; background-color: rgb(255, 255, 255);"> </p><p style="margin: 0px; padding: 5px 0px; line-height: 22px; color: rgb(51, 51, 51); font-family: 'Microsoft YaHei', Tahoma, Arial; font-size: 14px; background-color: rgb(255, 255, 255);">事情还没完,接下篇:<a href="http://dramatea.com/a/220" style="color: rgb(0, 68, 153); text-decoration: none;" target="_blank">WordPress莫名错误:wp-login.php登录页一片空白</a></p></div>
</div></body></html>