小编Tim*_*567的帖子

如何在 XAMPP 上安装 PHP 8

我正在尝试将我的 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 …

php apache xampp php-8

5
推荐指数
2
解决办法
1万
查看次数

Visual Studio 连接 Exchange 电子邮件帐户时出错

大约两个月前,我接到了制作 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 内,我在这里启动我的加载项。将出现以下弹出窗口。我已经仔细检查了我的凭据。 弹出窗口

如果我单击连接,它将加载一段时间并显示以下错误: 错误

希望这能提供有关正在发生的事情的更多信息。

c# office-addins visual-studio office365 office-js

2
推荐指数
1
解决办法
1472
查看次数

Discord.js:将特定服务器上的角色添加到 DM 机器人的用户

我目前正在开发一个不和谐的机器人,我想在我的服务器上将角色“成员”添加到任何 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)

有人可以帮我吗?

javascript bots node.js discord discord.js

1
推荐指数
1
解决办法
2265
查看次数