Note that there are some explanatory texts on larger screens.

plurals
  1. POMagento: Headers already sent, Am Debugging, trying to understand output
    primarykey
    data
    text
    <p>I am aware of a number of posts on this topic - the most comprehensive of which is <a href="https://stackoverflow.com/questions/4670031/magento-debug-headers-already-sent-error">here</a>.</p> <p>My particular gremlin looks like this: (without further logging)</p> <pre><code>2012-04-17T00:28:50+00:00 DEBUG (7): HEADERS ALREADY SENT: &lt;pre&gt;[0] /domains/bodhi.uk.com/subdomains/dev/app/code/core/Mage/Core/Controller/Response/Http.php:51 [1] /domains/bodhi.uk.com/subdomains/dev/lib/Zend/Controller/Response/Abstract.php:766 [2] /domains/bodhi.uk.com/subdomains/dev/app/code/core/Mage/Core/Controller/Response/Http.php:89 [3] /domains/bodhi.uk.com/subdomains/dev/app/code/core/Mage/Core/Controller/Varien/Front.php:188 [4] /domains/bodhi.uk.com/subdomains/dev/app/code/core/Mage/Core/Model/App.php:349 [5] /domains/bodhi.uk.com/subdomains/dev/app/Mage.php:640 [6] /domains/bodhi.uk.com/subdomains/dev/index.php:80 </code></pre> <p></p> <p>This can occur loading the homepage on dev.bodhi.uk.com</p> <p>Following the accepted answer in the linked post, creates a list of around 500 files, that are being included - not a practical method for debugging (especially when I may not recognise the issue when looking at it - I am currently assuming that I am looking for whitespace prior to a <p>For reference the output of the above is here on <a href="http://pastebin.com/KRXPhun8" rel="nofollow noreferrer">pastebin</a></p> <p>Using the advice in the last comment (that appeared to work for the OP), and adding:</p> <pre><code> $headers = array(); foreach ($this-&gt;_headers as $i =&gt; $header) { $headers[$header['name']] = $header; } $this-&gt;_headers = array_values($headers); Mage::Log(array_values($headers)); </code></pre> <p>Gives the unexpected responce:</p> <pre><code>2012-04-17T00:28:50+00:00 DEBUG (7): Array ( [0] =&gt; Array ( [name] =&gt; Content-Type [value] =&gt; text/html; charset=UTF-8 [replace] =&gt; ) ) </code></pre> <p>Ultimately I need to prevent this error, and I am struggling for a next step!</p> <p>PS: I have also tried Alan's responce in comment 1, however the format of Abstract.php has changed (I am using version 1.6.2), and as I get no further output, I suspect I am not logging things correctly.</p> <p>Thanks in advance!</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload