Open shyambheda opened 1 year ago
I am also facing the same problem when I upgraded my WordPress website to 6.2
Fatal error: Cannot declare class WpOrg\Requests\Requests, because the name is already in use in /home/vendor/rmccue/requests/src/Requests.php on line 37
don't use composer, download PHP SDK
any solution to this issue?
Add the following to your composer.json file:
"replace": { "rmccue/requests": "*" }
After updating composer.json, run the _composer update_
command.
This will:
Steps to reproduce the behavior
Upgrade to worpdress 6.2
Expected behavior
API works correctly
Actual behavior
Fatal error: Cannot declare class WpOrg\Requests\Requests, because the name is already in use in /home/vendor/rmccue/requests/src/Requests.php on line 37 There has been a critical error on this website. Please check your site admin email inbox for instructions.
Learn more about troubleshooting WordPress.
Code snippets
Php version
Php v8.0.28
Library version
razor-pay v2.8.4
Additional Information
No response