• 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 4 years, 1 month ago by mindstuff.
Viewing 6 replies - 1 through 6 (of 6 total)
  • intolap

    (@intolap)

    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

    (@intolap)

    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

    (@razorpay)

    Hi @mindstuff @intolap

    If you can share more details about the version, it will be helpful for us to debug.

    Regards,
    Razorpay

    intolap

    (@intolap)

    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

    (@razorpay)

    @intolap

    Can you please try to install the 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

    (@intolap)

    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.