-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
main.CRITICAL: Warning: file_get_contents(): Filename cannot be empty in vendor/amzn/amazon-pay-api-sdk-php/Amazon/Pay/API/Client.php on line 424 #22
Comments
Hello if the file path is empty then following exception will be thrown if file content is empty then following exception will be thrown Please configure the file path & make sure file content is not empty |
@shangamesh Thanks for the information, but the error is thrown on dev and staging environments where we work with "limited" configured data. It's never good to have uncaught errors, so it should be fixed nonetheless. |
@Morgy93 |
The stage environments have limited data in the |
Can someone please expand on the 'config file' that you are referring to? E.g. where should I be able to find this config file? What is it called? This extension was working fine for us until upgrade and now it's not. The 'Amazon Pay Team' have been pestering us with emails about upgrading the extension (which we have now done, to 5.15.0) but we're still seeing this error. Many thanks in advance. |
Hello,
if
$key_spec = $this->config['private_key'];
on line 421 in https://github.com/amzn/amazon-pay-api-sdk-php/blob/2.2.5/Amazon/Pay/API/Client.php#L421 is empty, then an error is thrown on line 424 for$contents = file_get_contents($key_spec);
:The text was updated successfully, but these errors were encountered: