While developing an extension, I tried to echo/var_dump a variable. It outputs to the very top of the page as expected. But, it throws this error right underneath it:
A PHP Error was encountered
Severity: Warning
Message: Cannot modify header information - headers already sent by (output started at /Applications/MAMP/htdocs/site/system/expressionengine/extensions/ext.my_extension.php:35)
Filename: libraries/Functions.php
Line Number: 739It also doesn’t send any page headers. However, the rest of the page loads fine.
What’s going on here?
Moved to Development and Programming by Moderator
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.