回答編集履歴
4
追記修正
answer
CHANGED
@@ -26,4 +26,16 @@
|
|
26
26
|
~~そのため、これ移行の `header( 〜 )` 関数はすべて、`Warning: Cannot modify header information - headers already sent by 〜` の Warning になります。
|
27
27
|
~~
|
28
28
|
|
29
|
-
~~(コメントの回答で `/*` があったことが判明したので追記部分の回答は関係ありませんでしたので訂正)~~
|
29
|
+
~~(コメントの回答で `/*` があったことが判明したので追記部分の回答は関係ありませんでしたので訂正)~~
|
30
|
+
|
31
|
+
----
|
32
|
+
|
33
|
+
あ、よく見たら...
|
34
|
+
|
35
|
+
> Warning: Cannot modify header information - headers already sent by (output started at /home/users/0/whitesnow.jp-nurse/web/wp02/wp-config.php:1)
|
36
|
+
|
37
|
+
なので、`wp-config.php` の1行目が問題の行ですね。
|
38
|
+
|
39
|
+
wp-config.php の1行目には何がありますか?
|
40
|
+
|
41
|
+
なにもないのであれば、 UTF-8 の BOM がついている可能性がありますので、エディタで UTF-8 (BOM無し) を選んで保存し直してみてください。
|
3
回答を修正
answer
CHANGED
@@ -8,18 +8,22 @@
|
|
8
8
|
----
|
9
9
|
(追記)
|
10
10
|
|
11
|
-
> 子テーマの編集の画面で
|
11
|
+
~~> 子テーマの編集の画面で~~
|
12
12
|
|
13
|
-
> ( Below here, please write down your own functions for the child theme. ) */
|
13
|
+
~~> ( Below here, please write down your own functions for the child theme. ) */
|
14
|
-
> function bbp_no_email( $mail ) {
|
14
|
+
~~> function bbp_no_email( $mail ) {
|
15
|
-
> return 'no_email@example.com';
|
15
|
+
~~> return 'no_email@example.com';
|
16
|
-
> }
|
16
|
+
~~> }
|
17
|
-
> add_filter( 'bbp_pre_anonymous_post_author_email', 'bbp_no_email' );
|
17
|
+
~~> add_filter( 'bbp_pre_anonymous_post_author_email', 'bbp_no_email' );
|
18
|
+
~~
|
19
|
+
~~追加したのが上記だけということですが、
|
20
|
+
~~
|
21
|
+
~~`( Below here, please write down your own functions for the child theme. ) */` ~~
|
22
|
+
~~の行ですが、行頭に `/* ` が抜けていませんか?~~
|
18
23
|
|
19
|
-
追加したのが上記だけということですが、
|
20
|
-
`
|
24
|
+
~~`/* 〜〜 */` ならコメント文ですが、上記の内容では、コメント文になっていないので、この行で文字が出力されたことになります。~~
|
21
|
-
の行ですが、行頭に `/* ` が抜けていませんか?
|
22
25
|
|
23
|
-
`
|
26
|
+
~~そのため、これ移行の `header( 〜 )` 関数はすべて、`Warning: Cannot modify header information - headers already sent by 〜` の Warning になります。
|
27
|
+
~~
|
24
28
|
|
25
|
-
|
29
|
+
~~(コメントの回答で `/*` があったことが判明したので追記部分の回答は関係ありませんでしたので訂正)~~
|
2
誤字の修正
answer
CHANGED
@@ -16,7 +16,9 @@
|
|
16
16
|
> }
|
17
17
|
> add_filter( 'bbp_pre_anonymous_post_author_email', 'bbp_no_email' );
|
18
18
|
|
19
|
+
追加したのが上記だけということですが、
|
19
|
-
|
20
|
+
`( Below here, please write down your own functions for the child theme. ) */`
|
21
|
+
の行ですが、行頭に `/* ` が抜けていませんか?
|
20
22
|
|
21
23
|
`/* 〜〜 */` ならコメント文ですが、上記の内容では、コメント文になっていないので、この行で文字が出力されたことになります。
|
22
24
|
|
1
追記
answer
CHANGED
@@ -3,4 +3,21 @@
|
|
3
3
|
> Warning: Cannot modify header information - headers already sent by (
|
4
4
|
|
5
5
|
なので、HTTP ヘッダの出力前に出力をされているのだと思われます。
|
6
|
-
functions.php の中で、文字を出力していないでしょうか。
|
6
|
+
functions.php の中で、文字を出力していないでしょうか。
|
7
|
+
|
8
|
+
----
|
9
|
+
(追記)
|
10
|
+
|
11
|
+
> 子テーマの編集の画面で
|
12
|
+
|
13
|
+
> ( Below here, please write down your own functions for the child theme. ) */
|
14
|
+
> function bbp_no_email( $mail ) {
|
15
|
+
> return 'no_email@example.com';
|
16
|
+
> }
|
17
|
+
> add_filter( 'bbp_pre_anonymous_post_author_email', 'bbp_no_email' );
|
18
|
+
|
19
|
+
追加したのが上記だけということですが、 `( Below here, please write down your own functions for the child theme. ) */` の行ですが、行頭に `/* ` が抜けていたりしませんか?
|
20
|
+
|
21
|
+
`/* 〜〜 */` ならコメント文ですが、上記の内容では、コメント文になっていないので、この行で文字が出力されたことになります。
|
22
|
+
|
23
|
+
そのため、これ移行の `header( 〜 )` 関数はすべて、`Warning: Cannot modify header information - headers already sent by 〜` の Warning になります。
|