-
Notifications
You must be signed in to change notification settings - Fork 850
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
Stripe searches Throwable.php in the spl_autoload_register directory and gives a non-blocking error #813
Comments
@Raf-sns This seems specific to your current configuration instead. Which exact version of PHP are you running? |
Hi,
error_log : [03-Dec-2019 09:47:35 Europe/Paris] PHP Warning: -> Again, when I include an empty Throwable.php file (, see Do you want FTP access from the app to do the test yourself ? Note :
When the error occurs in the API : General view of API : with error : (i renamed Throwable.php in OLD_Throwable.php) Thank you for your response, do not hesitate to contact me for more details. Regards, |
@Raf-sns This does look like a problem with your own PHP setup at the moment. I tried that exact version of PHP and don't get the error. Our code also looks at whether Throwable is defined before trying to include it as you can see in our code here. Getting access to your FTP would not be something safe and I'd recommend against ever sharing production access to your servers. Can you confirm that the same error happens if you only include Stripe and nothing else in your script? |
@Raf-sns Following up on this, @ob-stripe dug into this further and found something that could explain the issue. He pushed a fix in a branch here: #816 Would you be able to try this version (or make the same modification locally) to see if that solves the problem? |
Fixed in 7.14.2. |
Hello, I will do a test with the new version of Stripe. Yes to access the code and / or modify it, no worries of course. Thank you for your interest, I will post a last comment to inform you of the disappearance of the bug, |
Hello, |
@Raf-sns Thanks for testing and confirming it solved your issue! |
Hi,
Hello, I am experiencing a non-blocking error when including Stripe.php -> init.php.
I have a controller that loads php classes from my API, they are all root Api.com/PHP/.
To avoid any conflict and since I had the following error: PHP Warning: include (PHP / Throwable.php): failed to open stream: No such file or directory
include './STRIPE/init.php';
\ Stripe \ Stripe :: setApiKey (pay :: SK_PAY);
So I placed all Stripe.php in a separate folder it is in Api.com/STRIPE/
but the error continues.
I had to make a hack to no longer have error messages in my error_log: I created an empty Throwable.php file in the root that is loaded by the autoloader -> / PHP / and there more mistake ...
This is not a very good way to counter the error, but I did not find any Throwable.php files in Stripe.php.
Aside from that, the error that is thrown is non-blocking because the API is working fine and the test payments are accepted. I wanted to point it out here to understand
1 / Is this a bug?
2 / Is it me the bug?
Thank you for your answers,
Regards,
Raf
The text was updated successfully, but these errors were encountered: