Skip to content
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

Wordpress to 6.2 version Fatal error #347

Open
shyambheda opened this issue Apr 27, 2023 · 2 comments
Open

Wordpress to 6.2 version Fatal error #347

shyambheda opened this issue Apr 27, 2023 · 2 comments

Comments

@shyambheda
Copy link

shyambheda commented Apr 27, 2023

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

// Retrieve meta data from the database if available
    $transaction_amount = get_post_meta( $post->ID, '_transaction_amount', true );
    $orderId = 'order_LX7hlEgAHct8';

    $api = new Api(getenv('EG_RAZOR_KEY_ID'), getenv('EG_RAZOR_KEY_SECRET'));
    $orders = $api->order->fetch($orderId);

Php version

Php v8.0.28

Library version

razor-pay v2.8.4

Additional Information

No response

@devdharmesh
Copy link

devdharmesh commented Apr 28, 2023

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

@rexarvind
Copy link

don't use composer, download PHP SDK

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants