Score:0

Uncaught TypeError: Cannot read properties of undefined (reading 'messages') (forms AJAX POST)

td flag

Here I have created a custom module, which has one form in it...An ajax response is called when an Email is entered in form field and it will callback an HTML response.

I have tested this code on my localhost and my own test website I havent seen this error but when i installed my module in main website i could this error...

Here is the error from console.

enter image description here

Thank you in advance

id flag
If there is a custom module we will have to see some of the code. Disable JavaScript aggregation to see the actual file names in the stack trace.
kankari avinash avatar
td flag
Hello @cilefen thank you for your reply... The error is in Clientside_validation(version 3.0.0 rc4) module .. exactly in clientside_validation_jquery/js/cv.jquery.validate.js. ; In line -> e.extend(e.validator.messages, t.clientside_validation_jquery.messages); error is happening
id flag
It seems this is a bug report: https://www.drupal.org/project/clientside_validation/issues/3211333
kankari avinash avatar
td flag
Yeah.. error is cleared when i installed new version(3.0.1) thank you for the Disable JS aggregation idea ..
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.