Discourse 仅在首次访问时加载头部,需刷新才能加载完整应用

Afternoon all, been stuck on this for a few days. My wack-a-mole approach is not working and haven’t been able to find a post on meta that directly addresses this problem. If I’m missing it, please share the link.

At any rate, has anyone had issues with Discourse only loading the header on mobile devices? I’ve tried turning off mobile layouts, setting “Latest” for the default view and a laundry list of other things.

Here’s a quick look at the issue.

Can you reproduce in Safe Mode ?

It looks like you have a broken theme customization.

Let me give it a shot.

Can’t reproduce in safe mode because when you go to safe mode it immediately refreshes the app and loads the home screen properly.

That’s because

So you should fix that.

@pfaffman,我还在处理这个问题。刚刚检查了我所有覆盖的设置,并重置了任何可能引起问题的选项,但毫无进展。我也检查了所有插件,确保没有损坏的插件。一切正常。

          - git clone https://github.com/discourse/discourse-oauth2-basic.git
          - git clone https://github.com/discourse/discourse-patreon.git
          - git clone https://github.com/discourse/discourse-plugin-linkedin-auth.git
          - git clone https://github.com/discourse/discourse-plugin-office365-auth.git
          - git clone https://github.com/discourse/discourse-policy.git
          - git clone https://github.com/discourse/discourse-push-notifications.git
          - git clone https://github.com/discourse/discourse-saved-searches.git
          - git clone https://github.com/discourse/discourse-solved.git
          - git clone https://github.com/discourse/discourse-spoiler-alert.git
          - git clone https://github.com/discourse/discourse-staff-notes.git
          - git clone https://github.com/discourse/discourse-tooltips.git
          - git clone https://github.com/discourse/discourse-voting.git
          - git clone https://github.com/discourse/docker_manager.git
          - git clone https://github.com/communiteq/discourse-sitemap.git
          - git clone https://github.com/angusmcleod/discourse-quick-messages.git
          - git clone https://github.com/angusmcleod/discourse-locations.git
          - git clone https://github.com/angusmcleod/discourse-question-answer.git
          - git clone https://github.com/angusmcleod/discourse-ratings.git
          - git clone https://github.com/angusmcleod/discourse-topic-previews.git
          - git clone https://github.com/angusmcleod/discourse-layouts
          - git clone https://github.com/procourse/discourse-full-screen-videos-plugin.git
          - git clone https://github.com/procourse/procourse-static-pages.git
          - git clone https://github.com/featheredtoast/discourse-pwned-passwords.git
          - git clone https://github.com/iunctis/discourse-formatting-toolbar.git
          - git clone https://github.com/jannolii/discourse-topic-trade-buttons.git
          - git clone https://github.com/jgujgu/discourse-blocks.git
          - git clone https://github.com/LeoDavidson/discourse-reset-bump.git
          - git clone https://github.com/rux-pizza/discourse-awesome-bbcodes.git
          - git clone https://github.com/sekhat/discourse-yuml.git
          - git clone https://github.com/synweap15/discourse-voice-record.git
          - git clone https://github.com/unfoldingWord-dev/discourse-mermaid.git
          - git clone https://github.com/jomaxro/discourse-plugin-site-setting-override.git
          - git clone https://github.com/discourse/discourse-data-explorer.git
          - git clone https://github.com/cpradio/discourse-plugin-replygif.git
          - git clone https://github.com/merefield/discourse-onebox-assistant.git

既然如此,我在 Chrome 中运行了一次审计,得到了以下结果。你从中看到任何有用的线索吗?

我尝试移除了所有自定义 CSS,但没有任何效果。:neutral_face:

打开浏览器开发者工具,检查“控制台”选项卡中是否有任何警告或错误。

所有 200 个请求在控制台中均无错误。最近发现网站日志中出现了大量相同的问题……现在只需学习如何阅读这么多 JavaScript 代码。

正如 @falco@pfaffman 之前提到的,您的主题或主题自定义存在损坏。您的主题 JavaScript 中存在语法错误。您可能需要逐个移除已安装的主题组件或自定义主题,以找出问题所在。

找到了。Easy Footer 组件一直是罪魁祸首。真是气死我了。哈哈

谢谢大家!!