这个网站发生了严重错误。在无法访问日志的情况下获取错误信息。

huangapple go评论102阅读模式
英文:

There has been a critical error on this website. Get error without access to logs

问题

WordPress 报错 这个网站发生了严重错误。

我的本地机器上没有插件,主题正常运行。

我使用 cpanel,没有服务器日志文件。

有办法显示错误吗?

英文:

WordPress is throwing a There has been a critical error on this website.

There are no plugins and the theme works fine on my local machine.

I am using cpanel and there are no server log files.

Is there a way to display the error.

答案1

得分: 1

你可以打开WP Debug来允许WordPress显示网站出现问题的原因。

找到你的WordPress文件中的wp-config.php,然后点击三个点的选项,然后选择编辑。要启用WP_Debug,请将最后一行更改为:define('WP_DEBUG', true)。要禁用WP_Debug,请将最后一行更改为:define('WP_DEBUG', false)。

希望这对你有帮助!

英文:

You could turn on WP Debug to allow WordPress show you what's breaking the website.

Locate the wp-config. php for your WordPress file, then click on the three-dotted options, then Edit. To Enable WP_Debug, change the last line to: define( 'WP_DEBUG', true ). To Disable WP_Debug, change the last line to: define( 'WP_DEBUG', false ).

Hope this helps!

huangapple
  • 本文由 发表于 2023年8月11日 04:12:45
  • 转载请务必保留本文链接:https://go.coder-hub.com/76879031.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定