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

WC_Shortcode_Checkout->output deprecated call #14

Closed captn3m0 closed 7 years ago

captn3m0 commented 7 years ago

Notice: WC_Shortcode_Checkout->output was called with an argument that is deprecated since version 2.1! "order" is no longer used to pass an order ID. Use the order-pay or order-received endpoint instead. in /www/wp-includes/functions.php on line 3891

Appears on the "Pay for Order" page.

mayankamencherla commented 7 years ago

Upgrade to latest version of woocommerce - 1.2.11 will fix the issue. Closing ticket.

ashussen commented 7 years ago

I still got exactly the same error message. I use woocommerce.2.6.11.

captn3m0 commented 7 years ago

@ashussen Please give the versions for the following:

to help us debug this.

rsaravanan commented 7 years ago

@captn3m0

PHP : version 5.6.23 Wordpress: version 4.4.7 WooCommerce Razorpay Plugin: version 1.3.1 WooCommerce : version 2.6.14

Still I got the same error.

captn3m0 commented 7 years ago

What we noticed in other cases was that some other extension was interfering and overriding the checks. Can you disable other extensions and see if the error persists? We are following the woocommerce guidelines on how this is supposed to be implemented.

rsaravanan commented 7 years ago

Other extensions mean installed in WP or Woocommerce ext. ?

rsaravanan commented 7 years ago

Yes. I have disabled other extensions like Woocomerce Brands Pro, Theme Check which I have used in my website. Now Woocommerce and WooCommerce Razorpay Payments are only plugin is activated on my website.

Still showing the same error.

captn3m0 commented 7 years ago

@rsaravanan Can you provide a link to your website?

rsaravanan commented 7 years ago

http://stage.zohomart.com/

rsaravanan commented 7 years ago

@captn3m0 any update ?

captn3m0 commented 7 years ago

Thanks a lot, I've been able to replicate the issue. You'll get an update once we push out a fix.

Meanwhile, since this is just a notice, you can prevent it by setting WP_DEBUG to false in your wp-config.php. This should be the case for your production site.

rsaravanan commented 7 years ago

Thanks @captn3m0

captn3m0 commented 7 years ago

@rsaravanan I've pushed out a new release (1.3.2) for this: https://wordpress.org/plugins/woo-razorpay/

rsaravanan commented 7 years ago

Thanks @captn3m0