-
Notifications
You must be signed in to change notification settings - Fork 164
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Uncaught TypeError: Cannot read property 'data' of undefined #2448
Comments
I did more testing and realized that the error happens when I use any Caldera form. |
I deactivated Caldera Easy Pods (installed version 1.1.8) and the error was gone, but I lost the functionality of the page! |
I try https://wordpress.org/support/topic/issue-processing-caldera-forms-possible-js-minification-issue/ but it did not work. |
I have update Caldera Forms to version 1.6.1 and the error persists. |
I had some JavaScript errors, but in the Pods Template editor, not when submitting forms. So I'm not sure if the referenced patch fixes this. |
I'll try and return the result |
Is WP_DEBUG true? Cause when you get ajax reponse of submitted form and there are notices or warnings in response the json data is not parsable and so data object will be undefined. |
I am going to close this in favor of #2820 which will address the root issue. |
Will be fixed via #2822 |
* develop: During form submission, start buffer, then flush it. #2820 and #2448 and #2788 Set window.cf2 if not an object #2821 #2814 schedule deletes in cf2 fiel fields and cleanup that handler a bit #2814 schedule deletes #2814 handle deleting directory if empty Only try to delete file, if it exists #2814 Test to prove that the delete file job will make an uncaught exception in some cases #2814 Make new job for deleting tests work #2814 New job for deleting files #2814 - failing tests Make new utility methods needed for #2814 and #2794 work Failing tests for utility methods needed for #2814 and #2794 #2814 rm dead code and add inline docs to existing delete job # Conflicts: # cf2/functions.php
What Version Of Caldera Forms, WordPress and PHP Are You Using?
Short Debug Information
WordPress Version: 4.9.5PHP Version: 5.6.35MySQL Version: 5.6.36Caldera Forms Version: 1.6.0WP_DEBUG:
Does Your Issue Persist When You Disable All Other Plugins and Switch To The Default Theme?
There seems to be a conflict with the Pods plugin (I have version 2.7.1). When I deactivate Pods, the javascript error disappears. I also have Caldera Easy Pods installed (version 1.1.8), Caldera Forms version 1.6.0.
What Is The Unexpected Behaviour?
I filled out the form and clicked Submit. Nothing happened.
What PHP Errors Have You Logged While Reproducing This Bug?
No PHP errors or notices related to this.
What JavaScript Errors Have You Seen While Reproducing This Bug?
The error below is from the Chrome console. The error comes up when entering a text in one of the form fields.
Uncaught TypeError: Cannot read property 'data' of undefined
at Object.error (ajax-core.min.js?ver=1.6.0:1)
at Object.request_error (jquery-baldrick.min.js?ver=1.6.0:1)
at c (jquery-baldrick.min.js?ver=1.6.0:1)
at Object.error (jquery-baldrick.min.js?ver=1.6.0:1)
at i (jquery.js:2)
at Object.fireWith [as rejectWith] (jquery.js:2)
at y (jquery.js:4)
at Object.abort (jquery.js:4)
at Object.request (jquery-baldrick.min.js?ver=1.6.0:1)
at c (jquery-baldrick.min.js?ver=1.6.0:1)
The text was updated successfully, but these errors were encountered: