[英]report.CRITICAL: Empty or no Private Key provided [] [] magento 2.4.2
從 M2.3.3 升級到 M2.4.2 后,結帳頁面無法正常工作。
在 system.log 文件中我收到一個錯誤:[2021-04-27 10:35:21] report.CRITICAL: Empty or no Private Key provided [] []
有人對此有想法嗎? 請指導。
拉什
根據您的錯誤,go 幾乎沒有任何細節,唉,我在谷歌上搜索了一下,發現了這個例外:
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 進行交互(也許是這個? )在這種情況下,您可能想要仔細檢查您的私鑰是否都在您的后端配置中進行了整理:
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.