Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix HEADERS ALREADY SENT from Mage_Core_Block_Template #2978

Merged
merged 2 commits into from
Feb 1, 2023
Merged

Fix HEADERS ALREADY SENT from Mage_Core_Block_Template #2978

merged 2 commits into from
Feb 1, 2023

Conversation

luigifab
Copy link
Contributor

@luigifab luigifab commented Jan 19, 2023

Description

This PR fix a little error introduced by #2623 (comment).

Manual testing scenario

Create an error in app/design/frontend/rwd/default/template/persistent/customer/form/login.phtml, for example add: Mage::get();. Go to the customer login page.

Before this PR, when developer is disabled:

  • exception.log: Error: Call to undefined method Mage::get() in app/design/frontend/rwd/default/template/persistent/customer/form/login.phtml:22
  • but also system.log: HEADERS ALREADY SENT: \<pre>[0] app/code/core/Mage/Core/Controller/Response/Http.php:45

Apply the PR and try again, the system.log is not created.

Contribution checklist

  • Pull request has a meaningful description of its purpose
  • All commits are accompanied by meaningful commit messages
  • All automated tests passed successfully (all builds are green)
  • Add yourself to contributors list

@github-actions github-actions bot added the Component: Core Relates to Mage_Core label Jan 19, 2023
Copy link
Contributor

@kiatng kiatng left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested.

@fballiano fballiano merged commit 3cc25e9 into OpenMage:1.9.4.x Feb 1, 2023
fballiano added a commit that referenced this pull request Feb 1, 2023
@fballiano
Copy link
Contributor

merged and v20ed

@luigifab luigifab deleted the throwable-template branch February 2, 2023 08:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: Core Relates to Mage_Core
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants