如何解决此错误致命错误:调用未定义函数...?
-
-
您将需要提供有关您的环境(WordPress版本,活动的主题/插件等),可能会做的任何异常事情以及在何处/如何获得该信息的更多信息.错误.You're going to need to provide quite a bit more information, about your environment (WordPress version, active Theme/Plugins, etc.), anything out of the ordinary that you might be doing, and where/how you're getting the error.
- 0
- 2011-08-12
- Chip Bennett
-
请添加您的解决方案作为实际答案,而不是对问题的编辑.Please add your solution as an actual answer instead of as an edit to the question.
- 0
- 2013-08-25
- s_ha_dum
-
7 个回答
- 投票数
-
- 2011-08-12
wp()
是非常重要的功能.它驻留在functions.php
文件中(不要与主题中的functions.php
混淆,其他事情),而且我认为您可以在不传递需要该文件的指令.
因此您的安装似乎很破损-内核中的
functions.php
文件已损坏,或者其他损坏了,使它跳过了加载该文件的过程.wp()
is quite essential function. It resides infunctions.php
file (don't confuse withfunctions.php
in theme, different thing) and I don't think you can load WP without passingrequire
directive for that file at some point.So your install seems very broken - either
functions.php
file in core is damaged or something else is broken and makes it skip loading that file.-
是的,您的权利人,我的工作是重新安装所有内容...在阅读您的答案之前已经解决了该问题,但是您的答案与我的相同,因此我也将选择您的答案:)yes your right man , what I did is I reinstall everything...I fix the problem already before I read your answer, but your answer is same as mine , so I'll pick your answer too :)
- 0
- 2011-08-14
- arnold
-
-
为什么这被低估?这是我的原因.Why is this getting downvoted? It was the cause in my case.
- 1
- 2016-09-15
- br4nnigan
-
这也是我的问题.我认为wp-config的保存被中断,文件最终为空白并引发此错误.恢复它,它是固定的.This was the problem on my end too. I think a save of wp-config got interrupted, and the file ended up being blank and was throwing this error. Restored it and it was fixed.
- 1
- 2016-09-30
- sbuck
-
我不知道是什么使我的wp-config.php空了.修复后,一切正常...I don't know what made my wp-config.php became empty. Once it was fixed, everything worked fine...
- 0
- 2019-10-27
- amit bakle
-
-
- 2020-04-06
当我迁移到Siteground时,我不知道为什么Siteground将
wp-config.php
文件最后一行中的包含文件更改为错误的目录.正确的路径应改为以下路径:
/* That's all, stop editing! Happy blogging. */ /** Absolute path to the WordPress directory. */ if ( ! defined( 'ABSPATH' ) ) define( 'ABSPATH', dirname( __FILE__ ) . '/' ); /** Sets up WordPress vars and included files. */ require_once( ABSPATH . 'wp-settings.php' );
When I migrated to Siteground, I don't know why Siteground changed the include file in the last line of
wp-config.php
file to a wrong directory.The correct path should be this one instead:
/* That's all, stop editing! Happy blogging. */ /** Absolute path to the WordPress directory. */ if ( ! defined( 'ABSPATH' ) ) define( 'ABSPATH', dirname( __FILE__ ) . '/' ); /** Sets up WordPress vars and included files. */ require_once( ABSPATH . 'wp-settings.php' );
-
- 2013-06-21
当磁盘空间不足时,使用自动更新可能会导致此问题.如果是这种情况,请释放服务器上的一些空间,然后手动将Wordpress升级到最新版本.
This problem can be caused by using the automatic update when you don't have enough disk space. If that is the case, free up some space on your server, then upgrade Wordpress to the latest version manually.
-
- 2016-11-16
问题似乎是wp-config.php损坏的结果 我使用数据库凭据更新了本地版本,并通过ftp上传了它,并且有效.
It seems the issue was a result of corrupted wp-config.php I updated the local version with the database credentials and uploaded via ftp and it worked.
-
- 2020-04-05
有同样的问题.有一个更简单的解决方案:
- 打开wp-settings.php
- 注释以下几行(搜索"健康":
// if ( ! class_exists( 'WP_Site_Health' ) ) { // require_once ABSPATH . 'wp-admin/includes/class-wp-site-health.php'; // } // WP_Site_Health::get_instance();
- 更新所有插件
- 将wp-settings.php恢复到以前的状态
Had the same issue. Have an easier solution:
- Open wp-settings.php
- Comment out the following lines (search for "health":
// if ( ! class_exists( 'WP_Site_Health' ) ) { // require_once ABSPATH . 'wp-admin/includes/class-wp-site-health.php'; // } // WP_Site_Health::get_instance();
- Update all your plugins
- Restore wp-settings.php to the previous state
-
- 2017-08-22
令人惊讶的...如果您遇到致命错误或致电未定义的功能,请转到您的电子邮件,然后在该电子邮件上您可能会收到来自托管地址的已发送消息...只需重新安装或从该电子邮件页面登录即可...问题将得到解决..
amazing...if you have fatal error or call to undefined funcction jus go to your email and on that email you may have a sent message from your hosting adress...just reinstall or from that email page you log in...problem will be fixed..
-
WordPress不会发送致命错误的电子邮件.WordPress does not send an email on a fatal error.
- 4
- 2017-08-22
- fuxia
谁能找出问题所在?
我已经更新了
wp-includes
和wp-admin
文件夹,并且我的functions.php
很好,但是我没有弄清楚找出解决方法.有什么建议吗?编辑
我重新安装了WordPress,(在网站上上传了新副本,并确保它是最新的)-等效于手动更新.
此后它开始正常工作,因此现在已解决此问题.