[英]wordpress: Fatal error: Call to undefined function is_wp_error() in wp-includes/load.php on line 339
I had my blog on live server it worked fine with my old site, I made backup of that blog folder and after upload new site I also upload that blog folder with out any change in any file but if I try to access my blog page browser shows that: 我将博客放在实时服务器上,可以在旧站点上正常工作,备份了该博客文件夹,并在上传新站点后也上传了该博客文件夹,但未对任何文件进行任何更改,但是如果尝试访问我的博客页面浏览器显示:
Fatal error: Call to undefined function is_wp_error() in /home/content/i/m/r/imranskh/html/blog/wp-includes/load.php on line 339
致命错误:在第339行的/home/content/i/m/r/imranskh/html/blog/wp-includes/load.php中调用未定义函数is_wp_error()
I googled but no clear solution found. 我用谷歌搜索,但没有找到明确的解决方案。
It would be helpful to know the site address and the version of WP you're running and what host your using, but your problem is with the MySQL database (and what language the site is in) 知道站点地址和正在运行的WP版本以及使用的主机是很有帮助的,但是问题出在MySQL数据库(以及站点使用的语言)上
Line 339 of load.php is an error check for the MySQL database table prefix. load.php的339行是对MySQL数据库表前缀的错误检查。
You said you moved the "files" but how did you migrate the MySQL database between sites? 您说您移动了“文件”,但是如何在站点之间迁移MySQL数据库?
Go look in your wpconfig.php and see what the table prefix is set to (find the line starting: $table_prefix = 'something here' ) 转到wpconfig.php中,看看表前缀设置为什么(找到以下行开头:$ table_prefix ='something here')
See that that 'something here' prefix matches your actual MySQL database prefix (check that with a PHPMyAdmin or a SQL client). 看到“这里的东西”前缀与您的实际MySQL数据库前缀匹配(请使用PHPMyAdmin或SQL客户端进行检查)。
Some shared hosts will change this table prefix automatically be unique if you use a simple script installer for WordPress. 如果您为WordPress使用简单的脚本安装程序,则某些共享主机将自动将此表前缀更改为唯一。 Did you use an installer to setup WordPress and your MySQL database, or did you do it manually?
您是使用安装程序来设置WordPress和MySQL数据库,还是手动进行安装?
重新安装WP,然后将wp_posts(旧表备份)插入新的新表中。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.