简体   繁体   English

wordpress:致命错误:在行339上wp-includes / load.php中调用未定义函数is_wp_error()

[英]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.

相关问题 致命错误:在第 317 行调用 /public_html/wp-includes/load.php 中未定义的函数 apply_filters() - Fatal error: Call to undefined function apply_filters() in /public_html/wp-includes/load.php on line 317 Wordpress 致命错误:未捕获的错误:调用 /wp-includes/wp-db.php:1570 中未定义的函数 mysql_connect() - Wordpress Fatal error: Uncaught Error: Call to undefined function mysql_connect() in /wp-includes/wp-db.php:1570 警告:require(/wp-includes/load.php)[function.require]:无法打开流 - Warning: require(/wp-includes/load.php) [function.require]: failed to open stream media_sideload_image发生致命错误调用C:\\ xampp \\ htdocs \\ project-name \\ wp-includes \\ capabilities.php中未定义的函数wp_get_current_user() - media_sideload_image gets fatal error Call to undefined function wp_get_current_user() in C:\xampp\htdocs\project-name\wp-includes\capabilities.php WordPress 致命错误:第 1832 行的 wp-includes/wp-db.php 中允许的内存大小为 536870912 字节(试图分配 77 字节) - WordPress Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 77 bytes) in wp-includes/wp-db.php on line 1832 如何解决未定义的偏移量:/~/wp-includes/class-wp-query.php 中 wordpress 第 3284 行中的 5? - How to solve Undefined offset: 5 in /~/wp-includes/class-wp-query.php on line 3284 in wordpress? 单个 php 行中的错误:解析错误:/wp-includes/option.php wp_cache_add - Error in single php line : Parse error: /wp-includes/option.php wp_cache_add Wordpress 上的致命错误:调用 wp-blog-header.php 中未定义的函数 wp() - Fatal Error on Wordpress: Call to undefined function wp() in wp-blog-header.php WordPress问题 - 致命错误:未捕获错误:调用未定义函数convert_to_screen()/ wp-admin/includes/class-wp-list-table.php:149 - WordPress issue -— Fatal error: Uncaught Error: Call to undefined function convert_to_screen() /wp-admin/includes/class-wp-list-table.php:149 Wordpress 致命错误:第 837 行的 /wp-includes/meta.php 中允许的内存大小为 268435456 字节(试图分配 72 字节) - Wordpress Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 72 bytes) in /wp-includes/meta.php on line 837
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM