Closed (fixed)
Project:
Mobile Tools
Version:
6.x-2.3
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
26 Aug 2011 at 00:15 UTC
Updated:
22 Jun 2012 at 14:31 UTC
After enabling MT, I get a consistent error at the bottom of every page. IIRC it's a Javascript error. It indicates a line just before the end of the page, and character 5 every time.
When I View Source, I see that the following is added when MT is enabled, and is not there when MT is disabled:
<script type="text/javascript" charset="utf-8"> addEventListener('load', function() {
setTimeout(hideAddressBar, 0);
}, false);
function hideAddressBar() {
window.scrollTo(0, 1);
}</script>
Comments
Comment #1
VanessaM commentedI also get an error but only in IE.
Does anyone have a solution?
Thanks!
Comment #2
nickspages commentedI also get the exact error on IE. Really could use a fix for this.
Nick
Comment #3
VanessaM commentedComment #4
VanessaM commentedreally strange but after uninstalling this module, flushing all caches, and reinstalling the module again, this error finally went away :)
but then I discovered that when I defined the mobile URL the same as the desktop URL then the error returned.
So finally I understand how to avoid this error. Hope this helps those who were as frustrated by this error as I was!
Comment #5
Brainwrap commentedTHANK YOU! This was driving me crazy.
I've disabled the whole Mobile Tools suite for now (I was just experimenting with it anyway). This still doesn't explain *why* it caused this error, but at least I know how to get rid of it!
Comment #6
devin carlson commentedThis was fixed by #1623020: Remove mobile_tools_footer().