Cannot reproduce 'undefined' is null or not an object on IE

Sadik B

Well-known member
I have searched for this, and the only reference to this error on xf.com is in this offtopic thread

http://xenforo.com/community/thread...or-comes-after-using-ie8-for-15-minutes.8334/

Way to reproduce:

1. Open XF in IE 8/7 and Click on Post New Thread. After TinyMCE editor loads, click on the Insert Image/Insert Video buttons.

2. IE reports Javascript Error on Page as shown in screenshot below:

error1.gif

3. This is the error prompt,

error2.gif

4. And here's the error

Code:
Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0)
Timestamp: Sun, 26 Jun 2011 06:52:46 UTC
 
Message: 'undefined' is null or not an object
Line: 724
Char: 5
Code: 0
URI: http://xenforo.com/community/js/tinymce/themes/xenforo/editor_template.js?_v=170916bd

To ensure that I was not picking the error due to loading a cached version of the javascript files, I cleaned my PC IE cache and then used CCleaner to ensure no cached traces are left. Opened IE again, and same error. Obviously I first encountered this error on my own site and then tested here at xf.com and same is coming.

I did some research and a stray comma in the editor_template.js code *may* be the cause. This is annoying as inserting images/vids in IE is not possible.
 
I'm going to mark this as resolved / not a bug - if someone finds a way to reproduce the problem, post in this thread and report the post to get our attention.
 
I'm going to mark this as resolved / not a bug - if someone finds a way to reproduce the problem, post in this thread and report the post to get our attention.
I get this on IE 9 following what the OP said to do to reproduce the problem in Console

Code:
SCRIPT438: Object doesn't support property or method 'count'
xenforo.js?_v=170916bd, line 2115 character 4
SCRIPT438: Object doesn't support property or method 'count'
xenforo.js?_v=170916bd, line 2115 character 4
SCRIPT438: Object doesn't support property or method 'count'
xenforo.js?_v=170916bd, line 2115 character 4
SEC7113: CSS was ignored due to mime type mismatch
?_v=170916bd
XenForo.init() 2ms. jQuery 1.4.4, 1.2.5
SCRIPT438: Object doesn't support property or method 'count'
xenforo.js?_v=170916bd, line 2115 character 4
SCRIPT438: Object doesn't support property or method 'count'
xenforo.js?_v=170916bd, line 2115 character 4
SCRIPT438: Object doesn't support property or method 'count'
xenforo.js?_v=170916bd, line 2115 character 4
SCRIPT438: Object doesn't support property or method 'count'
xenforo.js?_v=170916bd, line 2115 character 4
SCRIPT438: Object doesn't support property or method 'count'
xenforo.js?_v=170916bd, line 2115 character 4
 
I get this on IE 9 following what the OP said to do to reproduce the problem in Console

Code:
SCRIPT438: Object doesn't support property or method 'count'
xenforo.js?_v=170916bd, line 2115 character 4
SCRIPT438: Object doesn't support property or method 'count'
xenforo.js?_v=170916bd, line 2115 character 4
SCRIPT438: Object doesn't support property or method 'count'
xenforo.js?_v=170916bd, line 2115 character 4
SEC7113: CSS was ignored due to mime type mismatch
?_v=170916bd
XenForo.init() 2ms. jQuery 1.4.4, 1.2.5
SCRIPT438: Object doesn't support property or method 'count'
xenforo.js?_v=170916bd, line 2115 character 4
SCRIPT438: Object doesn't support property or method 'count'
xenforo.js?_v=170916bd, line 2115 character 4
SCRIPT438: Object doesn't support property or method 'count'
xenforo.js?_v=170916bd, line 2115 character 4
SCRIPT438: Object doesn't support property or method 'count'
xenforo.js?_v=170916bd, line 2115 character 4
SCRIPT438: Object doesn't support property or method 'count'
xenforo.js?_v=170916bd, line 2115 character 4

Thanks Vodkaholic. Can you reproduce this on IE7 / IE8? I just tried it again here and still the same error comes. So this is definitely appearing on my Laptop. I will try this tomorrow on my wife's Laptop and see if I ca reproduce this there too.
 
That's to do with IE representing that its console supports count() but failing to do so - it's not related to this issue.
 
Thanks Vodkaholic. Can you reproduce this on IE7 / IE8? I just tried it again here and still the same error comes. So this is definitely appearing on my Laptop. I will try this tomorrow on my wife's Laptop and see if I ca reproduce this there too.
I only have IE9 don't use it much not sure where the error panel is tbh lol


That's to do with IE representing that its console supports count() but failing to do so - it's not related to this issue.
Worth a shot if it helped it helped if it didn't no loss :) but thanks for explaining them errors.
 
Top Bottom