Stripe获取500内部服务器错误


Getting 500 Internal Server Error with Stripe

我正在尝试实现Stripe API的基本功能,当我需要您必须需要的Stripe.php文件时,由于某种原因,我得到了500内部服务器错误。。。当我评论需求时,错误消失了,但显然我不能使用API。。

基本要求。。。显示模式日志中的错误

require_once('/php/Stripe.php');

我检查了服务器错误,它给了我这个

Fatal error: Uncaught exception 'Exception' with message 'Stripe needs the Multibyte String PHP extension.' in /php/Stripe.php:13 Stack trace: #0 /home/stripepost.php(4): require_once() #1 {main} thrown in /php/Stripe.php on line 13

这一切都源于只需要文件。。

您的"Stripe.php"文件真的位于"/php'"中吗?还是位于代码本地名为"php"的文件夹中?

当前代码:

require_once('/php/Stripe.php');

我认为问题在于此。您可能是想使用与代码库相关的东西。像这样:

require_once('./php/Stripe.php');

我发现了答案,我的服务器上没有启用mbstring。。。whoops