Drupal is not defined Error
emackn - October 30, 2009 - 15:29
| Project: | jQuery Compatibility Mode |
| Version: | 5.x-1.4 |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed |
Description
Site is using jquery update and mootools, and mootools was conflicting with google analytics so i went to your module. The other errors went away, but now I get the following javascript error when trying to use your module:
Drupal is not defined
http://example.com/jquery_compatibility_mode/misc/drupal.js
Line 30
And not sure if it is related, but when I hit, http://example.com/jquery_compatibility_mode/misc/drupal.js, i get a white screen. Shouldn't that print out the javascript of the file?

#1
Well, not sure how this was working before. but I patched it to work for me. I renamed the hook_init call to get called by a hook_menu callback.
#2
spoke too soon, now im getting "zend_mm_heap corrupted" messages in my httpd error log when hitting /user, NICE!
#3
If you still need help with this let me know. My stupid email was sending drupal notifications to junk so I was never notified that an issue was brought up. Anyways, the drupal.js should not be a white page so somethin is up on your end. This module can either be a godsend or a nightmare because its dealing with the worst language in the history of man (javascript). When it works, its great. When things mess up, its a pain in the ...... to figure out whats wrong. I do however use it quite successfully in integrating mootools and jquery quite often. Whoever invented the $( idea needs to have a bullet put between their little pea for a brain :)
#4