Reviewed & tested by the community
Project:
Social Auth PayPal
Version:
8.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
14 Dec 2019 at 18:55 UTC
Updated:
24 Jul 2024 at 17:13 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
neel24 commentedI've added a patch to fix the error.
Comment #3
neel24 commentedComment #4
gvsoOpps. It seems like I included this change in #3013252: "Paypal" should be "PayPal". However, drupal coding practice throws
We should fix that! See Social Auth Google for an example!
Comment #5
neel24 commentedHmm, I cross-checked with Social Auth Google, and it seems that it also returns the same error:
Comment #6
gvsoMy bad. I thought it was fixed there. Ok, basically, you wanna inject the current request service into the constructor of that class. Then, you want to let Drupal know by adding it as a dependency in the .services.yml file. Let me know if you have any questions!
Comment #7
neel24 commentedAlright, so I had a look at Social Auth Heroku for ref and I've made some changes to fix the error.
Comment #8
neel24 commentedSorry, had forgotten to remove
var_dump. Attaching new patch.Comment #9
agrochal commentedYou use the wrong way to implement request service inside construct function, check this issue: https://www.drupal.org/project/social_auth_google/issues/3109038
Comment #10
neel24 commentedMy bad, the OAuth2Manager in Social Api had been updated and I was still using an older version, hence that's why the previous request was still working for me. I've updated the patch to fix the coding standards and updated the request.
Comment #12
avpadernoComment #13
roberttabigue commentedHi @neel24,
Your patch#10 is not working on the 'Social Auth PayPal' module against 8.x-2.x-dev on my D10 site.
I ran this command on the module:
curl https://www.drupal.org/files/issues/2020-01-29/social_auth_paypal-fix-coding-standards-3101051-10.patch | git apply -vPlease see the attached file for reference.
I'm moving this to ‘Needs work’ for now.
Thank you!
Comment #14
avpadernoLet's use a merge request, now that patches are no longer tested.
Comment #15
avpadernoComment #16
nilesh.addweb commentedComment #18
nilesh.addweb commentedComment #19
riddhi.addweb commentedI have applied the MR !1 and it resolves the issues.
Please check the screenshot for the same.
Comment #20
avpaderno