Codeigniter - Cannot modify header information - h

2020-04-07 04:32发布

A PHP Error was encountered
Severity: Warning

Message: Cannot modify header information - headers already sent by (output started at /home/aphotel/public_html/application/config/config.php:1)

Filename: libraries/Session.php

Line Number: 366
#

Weird part of it, there is no session.php file in libraries folder

标签: codeigniter
8条回答
够拽才男人
2楼-- · 2020-04-07 05:16

Remove print_r(); in controller, model or session. There are problem or warning when website upload in host server not warning in localhost

查看更多
smile是对你的礼貌
3楼-- · 2020-04-07 05:20

I changed encoding to 'UTF-8 without BOM' for all php files in model, controller and helper folders and that helped.

查看更多
登录 后发表回答