Export to GitHub

firephp - issue #111

detectClientExtension() function doesn't work for me


Posted on Jun 12, 2009 by Massive Bear

What steps will reproduce the problem?

  1. Install/use FirePHP as described on www.firephp.org site.

What is the expected output? What do you see instead?

I'm expecting FirePHP debug output in console, instead I'm getting nothing.

What version of the product are you using? On what operating system?

Arch Linux, Firefox 3.0.10, Firebug 1.3.3, FirePHP - extension 0.3, FirePHP - PHP library 0.3

Please provide any additional information below.

I remember, a month ago, when I played with FirePHP, all worked as expected. Since then, there was no significant changes on my computer.

Today, I was unable to get FirePHP debug outpot into Firebug console. I have all Firebug extensions/panels enabled.

I have tried to reinstall exensions, restarted XAMPP, computer, created new Firefox profile, cleared Private Data, Cookies etc...

The thing is that site www.firephp.org reports "You have FirePHP installed.", and PHP library detectClientExtension() function returns false.

var_dump($this->getUserAgent()); returns: string 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.10) Gecko/2009042810 GranParadiso/3.0.10' (length=89)

preg_match_all('/\sFirePHP\/([.|\d]*)\s?/si',$this->getUserAgent(),$m) returns: int 0

Here is Request Header from Firebug Net panel for my local XAMPP site:

Host dev.playground.com User-Agent Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.10) Gecko/2009042810 GranParadiso/3.0.10 Accept text/html,application/xhtml+xml,application/xml;q=0.9,/;q=0.8 Accept-Language en-us,en;q=0.5 Accept-Encoding gzip,deflate Accept-Charset ISO-8859-1,utf-8;q=0.7,*;q=0.7 Keep-Alive 300 Connection keep-alive Cookie kohanasession=04d73af40f3838863811575899b778b9 Cache-Control max-age=0

Here is Request Header from Firebug Net panel for www.firephp.org site: Host www.firephp.org User-Agent Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.10) Gecko/2009042810 GranParadiso/3.0.10 Accept text/html,application/xhtml+xml,application/xml;q=0.9,/;q=0.8 Accept-Language en-us,en;q=0.5 Accept-Encoding gzip,deflate Accept-Charset ISO-8859-1,utf-8;q=0.7,*;q=0.7 Keep-Alive 300 Connection keep-alive Cookie __utma=41579445.1959968774410573300.1244819194.1244822333.1244824982.3; __utmz=41579445.1244819194.1 .1.utmcsr=google|utmccn=(organic)|utmcmd=organic|utmctr=firephp; __utmc=41579445; PHPSESSID=nh526clo efr3htjkubi93iesb2 X-FirePHP-Agent {"firephp.version":"0.3","firephp.version.previous":"0.2.4","firebug.version":"1.3.3"}

Comment #1

Posted on Jun 13, 2009 by Happy Camel

This is a known issue (Issue 110). I am sorry for the inconvenience and time this has cost you. I will be releasing a new version with a fix ASAP.

Comment #2

Posted on Jun 13, 2009 by Happy Camel

Could you please try the attached extension to ensure it is working now without the User-Agent Switcher workaround.

Simply drag the downloaded file into firefox to install.

Attachments

Comment #3

Posted on Jun 14, 2009 by Massive Bear

It's working! Great...

I'm not using User-Agent Switcher.

Best regards, Miodrag Tokić

Status: Duplicate

Labels:
Type-Defect Priority-Medium