Php Codeigniter:无法修改标头信息-标头已由发送

Php Codeigniter:无法修改标头信息-标头已由发送,php,codeigniter,Php,Codeigniter,我正在将我的网站移动到网上,但当我编辑表格数据时,会出现如下错误: A PHP Error was encountered Severity: Warning Message: Cannot modify header information - headers already sent by (output started at /home/shintiad/public_html/sociotraveler/application/views/template/index.php:20)

我正在将我的网站移动到网上,但当我编辑表格数据时,会出现如下错误:

A PHP Error was encountered
Severity: Warning

Message: Cannot modify header information - headers already sent by (output started at /home/shintiad/public_html/sociotraveler/application/views/template/index.php:20)

Filename: libraries/Session.php

Line Number: 688

A PHP Error was encountered

Severity: Warning

Message: Cannot modify header information - headers already sent by (output started at /home/shintiad/public_html/sociotraveler/application/views/template/index.php:20)

Filename: helpers/url_helper.php

Line Number: 542
我的模板/index.php代码

<!DOCTYPE html>
<html lang="en">
  <head>
        <!-- Meta -->
        <?php $this->load->view('template/partial/meta');?>
        <!-- Meta -->
  </head>
  <body>
        <!-- Header -->
        <?php $this->load->view('template/partial/sidebar');?>
        <!-- Header -->

        <!-- Dynamic Content -->
        <div class="content">
        <?php $this->load->view("{$page_info->content}");?>
        </div>
        <!-- Dynamic Content -->

        <!-- Footer -->
        <?php $this->load->view('template/partial/footer');?>
        <!-- Footer -->
   </body>
  </html>

当我在本地主机上运行它时,一切正常..请帮助,谢谢。。。
*我已经检查了之前的空白,请检查所有PHP文件并删除
之前的空白,然后尝试检查
@ViPiN之前是否有空白。我已经检查了所有内容,但仍然收到错误。据我所知,当您尝试从已给出错误的页面重定向时,会发生这种情况output@shintia我想你应该用结束语一个控制器中的php标记