Title: Installation Problem
Last modified: October 3, 2020

---

# Installation Problem

 *  [mindstuff](https://wordpress.org/support/users/mindstuff/)
 * (@mindstuff)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/installation-problem-156/)
 * Hi
    After Installing and activating the Razorpay quick payment plugin one error
   is appearing the Error is: wp_enqueue_script was called incorrectly. Scripts 
   and styles should not be registered or enqueued until the wp_enqueue_scripts,
   admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered
   by the jquery handle. Please see Debugging in WordPress for more information.(
   This message was added in version 3.3.0.) in /home/public_html/sitename.in/wp-
   includes/functions.php on line 5225
 * Warning: Cannot modify header information – headers already sent by (output started
   at /home/public_html/sitename.in/wp-includes/functions.php:5225) in /home/public_html/
   sitename.in/wp-includes/functions.php on line 6270
 * Warning: Cannot modify header information – headers already sent by (output started
   at /home/public_html/sitename.in/wp-includes/functions.php:5225) in /home/public_html/
   sitename.in/wp-admin/includes/misc.php on line 1310
 * Please Help me How to solve this error
    -  This topic was modified 5 years, 8 months ago by [mindstuff](https://wordpress.org/support/users/mindstuff/).

Viewing 6 replies - 1 through 6 (of 6 total)

 *  [intolap](https://wordpress.org/support/users/intolap/)
 * (@intolap)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/installation-problem-156/#post-13638384)
 * We also faced this issue in one of our client’s projects. Seems the developer
   is not responsive on this thread.
 * Kindly inform me if you have found any solution to this.
 *  [intolap](https://wordpress.org/support/users/intolap/)
 * (@intolap)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/installation-problem-156/#post-13638516)
 * Replace add_action(‘plugins_loaded’, ‘wordpressRazorpayInit’, 0); with add_action(‘
   init’, ‘wordpressRazorpayInit’, 0); turns off the issue. But I am seeing another
   issue, I doubt this has to do with their checkout.js
 * Uncaught Error: Invalid options
    at $ (checkout.js:1) at new jt (checkout.js:
   1) at openCheckout ((index):222) at Object.success ((index):215) at i (jquery.
   js:2) at Object.fireWith [as resolveWith] (jquery.js:2) at x (jquery.js:4) at
   XMLHttpRequest.c (jquery.js:4)
 *  Plugin Author [Razorpay](https://wordpress.org/support/users/razorpay/)
 * (@razorpay)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/installation-problem-156/#post-13641994)
 * Hi [@mindstuff](https://wordpress.org/support/users/mindstuff/) [@intolap](https://wordpress.org/support/users/intolap/)
 * If you can share more details about the version, it will be helpful for us to
   debug.
 * Regards,
    Razorpay
 *  [intolap](https://wordpress.org/support/users/intolap/)
 * (@intolap)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/installation-problem-156/#post-13642016)
 * Hello,
 * After installing and activating the latest version of the plugin, I see the below
   error.
 * wp_enqueue_script was called incorrectly. Scripts and styles should not be registered
   or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts
   hooks. This notice was triggered by the jquery handle. Please see Debugging in
   WordPress for more information. (This message was added in version 3.3.0.) in/
   home/public_html/sitename.in/wp-includes/functions.php on line 5225
 * Trying to debug the issue, I have replaced the line add_action(‘plugins_loaded’,‘
   wordpressRazorpayInit’, 0); with add_action(‘init’, ‘wordpressRazorpayInit’, 
   0); on the main plugin file at the root.
 * But regardless of the change, I see another issue when clicked on the Pay with
   Razorpay button generated by the shortcode. The error is:
 * Uncaught Error: Invalid options
    at $ (checkout.js:1) at new jt (checkout.js:
   1) at openCheckout ((index):222) at Object.success ((index):215) at i (jquery.
   js:2) at Object.fireWith [as resolveWith] (jquery.js:2) at x (jquery.js:4) at
   XMLHttpRequest.c (jquery.js:4)
 * To verify if the checkout.js has any issue, I integrated the Razorpay manual 
   checkout using the GitHub library, it is working fine.
 * Hope you can help.
 *  Plugin Author [Razorpay](https://wordpress.org/support/users/razorpay/)
 * (@razorpay)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/installation-problem-156/#post-13642044)
 * [@intolap](https://wordpress.org/support/users/intolap/)
 * Can you please try to install the [1.2.2](https://github.com/razorpay/razorpay-quick-payments/releases/tag/1.2.2)
   version and test it once.
 * But we are not able to reproduce this checkout.js error. Please test it with 
   version 1.2.2
 *  [intolap](https://wordpress.org/support/users/intolap/)
 * (@intolap)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/installation-problem-156/#post-13642165)
 * On activation, I see this.
 * The plugin generated 233 characters of unexpected output during activation. If
   you notice “headers already sent” messages, problems with syndication feeds or
   other issues, try deactivating or removing this plugin.
 * On the front end, click on the button, I see this…
 * Uncaught Error: Invalid options
    at $ (checkout.js:1) at new jt (checkout.js:
   1) at openCheckout ((index):243) at Object.success ((index):236) at i (jquery.
   js:2) at Object.fireWith [as resolveWith] (jquery.js:2) at x (jquery.js:4) at
   XMLHttpRequest.c (jquery.js:4)
 * Note: I tried isolating the Razorpay plugin with 2020 theme but the same above
   issue.
 * Additionally, when I deactivated all the plugins except RZP along with 2020 theme.
 * I see this…
 * Uncaught ReferenceError: jQuery is not defined

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Installation Problem’ is closed to new replies.

 * ![](https://ps.w.org/razorpay-quick-payments/assets/icon-256x256.png?rev=2256765)
 * [Razorpay Quick Payments](https://wordpress.org/plugins/razorpay-quick-payments/)
 * [Support Threads](https://wordpress.org/support/plugin/razorpay-quick-payments/)
 * [Active Topics](https://wordpress.org/support/plugin/razorpay-quick-payments/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/razorpay-quick-payments/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/razorpay-quick-payments/reviews/)

 * 6 replies
 * 3 participants
 * Last reply from: [intolap](https://wordpress.org/support/users/intolap/)
 * Last activity: [5 years, 7 months ago](https://wordpress.org/support/topic/installation-problem-156/#post-13642165)
 * Status: not resolved