Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Im not sure where to open this issue with the Client Side Validation module or here.
Console error.
$.each(Drupal.settings.clientsideValidation.forms, function (f) {
if ($(context).find('#' + f).length || $(context).is('#' + f)) {
update = true;
}
});
When authcache runs authcacheP13nReplaceWith the above Client Side Validation JS throws the following error.
TypeError: t.getAttribute is not a function. (In 't.getAttribute("id")', 't.getAttribute' is undefined)
Comment | File | Size | Author |
---|---|---|---|
#5 | Screen Shot 2016-09-29 at 2.13.30 PM.png | 451.5 KB | lathan |
#5 | Screen Shot 2016-09-29 at 2.13.07 PM.png | 148.6 KB | lathan |
#3 | 2807483-attach-elements-only.diff | 904 bytes | znerol |
Screen Shot 2016-09-27 at 5.40.29 PM.png | 105.14 KB | lathan |
Comments
Comment #2
lathanMaybe just note this some where... I made a choice between the two and was thankfully easy enough to remove clientside validation from my stack.
Comment #3
znerol CreditAttribution: znerol commentedNice catch. I think that might be a combination of bugs in Authcache and Client Side Validation.
Drupal.attachBehaviors
for HTML elements. It looks like it also tries to attach text nodes.$(context).find(selector)
but rather$(selector, context)
.Patch attached for the first problem. Do you mind applying the patch and then report back whether it resolves the incompatibility?
Comment #4
lathan@znerol I owe you a beer, I will get back to you at the soonest.
Comment #5
lathan@znerol Still falling over for me.
Comment #6
znerol CreditAttribution: znerol commentedInteresting. Do you mind checking which data is causing that trouble?
Maybe add a
console.log
statement in authcache_p13n.js:Comment #7
znerol CreditAttribution: znerol commentedI tried to reproduce this problem with Chrome and Firefox to no avail. Which browser/OS do you use? Is there any standard Drupal form where the problem occurs (e.g., the contact form or the comment form)?
Comment #8
lathan@znerol sorry crazy week have not had a gap to look into this, hope to over next day or two.
Comment #9
znerol CreditAttribution: znerol commentedAny updates on this?