Export to GitHub

firephp - issue #181

Firefox Plugin does not show logs from redirecting request in console, but logs from the second, redirected request


Posted on Dec 9, 2011 by Grumpy Elephant

What versions and operating system are you using?

OS: Windows Firefox: 8.0 Firebug: 1.8.4 FirePHP Server Library: 0.3.2 Core FirePHP Extension: 0.6.2

What is the problem?

The console does not show the log output produced by a redirecting request. Instead the log output of the target page is shown twice. The network tab does reflect that the correct logging headers are received by FireBug.

What steps will reproduce the problem? 1. This is the code to reproduce the problem: <?php require "Path_TO_FirePHPCore-0.3.2/lib/FirePHPCore/FirePHP.class.php";

function logToFirePhp($message) { $firePhp = FirePHP::getInstance(true); $firePhp->fb('[INFO] - ' . $message, "MyLogger", FirePHP::INFO, array()); }

if (!isset($_GET['redirected'])) { logToFirePhp('First call!'); header("Location: ?redirected=yes"); } else { logToFirePhp('Redirected = yes'); die("Hello World"); }

  1. Go to the page without a query string.
  2. Wait for "Hello World" to appear.
  3. Check FirePHP console.

What is the expected output? What do you see instead? Current Output: "Redirected = yes" is shown twice for both requests.

Expected Output: "First Call" "Redirected = yes"

Comment #1

Posted on Dec 9, 2011 by Grumpy Elephant

Using the DeveloperCompanion does work.

Comment #2

Posted on Dec 9, 2011 by Happy Camel

I'll be fixing this for the FirePHP Extension after FirePHP Extension 0.7 & Firebug 1.9 have been released. As you discovered it works with DeveloperCompanion today.

Status: Accepted

Labels:
Type-Defect Priority-Medium Milestone-Extension-0.8