LoginSignup
0
0

More than 3 years have passed since last update.

mixhost上でPHP Warning: Cannot modify header informationが発生した場合の対処

Last updated at Posted at 2020-10-08

【背景】レンタルサーバーmixhost上のphp環境で"twitteroauth"を使用しtwitter認証を実施

【問題】PHP Warning: Cannot modify header information - headers already sent by(output started at /home/xxxxxx/public_html/xxxxx/twitter-login/login.php:8) が発生
※2箇所で発生し、いずれもheader()指定

【対応】下記サイトを参考に対応実施
「Warning: Cannot modify header information…」エラーの解決方法[PHP]

●mixhostの"MultiPHP INI Editor"の"編集モード"で"output_buffering = 4096"を設定

phpini.png

以上で解決

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0