We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Error with echo/var_dump in extension

Development and Programming

fusepilot's avatar
fusepilot
1 posts
15 years ago
fusepilot's avatar fusepilot

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: 739

It 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

       
Greg Aker's avatar
Greg Aker
6,022 posts
15 years ago
Greg Aker's avatar Greg Aker

It’s just a byproduct of you outputting something after headers have been sent. your final products won’t be echo’ing from extension methods, so you have nothign to worry about. 😊

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.