ワードプレスドクターでは様々なエラーをスポットで修正してサイトを復旧いたします。


ワードプレスの突然のエラーをスポットで修正

ワードプレスは、数万種類に及ぶ、プラグインやテーマを複数の企業や個人が提供しているCMSで、そのプログラムはGPLという誰でも修正したりカスタマイズしてもいいというライセンスでリリースされています。

このため、ワードプレスはプラグインやテーマという仕組みを使い、非常に多機能な世界で最も普及しているCMSとなりました。
しかし、多機能でプログラムが誰でも修正したり公開していいという仕組みのため、複雑に様々な機能が関連しあって利用されていたりするためプログラム間で相性の問題が出てきたり、ワードプレスやPHPのバージョンとのずれが発生し、バグが更新によって出ることもございます。

こういった場合もワードプレスドクターでは経験豊かな技術者がサイトのエラーの修正ウィスポットで承ることが可能です。

お客様のご依頼事例

この度のクライアント様の事例では、更新後に、Cannot modify header information – headers already sent byワーニングが出て、投稿の編集ができなくなったというご相談でした。

今朝プラグインプラグインをアップデートしたところ、管理画面上部に
Warning: Cannot modify header information – headers already sent by (output started at /home/サーバ/ドメイン/public_html/wp/wp-content/themes/テーマ/functions.php:891) in /home/サーバ/ドメイン/public_html/wp/wp-admin/includes/misc.php on line 1381

Warning: Cannot modify header information – headers already sent by (output started at /home/サーバ/ドメイン/public_html/wp/wp-content/themes/テーマ/functions.php:891) in /home/サーバ/ドメイン/public_html/wp/wp-includes/functions.php on line 6878

Warning: Cannot modify header information – headers already sent by (output started at /home/サーバ/ドメイン/public_html/wp/wp-content/themes/テーマ/functions.php:891) in /home/サーバ/ドメイン/public_html/wp/wp-admin/admin-header.php on line 9

と3種のエラー文章が出てきました。
このままカスタム投稿をしようとすると、post.phpにて、真っ白な画面に

Warning: Cannot modify header information – headers already sent by (output started at /home/サーバ/ドメイン/public_html/wp/wp-content/themes/テーマ/functions.php:891) in /home/サーバ/ドメイン/public_html/wp/wp-admin/includes/misc.php on line 1381

Warning: Cannot modify header information – headers already sent by (output started at /home/サーバ/ドメイン/public_html/wp/wp-content/themes/テーマ/functions.php:891) in /home/insea5511/in-sea.jp/public_html/wp/wp-includes/functions.php on line 6878

Warning: Cannot modify header information – headers already sent by (output started at /home/サーバ/ドメイン/public_html/wp/wp-content/themes/テーマ/functions.php:891) in /home/サーバ/ドメイン/public_html/wp/wp-admin/post.php on line 231

上記が表示され、投稿完了まで進めない状態です。

headers already sent by  エラー

headers already sent by エラーはワードプレスでよく見るエラーです。意味は、ワードプレスがサイトのHTMLの生成し送信する前に、すでに不正な文字列がサーバーから送信されてしまったという意味になります。
このエラーによってログインできなくなることもございます。

この不正な文字列はワードプレスによるエラーやワーニングの出力であることが多いです。
このため、headers already sent by エラーの解決には、根本となるエラー出力がどのようなものだったか調査の上、多くの場合PHPのプログラミングの知識が必要となります。

WordPress 他社様の作成サイトでもご対応可能です。ワードプレスの突然のエラーの調査修正のご依頼ご相談はワードプレスドクターまでお気軽にお送りください