4 replies [Last post]
ioannis's picture
Offline
Joined: 02/12/2010

I am getting the following error

Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; InfoPath.2; OfficeLiveConnector.1.4; OfficeLivePatch.1.3)
Timestamp: Mon, 15 Feb 2010 00:45:19 UTC

Message: 'document.getElementById(...)' is null or not an object
Line: 2
Char: 2
Code: 0
URI: http://***/sites/all/themes/starfish/js/suckerfish.js?x

But the menu is working fine. The error is displaying on left down corner of ie 8 within a yellow triangle.

Is there any way to fix it ?

Rob D.'s picture
Offline
Joined: 04/09/2008

Weird, it's not happening on my end - and yet I've had another report of this too.

Try this alternate version of template.php I've attached and see if it cures it (you'll have to clear the cache at Administer > Site Config > Performance after you overwrite the file).

EDIT: There was a problem with the suckerfish.js script. I've attached an alternate, so you should overwrite that too (the file is in starfish/js).

AttachmentSize
template.php.txt 2.77 KB
suckerfish.js_.txt 408 bytes
ioannis's picture
Offline
Joined: 02/12/2010

Now its ok.

protoziod's picture
Offline
Joined: 04/18/2010

Hi Rob,

I am having the same error on IE8 (but works on Chrome). I have replaced the files as you suggest as well as cleared the cache. The error still persists.

Also, I am unable to login using IE8 (but works with Chrome). When I hit the submit button, the same page reloads. I don't know if this is related to the suckerfish.js error or something else.

Any thoughts on what might be going on?

Thanks

protoziod's picture
Offline
Joined: 04/18/2010

I was able to fix the error by doing the following:

<==== From Drupal site http://drupal.org/node/366367 ===>
Yes, thank you. This was also the fix I needed. However, I am working with Drupal 6.x and using IE 8 - and this is a year after the last post noticed the issue.

I changed my suckerfish.js by inserting:

if (document.getElementById("suckerfishmenu") == null) return;

as show below:

sfHover = function()
{if (document.getElementById("suckerfishmenu") == null) return;
var sfEls = document.getElementById("suckerfishmenu").getElementsByTagName("LI");
<===End ===>

Support hours: 9AM - 5PM EST, Mon - Fri

Follow us on: