Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

网站自定义报错 #149

Closed
Mas0nShi opened this issue Jan 31, 2021 · 4 comments
Closed

网站自定义报错 #149

Mas0nShi opened this issue Jan 31, 2021 · 4 comments
Assignees
Labels

Comments

@Mas0nShi
Copy link

不知道什么原因,在多台机器上手动,自动都试了,更新主题后会发生wp本身的错误 = =

Fatal error: Cannot redeclare get_preferred_from_update_core() (previously declared in /usr/local/wordpress/wp-admin/includes/update.php:17) in /usr/local/wordpress/wp-admin/includes/update.php on line 25
此站点遇到了致命错误,请查看您的站点管理邮件地址来获得指引。

Fatal error: Cannot redeclare get_preferred_from_update_core() (previously declared in /www/wwwroot/wp-admin/includes/update.php:17) in /www/wwwroot/wp-admin/includes/update.php on line 16
此站点遇到了致命错误,请查看您的站点管理邮件地址来获得指引。

@yrccondor
Copy link
Owner

确实遇到了,但我的三个版本一致的 wordpress 实例中有一个没有出现这个问题,另两个复现了,报错也有点奇怪,暂时还没有什么头绪,可能需要一些时间排查

@Mas0nShi
Copy link
Author

Mas0nShi commented Feb 1, 2021

通过局部的更替,使用旧版本的functions.php能够正常使用

猜测引发错的文件为functions.php

具体原因未知。

@yrccondor
Copy link
Owner

已经确认问题由 835220f 引入,但还在寻找报错原因

@yrccondor
Copy link
Owner

已于 2.0.1 修复

@yrccondor yrccondor self-assigned this Feb 7, 2021
@yrccondor yrccondor added the bug label Feb 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants