php - Content disappear when I turn Wordpress debug off
问题描述
I run to a issue with one of the Wordpress site I worked on. I was having issue with event expresso plugin, so I turn web.config debug on tried to fix the issue, after I don't have any error warning on the homepage, I turn off the web debug off, then the whole content is disappeared. I can't figure out why.
Also tried this below, every time have "false" then the whole content won't display.(just a blank block, I check console, they did pull the information, but it's blank.)
// Enable WP_DEBUG mode
define('WP_DEBUG', true);
// Enable Debug logging to the /wp-content/debug.log file
define('WP_DEBUG_LOG', true);
// Disable display of errors and warnings
define('WP_DEBUG_DISPLAY', false);
@ini_set('display_errors',0);
Wordpress version: version: 4.9.8 Plugin use: Event expresso + wpbakery page builder
Thanks!
解决方案
我发现我的代码之一删除空
function.php 中的标签代码是导致此问题的原因,删除后,现在恢复正常。
推荐阅读
- android - HttpLoggingInterceptor 不记录
- excel - 如何修复以下代码中未找到的对象
- javascript - 如何使用“exec”url 而不是“dev”url 从 Google Apps 脚本创建 webhook。执行返回 403 错误
- groovy - 根据最高的排序字符串
- python - 在迭代列表时使用 Python 更新最小值和最大值
- python - 如何在Flask webapp中拆分子进程的输出行
- ios - 如何在 TabBarController 中重用系统图标?
- javascript - 如何从 php 脚本中获取响应文本?
- html - 图像类型 webp。浏览器加载两种格式
- java - 检查数组是否为 123