Search

Cannot modify header information - headers already sent

You mean that? You are not allowed to output anything before using header(). Since you're doing an echo() right before that you're forcing PHP to send all headers and start with the content. Trying to set headers afterwards will result in the error you're seeing now.

The solution: comment out the echo() statement.

Hi phoque, thanks. I removed the var_dump and echo's, and now is redirecting to:
http://beta.marciotoledo.com/internal_error.html/

http://beta.marciotoledo.com/

Resolved, thanks for all: phoque, Lewis, nickdunn.

Here is the final code: https://gist.github.com/59ba4c27d8c92c8b704e

Create an account or sign in to comment.

Symphony • Open Source XSLT CMS

Server Requirements

  • PHP 5.3-5.6 or 7.0-7.3
  • PHP's LibXML module, with the XSLT extension enabled (--with-xsl)
  • MySQL 5.5 or above
  • An Apache or Litespeed webserver
  • Apache's mod_rewrite module or equivalent

Compatible Hosts

Sign in

Login details