Wordpress Warning: Cannot modify header information - headers already sent by

ตอบกระทู้

รูปแสดงอารมณ์
:icon_plusone: :like: :plusone: :gfb: :-D :) :( :-o 8O :? 8) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :wink: :!: :?: :idea: :arrow: :| :mrgreen: :angry: :baa: :biggrin:
รูปแสดงอารมณ์อื่นๆ

BBCode เปิด
[img] เปิด
[url] เปิด
[Smile icon] เปิด

กระทู้แนะนำ
   

มุมมองที่ขยายได้ กระทู้แนะนำ: Wordpress Warning: Cannot modify header information - headers already sent by

Re: Wordpress Warning: Cannot modify header information - headers already sent by

โดย ช่างซ่อมคอมพิวเตอร์ » 12/04/2012 5:34 pm

1. ลองใช้ Notepad++ แก้ไขข้อความด้านบน และด้านล่าง อย่าให้มีบรรทัดว่างของไฟล์ทั้ง 2 ไฟล์ (formatting.php+ pluggable.php)
2. แล้ว endcoding UTF-8 With out Bom
3. แล้ว Save As... ทับชื่อไฟล์เดิมไปใหม่อีกครั้ง ครับ

บางที มันอาจจะเป็นคอมเม้น ที่พอช่วยท่านได้ครับ :like:

Re: Wordpress Warning: Cannot modify header information - headers already sent by

โดย tohkai_php » 10/04/2012 10:38 am

ใช่ครับ ถ้าใช้ notepad ++ default มันจะ gen header ติดมา หายังไงก็หาไม่เจอครับ ต้อง save width bom ก็หายแล้วครับ

Re: Wordpress Warning: Cannot modify header information - headers already sent by

โดย Wordpress Warning » 09/04/2012 11:56 pm

mindphp เขียน:แก้ไขไฟล์
formatting.php
ด้วย Text Editor ตัวไหนครับ
ใช้ทั้ง dreamweaver และ Notepad++ ครับ :roll:
เห็นเขาบอกว่า pluggable.php มันมีค่าว่างในส่วนบนสุด ตอนแรกๆที่ยังไม่เพิ่มความยาวของลิงค์ wp ก้อใช้งานได้ปกติ ไม่ปัญหาครับ :lol:

Re: Wordpress Warning: Cannot modify header information - headers already sent by

โดย mindphp » 09/04/2012 4:03 am

แก้ไขไฟล์
formatting.php
ด้วย Text Editor ตัวไหนครับ

Wordpress Warning: Cannot modify header information - headers already sent by

โดย Wordpress Warning » 08/04/2012 11:55 pm

wordpress-3.3.1-th + photoria Theme+ http://www.dekpress.com/%E0%B8%A7%E0%B8%B4%E0%B8%98%E0%B8%B5%E0%B8%97%E0%B8%B3%E0%B9%83%E0%B8%AB%E0%B9%89-url-%E0%B8%82%E0%B8%AD%E0%B8%87-wordpress-%E0%B9%84%E0%B8%94%E0%B9%89%E0%B8%A2%E0%B8%B2%E0%B8%A7%E0%B9%86.html

ผลลัพธ์แสดงข้อผิดพลาดตอน login เข้าหน้า wp-admin ครับ:
Warning: Cannot modify header information - headers already sent by (output started at /home/domains/***.com/public_html/wp-includes/formatting.php:1) in /home/domains/***.com/public_html/wp-includes/pluggable.php on line 866

ต้องแก้อย่างไรครับ ลองหลายวิธีแล้วไม่ได้ ท่านเทพช่วยแนะมาด้วยครับ (ถ้ามีรูปภาพ จะขอบคุณอย่างมากครับ)

ข้างบน