when the module is active the visitors are redirected to a white page which constantly refreshes itself.
Viewing the source shows no body tag but a script tag pointing to webtrends servers.

Could this be caused by a bad value passed in the settings page?

Comments

marktfrey’s picture

No, it's the document.write in the webtrends javascript.

If the DOM is already loaded, the document.write call creates a new, blank document and writes to that. See https://developer.mozilla.org/en/DOM/document.open#section_4 - the key bit being the automatic call to document.open().

See http://drupal.org/node/1004152, 'document.write is evil'. Didn't try the patch, but it should work. You need to get the webtrends.js to create new elements and add them to the DOM instead of writing out the tags.