Skip to content

Headers already sent in Magento #25

@trev

Description

@trev

I get the following when viewing a category page in Magento:

</pre>
2014-02-05T06:28:00+00:00 DEBUG (7): HEADERS ALREADY SENT: <pre>[0] /vagrant/app/code/core/Mage/Core/Controller/Response/Http.php:52
[1] /vagrant/lib/Zend/Controller/Response/Abstract.php:766
[2] /vagrant/app/code/core/Mage/Core/Controller/Response/Http.php:83
[3] /vagrant/app/code/core/Mage/Core/Controller/Varien/Front.php:184
[4] /vagrant/app/code/core/Mage/Core/Model/App.php:354
[5] /vagrant/app/Mage.php:684
[6] /vagrant/index.php:87
</pre>

I've identified the issue to be somewhere around VafJs_Submits and VafJs_Loader_Ajax classes in vafAjax.js.include.php.

If you add a a simple return "test"; statement right after the function main() { declaration for both classes you don't get any Headers already sent... mesage. Which I supposed indicates that the problem reside in include().

I'm pretty stumped to be honest, I also don't understand why you use output buffering and not just return a string from a a wrapping function in your included file.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions