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.
Advanced Forum alters the CSS ID for the node form, and the node form tag is not found, causing a JS error "Cannot call method 'setAttribute' of undefined".
Rather than add specific support for Advanced Forum it seemed like the best approach might be to simply use jQuery to just both #node_form and the more specific form ID in it's selector - this operates as a fallback for Advanced Forum and perhaps other modules.
Comment | File | Size | Author |
---|---|---|---|
#4 | interdiff.txt | 578 bytes | Deciphered |
#4 | obscureurl-2097973-4.patch | 1.13 KB | Deciphered |
#1 | 2097973-obscureurl-advanced-forum.patch | 1.15 KB | Owen Barton |
Comments
Comment #1
Owen Barton CreditAttribution: Owen Barton commentedComment #3
Sswater Shi CreditAttribution: Sswater Shi commentedI meet the same problem and find the same reason.
My solution for reference:
Over "7.x-3.3", file "botcha.recipe.controller.inc", Line 897:
Comment #4
Deciphered CreditAttribution: Deciphered commentedUpdated patch and added a tweak to the Comments rule so that it works if AJAX has changed the ID (which it does).