【问题标题】:Admin bar not displayed on some posts and pages某些帖子和页面上未显示管理栏
【发布时间】:2018-11-22 00:29:29
【问题描述】:

我的 Wordpress 管理栏没有出现在我的主页和一些随机帖子上。我在网上查看了很多关于它的主题,包括这个Stack Overflow thread,并且我尝试了所有解决方案:

  • 我使用具有 wp_footer() 和 wp_head() 的商业主题
  • Wordpress 和站点 URL 相同,https://www
  • 我已在我的用户个人资料中选中此框
  • 我已禁用所有插件:问题仍然存在

与我在浏览网页时遇到的所有其他问题的不同之处在于,它仅出现在某些页面和帖子上。

【问题讨论】:

  • error_log 中显示任何错误?
  • 这样的消息(法语对不起):Notice: get_currentuserinfo est <strong>obsolète</strong> depuis la version 4.5.0 ! Utilisez wp_get_current_user() à la place. in /home/revuebalvp/www/wp-includes/functions.php on line 3853Deprecated: Function create_function() is deprecated in /home/revuebalvp/www/wp-content/plugins/footnotes/class/init.php on line 61
  • 在我的主机错误日志中,有很多 CGI 错误,例如:FastCGI: incomplete headers (0 bytes) received from server & FastCGI: An error happend on Fastcgi processing, fallback to CGI,
  • 这些错误是在访问任何页面/帖子时出现,还是仅在访问未正确显示管理栏的页面时出现?
  • 我认为 WP 调试日志中的那些在每个帖子上都会发生,它们是由旧插件引起的。我使用get_currentuserinfo 禁用了那个。 FastCGI 发生在我遇到此管理栏问题之前。

标签: wordpress wordpress-theming


【解决方案1】:

问题不在我的 Wordpress 安装中,而是由于我的主机 CDN(OVH,仅供参考)的缓存管理不善。所以我禁用了CDN,我又恢复了正常...

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-07-20
    • 2019-02-12
    • 2021-04-11
    • 2013-07-18
    相关资源
    最近更新 更多