• Resolved nicheru

    (@nicheru)


    Hi,

    I am having some issue with form submission.
    The form validates the errors but when there are no errors the ajax call does not send any response and there is a js error.
    It is the same ajax call with the first submit(which has errors), I am not sure what is causing this.

    VM85:149 Uncaught TypeError: Cannot read property ‘data’ of undefined
    at Object.error (eval at <anonymous> (jquery.js?ver=1.12.4:1), <anonymous>:149:47)
    at Object.request_error (eval at <anonymous> (jquery.js?ver=1.12.4:1), <anonymous>:107:16)
    at do_helper (eval at <anonymous> (jquery.js?ver=1.12.4:1), <anonymous>:128:30)
    at Object.error (eval at <anonymous> (jquery.js?ver=1.12.4:1), <anonymous>:512:8)
    at i (jquery.js?ver=1.12.4:2)
    at Object.fireWith [as rejectWith] (jquery.js?ver=1.12.4:2)
    at y (jquery.js?ver=1.12.4:4)
    at Object.abort (jquery.js?ver=1.12.4:4)
    at Object.request (eval at <anonymous> (jquery.js?ver=1.12.4:1), <anonymous>:94:54)
    at do_helper (eval at <anonymous> (jquery.js?ver=1.12.4:1), <anonymous>:128:30)

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter nicheru

    (@nicheru)

    Hi, this is a cross domain submission.

    Plugin Author Josh Pollock

    (@shelob9)

    @nicheru – The error that you’re getting means that a PHP error is happening on the server. You should inspect the response to see what it is, or enable PHP debug logging to capture it.

    https://calderaforms.com/2016/05/wordpress-debug-logging/

    Thread Starter nicheru

    (@nicheru)

    Hi Josh,

    I did the debug logging and there are only php notices, nothing that could stop the execution.
    I added some php code in caldera_forms_submit_complete and it is working.

    As what I figured out the error is from the callback function, it does not receive the return values from the submission. Where do I trace this issue?

    Thank you.

    Thread Starter nicheru

    (@nicheru)

    As I was tracing the issue, I found out this code that is aborting the script.

    if( baldrickRequests[opts.params.trigger.prop(‘id’)] ){ baldrickRequests[opts.params.trigger.prop(‘id’)].abort();
    }

    When I commented it, it is now submitting. Will this affect anything if it is commented?

    Thank you.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Form does not submit’ is closed to new replies.