从 M2.3.3 升级到 M2.4.2 后,结帐页面无法正常工作。
在 system.log 文件中,我收到一个错误:
[2021-04-27 10:35:21] report.CRITICAL:提供空或未提供私钥 [] []
有人对此有想法吗?
从 M2.3.3 升级到 M2.4.2 后,结帐页面无法正常工作。
在 system.log 文件中,我收到一个错误:
[2021-04-27 10:35:21] report.CRITICAL:提供空或未提供私钥 [] []
有人对此有想法吗?
根据您的错误,几乎没有任何细节可以继续,唉,通过谷歌搜索,我最终发现了这个例外:
https://github.com/open-pay/openpay-php/blob/master/data/OpenpayApiConnector.php#L45
$myApiKey = Openpay::getApiKey();
if (!$myApiKey) {
throw new OpenpayApiAuthError("Empty or no Private Key provided");
} else if (!preg_match('/^sk_[a-z0-9]{32}$/i', $myApiKey)) {
throw new OpenpayApiAuthError("Invalid Private Key '".$myApiKey."'");
}
我想这表明您正在使用一个模块与 OpenPay 的 API(也许是这个?)进行交互,在这种情况下,您可能想要仔细检查您的私钥是否都在您的后端配置中进行了整理: