Support » Plugin: Ninja Forms - The Easy and Powerful Forms Builder » Cannot read property ‘nonce’ of undefined

  • Resolved Nick Papazetis


    When you click submit before all required fields are filled out, nf returns an error in console.

    Uncaught TypeError: Cannot read property 'nonce' of undefined
        at N.d.resetLabel (front-end.js?ver=3.4.12:1)
        at s (backbone.min.js?ver=1.2.3:1)
        at r (backbone.min.js?ver=1.2.3:1)
        at m (backbone.min.js?ver=1.2.3:1)
        at u.Channel.k.trigger (backbone.min.js?ver=1.2.3:1)
        at u.Channel.submit (front-end.js?ver=3.4.12:3)
        at Object.u._callHandler (front-end-deps.js?ver=3.4.12:23)
        at u.Channel.request (front-end-deps.js?ver=3.4.12:23)
        at (front-end.js?ver=3.4.12:1)
        at s (backbone.min.js?ver=1.2.3:1)
Viewing 9 replies - 1 through 9 (of 9 total)
  • ben.moody


    Similar issue here.

    Following directions for custom server side validation:

    Set errors array for form level errors. Add this array to response array under ‘errors’ node.

    wp_json_encode, echo and then wp_die()

    Is there supposed to be a nonce node in the response object?

    //code example

    //console errors

    Plugin Contributor Justin McElhaney


    @papazetis I am sorry that you are seeing this issue. Can you update Ninja Forms to version 3.4.13 and see if you are having the same issue?
    If you continue to have issues, can you contact our official support through so we can take a closer look at this issue?



    I just tried the new version of the plugin, same behaviour:

    You can see a screenshot of the console error and the json object for the custom validation output:

    @jmcelhaney Issue solved after upgrading to 3.4.13



    I have the same problem using 3.4.13.

    I have used the snippet from this url

    I’m also facing the same issue.

    I’ve tried updating to the latest version (3.4.16) and then again downgrading to 3.4.13, and other versions as well.

    I have recently updated the PHP version in my server to 7.3; then I changed it back to 5.6 since Ninja Forms stopped working. But still nothing.

    I’ve tried deactivating and reactivating the plugin. I’ve tried every possible troubleshoot in the book.

    Also, whenever I update Ninja Forms, it makes all the links in my site to become a sizeless download file (i.e. whenever any link on the site is visited, specially on the admin dashboard, a file starts downloading.) To fix this, I have to keep editing the .htaccess file.

    • This reply was modified 4 months, 1 week ago by Saif.

    We’re also seeing this same error after recently updating ninjaforms for a client (3.4.16). It appears that the form submissions are being saved but the javascript is failing to complete the processing of the returned data.

    I’m seeing exactly the same console error that @benmoody uploaded in an earlier comment.

    Are there any workarounds/fixes for this? Downgrading doesn’t resolve the issue.

    I had the same issue. My problem was that i restricted admin access for subscribers and the form is only visible to logged in users. As it tries to access the admin-ajax URL the form couldn’t be submitted.

    Here is my working function for restricting users from seeing the dashboard but still let them send ajax requests:

    function add_login_check()
    	if (is_admin() && !current_user_can('administrator') && !(defined('DOING_AJAX') && DOING_AJAX)) {
    add_action('admin_init', 'add_login_check');
    • This reply was modified 3 months, 3 weeks ago by Mooklei.

    Facing similar issue when updating from NF 3.4.8 to 3.4.21.

    Tried different troubleshooting without success. Any suggestions?

    Uncaught TypeError: Cannot read property 'nonce' of undefined
        at i.submitErrors (front-end.js?ver=3.4.21:2)
        at p (backbone.min.js?ver=1.4.0:1)
        at f (backbone.min.js?ver=1.4.0:1)
        at l (backbone.min.js?ver=1.4.0:1)
        at u.Channel.n.trigger (backbone.min.js?ver=1.4.0:1)
        at Object.error (front-end.js?ver=3.4.21:3)
        at i (jquery.js?ver=1.12.4-wp:2)
        at Object.fireWith [as rejectWith] (jquery.js?ver=1.12.4-wp:2)
        at x (jquery.js?ver=1.12.4-wp:4)
        at XMLHttpRequest.c (jquery.js?ver=1.12.4-wp:4)
Viewing 9 replies - 1 through 9 (of 9 total)
  • You must be logged in to reply to this topic.