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.
Drupal.ajax is not a constructor
nodejs/nodejs_ajax/nodejs_ajax.js?m92at0
Line 9
line 9 is: [Break On This Error] Drupal.nodejs_ajax = new Drupal.ajax...js_ajax', element, element_settings);
I get this in firebug
Comments
Comment #1
julien CreditAttribution: julien commentedCan you give more details on how to reproduce the bug? like your drupal core version, jquery version etc? thanks.
Comment #2
SocialNicheGuru CreditAttribution: SocialNicheGuru commentedDrupal 7.28
jquery_update 7.2.x enabled
jquery 1.7.1
I have not enabled this module until recently thinking that I could use it for all Drupal ajax.
I am not sure why Drupal.ajax is not defined here. Actually how can I check if nodejs_ajax_init adds it to the page.
I tested with all aggregation off.
Comment #3
SocialNicheGuru CreditAttribution: SocialNicheGuru commentedAARRRGGHHHH.
I applied a patch in the queue to not include nodejs on certain pages namely admin/.
Those were the pages that I had problems with. So sorry.
Also note for the future that once the patch makes it into nodejs all the nodejs submodules should check to see if nodejs.js is included first.
Comment #4
SocialNicheGuru CreditAttribution: SocialNicheGuru commentedHmmmm....
I removed the patch and I am still getting this error.
It is only happening on node/edit or node/add pages