我正在尝试将我的 PHP 版本更新为全新的 PHP 8。我已按照本教程的类似步骤进行操作。但现在显示以下错误:
12:06:23 [Apache] Error: Apache shutdown unexpectedly.
12:06:23 [Apache] This may be due to a blocked port, missing dependencies,
12:06:23 [Apache] improper privileges, a crash, or a shutdown by another method.
12:06:23 [Apache] Press the Logs button to view error logs and check
12:06:23 [Apache] the Windows Event Viewer for more clues
12:06:23 [Apache] If you need more help, copy and post this
12:06:23 [Apache] entire log window on the forums
Run Code Online (Sandbox Code Playgroud)
注意:我使用了全新的 XAMPP …
大约两个月前,我接到了制作 Outlook.com 插件的任务。基础功能完美运行,但更高优先级的东西出现了。所以这个项目在过去的两个月里还算顺利。
昨天我想继续这个项目,但它不再起作用了。当我在 Visual Studio 中启动项目并且需要登录我的办公室帐户时,问题就出现了。如果我登录,它将加载一段时间,然后弹出错误。它说:
An error occurred while connecting to the server:
The request failed. Unable to connect to the remote server
Run Code Online (Sandbox Code Playgroud)
既然我在过去两个月里没有改变任何东西,这怎么可能?我该如何解决这个问题?
我按照微软自己的教程进行操作。
编辑:
以下是一些屏幕截图:
这是在我的 Visual Studio 内,我在这里启动我的加载项。将出现以下弹出窗口。我已经仔细检查了我的凭据。

希望这能提供有关正在发生的事情的更多信息。
我目前正在开发一个不和谐的机器人,我想在我的服务器上将角色“成员”添加到任何 DM 机器人的用户。但是我无法使 addRole 工作。我不断收到以下错误:
类型错误:member.guild.roles.cache.addRole 不是函数
这是我的代码:
let server = client.guilds.cache.get('myserverID')
var memberRole= server.roles.cache.find(role => role.name === "Member")
let member = server.members.cache.get(msg.author.id);
member.guild.roles.cache.addRole(memberRole)
Run Code Online (Sandbox Code Playgroud)
有人可以帮我吗?