The following problem occurred when using CI to develop WeChat public accounts. I looked online and found the solution: Save the error file as utf-8 using editplus.
Severity: Warning
Message: Cannot modify header information - headers already sent by (output started at Filename: libraries/Session.php
Line Number: 688
Because every page reports the above error, I guess there is a problem with index.php in the CI root directory. Use the above method to save index.php as utf-8 , problem solved.