-
Notifications
You must be signed in to change notification settings - Fork 58
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
PPCP - Under PHP 8.1 throws thousands of warnings #3052
Comments
Any sense of how many are not 'Undefined variable' and 'Undefined array key' for PayPal Commerce? |
Nope - deleted the 9MB with several hundred thousands lines added to the error_log file created in a few hours and downgraded client back to 7.4 |
I saved a compressed file of the error log when it was at about 24000 lines. Do you want me to email it to you Brian? Also sinceI've been put back to PHP 7.4 I've gotten a few PayPal warnings. Should I send you those too? |
If the error_log relates to the PayPal module (or any other module), then yes. Otherwise, because I have been working through the core code with PHP8.1, I won't find much that I haven't already reported. So, yes, email it to me. |
And here are the errors I got today
[30-Aug-2022 03:32:10 America/Louisville] PHP Warning: Undefined global variable $cart in /home/claudias/public_html/modules/plugins/paypal_commerce/paypal.class.php on line 435
[30-Aug-2022 03:32:10 America/Louisville] PHP Warning: Attempt to read property "basket" on null in /home/claudias/public_html/modules/plugins/paypal_commerce/paypal.class.php on line 435
[30-Aug-2022 03:32:10 America/Louisville] PHP Warning: Trying to access array offset on value of type null in /home/claudias/public_html/modules/plugins/paypal_commerce/paypal.class.php on line 435
[30-Aug-2022 03:32:10 America/Louisville] PHP Warning: Undefined variable $disable_funding in /home/claudias/public_html/modules/plugins/paypal_commerce/paypal.class.php on line 697
[30-Aug-2022 06:24:53 America/Louisville] PHP Warning: Invalid Security Token in /home/claudias/public_html/classes/sanitize.class.php on line 155
From: Brian Smither ***@***.***>
Sent: Tuesday, August 30, 2022 1:40 PM
To: cubecart/v6 ***@***.***>
Cc: claudia39 ***@***.***>; Comment ***@***.***>
Subject: Re: [cubecart/v6] PayPal Commerce under PHP 8.1 throws thousands of warnings (Issue #3052)
If the error_log relates to the PayPal module (or any other module), then yes. Otherwise, because I have been working through the core code with PHP8.1, I won't find much that I haven't already reported.
So, yes, email it to me.
—
Reply to this email directly, view it on GitHub <#3052 (comment)> , or unsubscribe <https://github.com/notifications/unsubscribe-auth/ADHR72YBT3V444EOKAY4BNTV3ZBO5ANCNFSM6AAAAAAQADWZMA> .
You are receiving this because you commented. <https://github.com/notifications/beacon/ADHR724FIXFH2ICKXADELDTV3ZBO5A5CNFSM6AAAAAAQADWZMCWGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTSJNZNHG.gif> Message ID: ***@***.*** ***@***.***> >
|
Did you get the attachment? |
Nothing sent directly to me from you. |
I haven't found anything that screams "Fix me now!" that hasn't already been made an issue. A lot of log entries (again, these errors are not important) can be quieted with this: |
Yes it needs an update but from my testing works fine on PHP 8.1. I'll get around to this asap. |
Hi @bhsmither Are you working on this one? I don't want to step on your toes if so. Let me know if not and I'll jump on this. Happy to take this on if you want to share findings so far? |
I am not. |
Ok thanks. I'm not sure how I got the impression you were.
…On Thu, 8 Sept 2022, 16:26 Brian Smither, ***@***.***> wrote:
I am not.
—
Reply to this email directly, view it on GitHub
<#3052 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABCPWY3IVNQ5ECYJ6RLEU7LV5IAQXANCNFSM6AAAAAAQADWZMA>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
These are the errors that were logged in an error report sent to me that relate to PPCP:
|
Thanks.
…On Thu, 8 Sept 2022, 18:54 Brian Smither, ***@***.***> wrote:
These are the errors that were logged in an error report sent to me that
relate to PPCP:
Undefined global variable $cart in /paypal_commerce/paypal.class.php on line 435
Attempt to read property "basket" on null in /paypal_commerce/paypal.class.php on line 435
Trying to access array offset on value of type null in /paypal_commerce/paypal.class.php on line 435
Attempt to read property "server_response_code" on string in /plugins/paypal_commerce/paypal.class.php on line 972
—
Reply to this email directly, view it on GitHub
<#3052 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABCPWYZAQQ5IP5P3LWDEN7TV5IR5BANCNFSM6AAAAAAQADWZMA>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Your version of PayPal Commerce must be out of date as I can't match up most of these errors. |
It was running the latest version at the time |
1.7.2 released which should catch most if not all. If you do find more let me know. |
The changes needed for core for 8.1 are likely going to be needed for all plugins - for example PayPal Commerce under 8.1 throws huge numbers of notices, warnings etc into the PHP error_log
The text was updated successfully, but these errors were encountered: