Components is not defined

30 views
Skip to first unread message

Saphod

unread,
Jan 18, 2009, 5:56:29 PM1/18/09
to Firebug
Hi,

I am using WordPress, and I always get a "Components is not defined"
error whenever the SACK functionality (AJAX) seems to be used.

As I have posted this issue on my website and got some additional
comments, I would like you to visit my post under

http://www.saphod.net/2008/10/17/firebug-and-the-mysterious-components-is-not-defined/

because I don't want to repeat myself here.

I hope this issue hasn't been posted before, if so I apologize for
posting it again - I haven't found it using the search.

Thanks!

Kind regards
Marco

John J Barton

unread,
Jan 18, 2009, 11:33:12 PM1/18/09
to Firebug
There several bug reports involving wordpress:
http://code.google.com/p/fbug/issues/list?can=2&q=wordpress

jjb

On Jan 18, 2:56 pm, Saphod <grunzwanzl...@googlemail.com> wrote:
> Hi,
>
> I am using WordPress, and I always get a "Components is not defined"
> error whenever the SACK functionality (AJAX) seems to be used.
>
> As I have posted this issue on my website and got some additional
> comments, I would like you to visit my post under
>
> http://www.saphod.net/2008/10/17/firebug-and-the-mysterious-component...

Saphod

unread,
Jan 19, 2009, 5:11:18 AM1/19/09
to Firebug
Thanks - I started a new issue #1396:
http://code.google.com/p/fbug/issues/detail?id=1396

John J Barton

unread,
Jan 19, 2009, 9:57:26 AM1/19/09
to Firebug
Please include some information on why you think this is a Firebug
problem. Based on what you have posted here and the bug report, it
looks like a site error.
jjb

Saphod

unread,
Jan 19, 2009, 5:45:59 PM1/19/09
to Firebug
Please have a look at the website link provided and the comments.
I also posted an issue on the fbug site.

Thousands of bloggers are using WordPress, I think the code should be
valid.
Haven't had this problem in Firebug 1.2.1 (or similar - the one before
1.3.0).

Kind regards
Marco

Saphod

unread,
Jan 19, 2009, 5:52:52 PM1/19/09
to Firebug
Dear readers,

from here on, please refer to
http://code.google.com/p/fbug/issues/detail?id=1396

Otherwise, I will have to double-post each time. :-)

Thanks!

- Marco

John J Barton

unread,
Jan 19, 2009, 6:02:30 PM1/19/09
to Firebug
The line with the error message is, according to your pages:
this.xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
It's not valid code, so it gives an error. Not a great message I
agree. But the error messages are given by Firefox, not by Firebug.

What do you see in Firefox > Tools > Error Console when you see the
message in Firebug? I guess the same message?
jjb

Saphod

unread,
Jan 20, 2009, 2:47:01 AM1/20/09
to Firebug
Hmmm....

On http://www.w3schools.com/php/php_ajax_xmlhttprequest.asp it says
that it is the way to make am AJAX request. The problem - as always -
is that there are 2 possible ways depending on which browser is being
used (FF or IE).

I must admit: I am having some trouble reproducing the error right
this instant - everything is fine. But that's what it was before. It's
hard that it just doesn't appear each time, that makes it harder to
track it down.

Maybe you are right. I can remember that issue being mentioned within
the Javascript console of Firefox, also - I guess. So, if Firebug only
reproduces the messages of the JavaScript console, then indeed it
shouldn't be a Firebug issue.

What amazes me is that I never had that issue before, it kind of
"suddenly" arose.

On my website post, a visitor made a comment that he changed the order
of this AJAX request within the createAJAX function of tw-sack.js to
first check for Firefox and then for IE, and that it helped preventing
the error.

I am still not convinced to believe that the problem lies within a
JavaScript code that is so heavily used. But maybe I will address the
author of that JavaScript.

Thanks jjb, I will try to keep you updated here.

Kind regards
Marco

Saphod

unread,
Jan 20, 2009, 3:02:00 AM1/20/09
to Firebug
Also, please see this:
http://wordpress.org/support/topic/215395


On 20 Jan., 08:47, Saphod <grunzwanzl...@googlemail.com> wrote:
> Hmmm....
>
> Onhttp://www.w3schools.com/php/php_ajax_xmlhttprequest.aspit says

Saphod

unread,
Jan 20, 2009, 5:08:10 AM1/20/09
to Firebug

Brian Di Palma

unread,
Jan 20, 2009, 4:56:56 PM1/20/09
to fir...@googlegroups.com
From your post ::


"On my website post, a visitor made a comment that he changed the order
of this AJAX request within the createAJAX function of tw-sack.js to
first check for Firefox and then for IE, and that it helped preventing
the error."

That's because it was doing this "new ActiveXObject("Microsoft.XMLHTTP");"
which is NOT correct javascript that's why the error was happening - it has nothing do
with Firebug. This error would happen but you would never see it without Firebug
because Firefox will only show it in the error console.

The error is being generated by poor wordpress code. Open the bug with them and close the
bug in google code imo.

Saphod

unread,
Jan 21, 2009, 3:20:22 AM1/21/09
to Firebug
> The error is being generated by poor wordpress code. Open the bug with them
> and close the bug in google code imo.

OK, on http://www.w3schools.com/php/php_ajax_xmlhttprequest.asp, it is
also recommended to first check for
Mozilla etc. and THEN for IE.

I'll contact the author of tw-sack.js again.

Still... what is meant by "Components"? And why does this error only
happen occasionally?

Well, as long as this is not clear to me, I'll leave the issue.

- Marco



On 20 Jan., 22:56, Brian Di Palma <off...@gmail.com> wrote:
> From your post ::
>
> "On my website post, a visitor made a comment that he changed the order
> of this AJAX request within the createAJAX function of tw-sack.js to
> first check for Firefox and then for IE, and that it helped preventing
> the error."
>
> That's because it was doing this "new ActiveXObject("Microsoft.XMLHTTP");"
> which is NOT correct javascript that's why the error was happening - it has
> nothing do
> with Firebug. This error would happen but you would never see it without
> Firebug
> because Firefox will only show it in the error console.
>
> The error is being generated by poor wordpress code. Open the bug with them
> and close the
> bug in google code imo.
>
> On Tue, Jan 20, 2009 at 7:47 AM, Saphod <grunzwanzl...@googlemail.com>wrote:
>
>
>
> > Hmmm....
>
> > Onhttp://www.w3schools.com/php/php_ajax_xmlhttprequest.aspit says
Reply all
Reply to author
Forward
0 new messages