Log messages displaying twice?

7 messages Options
Embed this post
Permalink
redleader () Log messages displaying twice?
Reply Threaded More More options
Print post
Permalink
Hello,

I am using the Fire Ignition library for integrating FirePHP and Code Igniter.  I have just set it up and have just outputted a test message (well a "WARN" level message) and it appears to be outputted twice.

Here's what FirePHP is reporting in FireBug:


And here's the code that makes the call (highlighted near the bottom in red):


The obvious explanation is that my code is being run twice but I have debugged my code and that doesn't seem to be happening.  This is the only call to FirePHP so I don't understand why it is outputting twice.

Is anyone else getting this issue?

Thanks for any help you can offer.
Christoph Dorn () Re: Log messages displaying twice?
Reply Threaded More More options
Print post
Permalink
Please check the response headers to see if the message is being sent twice. If you cannot interpret them feel free to post them here and I'll take a look.

Once we know on what side the problem lies we can try and find a solution for it.

In the past the extension has been known to display messages twice in some situations due to some limitations of Firebug but all that should be resolved now.
redleader () Re: Log messages displaying twice?
Reply Threaded More More options
Print post
Permalink
Good idea.  Here is the response header:


Interestingly there's just one of them.
Christoph Dorn () Re: Log messages displaying twice?
Reply Threaded More More options
Print post
Permalink
Do you get the message twice every time or only in some instances? Sometimes when you browse to a page the messages will show up twice (especially if firebug was minimized). Refreshing the page usually fixes this by only showing one message.

If you can reproduce it please outline the steps so I can try and replicate it.
redleader () Re: Log messages displaying twice?
Reply Threaded More More options
Print post
Permalink
Okay, so I did a few tests:

1) Opened a new instance of Firefox (no others were running) and loaded the page.  The page loads, I open Firebug to see the console and nothing is in there:


However, there is stuff in the other Firebug tabs (see the cookie tab below):



2) I close Firebug down, refresh the page and open it up again and that's when I get the double message:



3) When I minimize the Firebug window (to its home on Firefox's status bar) and refresh the page four times in a row, then open it again, I get 8 messages!  Which makes sense I guess:



It's a fresh "installation" of Code Igniter (1.7.1) and a fresh install of the FirePHP addon to Firefox 3.0.7.  I then added the FireIgnited plugin in to CI (and also this "FireIgnited extended plugin": http://codeigniter.com/wiki/FirePHP_4_CI/).

The code you saw in my previous post is the only place I've added a call to FirePHP.

Any ideas?
Christoph Dorn () Re: Log messages displaying twice?
Reply Threaded More More options
Print post
Permalink
Thanks for the detailed info. This seems to be the same bug I mentioned before.

I will be fixing this in FirePHP 0.4

Please see the following ticket for future updates:

http://code.google.com/p/firephp/issues/detail?id=57
redleader () Re: Log messages displaying twice?
Reply Threaded More More options
Print post
Permalink
Glad to be of some help!

Thanks for the link to the bug tracking ticket and good luck fixing it.