# WP-Discourse → 用户切换不起作用

**URL:** https://meta.discourse.org/t/wp-discourse-user-switching-not-working/219628
**Category:** WordPress
**Created:** [2022年二月28日 20:09 UTC](https://meta.discourse.org/t/wp-discourse-user-switching-not-working/219628 "2022-02-28T20:09:13Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![timgrahl](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/timgrahl/32/165663_2.png) [@timgrahl](https://meta.discourse.org/u/timgrahl)
#### Post date: [2022年二月28日 20:09 UTC](https://meta.discourse.org/t/wp-discourse-user-switching-not-working/219628/1 "2022-02-28T20:09:13Z")

</div>

您好，我正在多站点环境中运行 WP-Discourse。我们广泛使用 User Switching 插件进行客户支持。

最近，在我们升级 WP-Discourse 插件时，该插件停止工作了。我通过一次停用/激活一个插件来隔离这个问题。当我停用 WP-Discourse 时，User Switching 开始正常工作。我已经重复了三次。

这是我收到的错误：

 ![Screen Shot 2022-02-28 at 2.06.35 PM](https://global.discourse-cdn.com/meta/original/3X/8/c/8cb82026c862e663373fb22c47c9e251a98ebbe7.png)

有什么想法吗？

---

<div class="post-metadata">

### Author: ![angus](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/angus/32/341715_2.png) [@angus](https://meta.discourse.org/u/angus)
#### Post date: [2022年二月28日 20:12 UTC](https://meta.discourse.org/t/wp-discourse-user-switching-not-working/219628/2 "2022-02-28T20:12:00Z")

</div>

蒂姆，我以前没见过这个。你正在使用 [DiscourseConnect](https://meta.discourse.org/t/13045?silent=true) 吗？我目前正在单站点环境中测试它，用户切换插件运行正常。我明天将在多站点环境中进行测试。

在此期间，你能否分享你的：

- WP 版本号
- [WP Discourse](https://github.com/discourse/wp-discourse) 版本号
- 用户切换插件版本号
- PHP 版本号

你可以在 [WP Discourse](https://github.com/discourse/wp-discourse) 日志页面通过点击“查看元数据”找到所有这些信息。如果你能（通过私信）与我分享整个文件，那将非常有帮助，谢谢。

---

<div class="post-metadata">

### Author: ![timgrahl](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/timgrahl/32/165663_2.png) [@timgrahl](https://meta.discourse.org/u/timgrahl)
#### Post date: [2022年二月28日 20:25 UTC](https://meta.discourse.org/t/wp-discourse-user-switching-not-working/219628/3 "2022-02-28T20:25:58Z")

</div>

感谢您的快速回复！

WordPress - 5.9.1  
WP-Discourse - 2.4.1  
User Switching - 1.5.8  
PHP - 7.4.25

是的，我正在使用 [DiscourseConnect](https://meta.discourse.org/t/13045?silent=true)。这是我的设置：

 ![Screen Shot 2022-02-28 at 2.18.57 PM](https://global.discourse-cdn.com/meta/original/3X/2/9/2946ebc1596bd5a5a7e26f9fde090011db07aa44.jpeg)

我将通过私信向您发送一些其他详细信息。

---

<div class="post-metadata">

### Author: ![timgrahl](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/timgrahl/32/165663_2.png) [@timgrahl](https://meta.discourse.org/u/timgrahl)
#### Post date: [2022年三月1日 14:57 UTC](https://meta.discourse.org/t/wp-discourse-user-switching-not-working/219628/4 "2022-03-01T14:57:40Z")

</div>

嘿 @Angus，不知何故，即使 WP-Discourse 仍在运行，它又开始工作了，所以它显然不是根本原因。真是奇怪！但我很感谢你在这件事上的帮助！

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [2022年三月31日 14:58 UTC](https://meta.discourse.org/t/wp-discourse-user-switching-not-working/219628/5 "2022-03-31T14:58:12Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
