0

I tried to move my codeigniter server folder to Amazon EC2 server.

I zipped whole file with "tar cvfpz" command and move the file to new server.

I unzipped by using "tar xvfpz" command.

My new server setting is fine, but I get this error.

A PHP Error was encountered

Severity: Warning

Message: Cannot modify header information - headers already sent by (output started at /home/playmobs/_application/controllers/home.php:188)

Filename: core/Common.php

Line Number: 442

404 Page Not Found

The page you requested was not found.

I checked the database config file and all other config files.

All of them have correct commands for new server.

Can you see why I see this error?

Thank you.

Jake
  • 1,175
  • 3
  • 16
  • 23

2 Answers2

1

You get this error, because probably you send output before sending header. This error can have a lot of reasons.

Here is really well documented solution: How to fix "Headers already sent" error in PHP

Community
  • 1
  • 1
Bilal Gultekin
  • 4,831
  • 3
  • 22
  • 27
0

I solved the problem.

The reason was that I moved to the new server and didn't turn on PHP short cut command.

my code was like this.

<? -----  ?>

New server php didn't recognized this one.

Jake
  • 1,175
  • 3
  • 16
  • 23