Active
Project:
Webtrends
Version:
6.x-1.0
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
29 Mar 2011 at 23:20 UTC
Updated:
13 Apr 2011 at 03:32 UTC
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
Comment #1
marktfrey commentedNo, 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.