升级后 Fontawesome 坏了吗?

我昨晚升级了我的实例,在此之前我已经推迟了几个月,现在几乎我所有的图标都停止工作了,包括专业版和非专业版的。下面是一个类别图标选择器的视频作为演示。您可以看到我以前使用的是 fal-comment-pen

我还尝试了不同的组合,结果各不相同:

Light/Classic

Regular/Classic

我已经仔细检查了我的 web_only.yml 配置,一切看起来都很好,包括密钥。但这个问题似乎超出了专业版范围,所以我不知道接下来该怎么办,有什么建议吗?

1 个赞

字体图标(Font Awesome)在某个时候更改了很多东西的名称。以前有一些机制可以映射到旧名称,但也许那些现在已经消失了?

谢谢 Jay,我记得今年夏天也经历过那个过程,所以我不认为那是问题所在。特别是很多默认图标也丢失了。例如:

1 个赞

我尝试移除了 FA Pro 插件,非 pro 图标就回来了,所以这似乎是插件的问题。

我发现只有专业图标没有显示,我最初使用的是“Light”主题,其中所有图标都是专业的。有其他人遇到这个问题吗,还是只有我一个人?

我移除了 raise_on_fail: false 后,重建失败并出现以下错误:

I, [2026-01-04T17:38:39.450544 #1]  INFO -- : \u003e cd /var/www/discourse/plugins/discourse-fontawesome-pro \u0026\u0026 /var/www/discourse/plugins/discourse-fontawesome-pro/scripts/install.sh
fatal: detected dubious ownership in repository at '/var/www/discourse'
To add an exception for this directory, call:

	git config --global --add safe.directory /var/www/discourse
 ERROR  Error during pnpmfile execution. pnpmfile: \"/var/www/discourse/.pnpmfile.cjs\". Error: \"Command failed: git clean -f -X app/assets/javascripts
fatal: detected dubious ownership in repository at '/var/www/discourse'
To add an exception for this directory, call:

	git config --global --add safe.directory /var/www/discourse
\".
For help, run: pnpm help install
I, [2026-01-04T17:38:40.142946 #1]  INFO -- : [.pnpmfile.cjs] Detected old app/assets/javascripts directory. Cleaning up gitignored files...



FAILED
--------------------
Pups::ExecError: cd /var/www/discourse/plugins/discourse-fontawesome-pro \u0026\u0026 /var/www/discourse/plugins/discourse-fontawesome-pro/scripts/install.sh failed with return #\u003cProcess::Status: pid 246 exit 1\u003e
Location of failure: /usr/local/lib/ruby/gems/3.3.0/gems/pups-1.3.0/lib/pups/exec_command.rb:131:in `spawn'
exec failed with the params {\"cd\"=\u003e\"$home/plugins/discourse-fontawesome-pro\", \"cmd\"=\u003e[\"$home/plugins/discourse-fontawesome-pro/scripts/install.sh\"]}\nbootstrap failed with exit code 1
** FAILED TO BOOTSTRAP ** please scroll up and look for earlier error messages, there may be more than one.
./discourse-doctor may help diagnose the problem.
be6b0968a3bab273e52bd1927a6c3dac611a9e6103c75fa7ce8ea9b85ea3e233
x86_64 arch detected.
755bbed4f3cf
Nothing to do, your container has already started!

所以我这样做了:

    - exec:
        cd: $home/plugins/discourse-fontawesome-pro
        cmd:
          - git config --global --add safe.directory /var/www/discourse
          - $home/plugins/discourse-fontawesome-pro/scripts/install.sh

然后成功重建,我又能正常使用了!

3 个赞