razorpay / razorpay-woocommerce

Razorpay Payment Extension for Woocommerce
https://wordpress.org/plugins/woo-razorpay/
GNU General Public License v2.0
40 stars 30 forks source link

Razor pay plugin not getting activated #518

Closed padwalkar closed 7 months ago

padwalkar commented 8 months ago

Hi Team,

I was trying to activate this woo-commerce plugin but I am getting this fatal error and the plugin fails to activate

Plugin could not be activated because it triggered a fatal error. Parse error: syntax error, unexpected 'const' (T_CONST), expecting variable (T_VARIABLE) in /way/to/wordpress-directory/wp-content/plugins/woo-razorpay/includes/razorpay-webhook.php on line 15

I have been waiting for almost a year and now when my account gets activated the plugin doesn't work there is also no technical team support, don't know how to contact Razorpay support... I hope at least the technical team reads these issues.

yashgit891 commented 8 months ago

@padwalkar are you trying with the latest version of the plugin? If yes please check with php 7.1 or above and check if the issue persists.

padwalkar commented 8 months ago

Hi Team,

Below are the specification of my configuration php version: 7.0.33-0 Apache: 2.4.18

but in your readme.md file below config are mentioned

=== Razorpay for WooCommerce ===
Contributors: razorpay
Tags: razorpay, payments, india, woocommerce, curlec, malaysia, ecommerce, international, cross border
Requires at least: 3.9.2
Tested up to: 6.3.1
Stable tag: 4.5.7
Requires PHP: 7.0
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

Can I use some other version of plugin for this configuration?

yashgit891 commented 8 months ago

Hello @padwalkar , you can try version v3.9.2, but we would recommend updating the php version to 7.1+.

padwalkar commented 8 months ago

Thanks... v3.9.2, this version worked