Quantcast
Channel: WordPress.org Forums » All Topics
Viewing all articles
Browse latest Browse all 59525

セッションに関するエラーの解決策について

$
0
0

Replies: 0

はじめまして、上野と申します。

Gianismの開発、提供をありがとうございます。

今回、ユーザー投稿型サイトをWPで構築してみたく、
Gianismを利用させていただいております。

セッションに関するエラーが出たため、
お知恵をお貸し頂きたく投稿させていただきました。

以下詳細となります。

■ 設置環境 について

● WordPressバージョン:4.7.5

● Gianismバージョン:3.0.4

● 設置サーバー:エックスサーバー X10プラン
https://www.xserver.ne.jp/

● 独自ドメイン上にWPを設置

● エックスサーバーの無料独自SSLを利用
(https://example.jp/)

● PHPバージョン:以下に記載

●Gianismの設定状況:
Twitterとの接続設定のみ保存している状態です。

■ 症状

●PHP5.6.30のとき
WP管理画面上部に以下のメッセージが表示されます
---------------------------------
Warning: session_start(): Cannot send session cache limiter – headers already sent (output started at /home/XXXXXX/example.jp/public_html/wordpress/wp-includes/formatting.php:5081) in /home/XXXXXX/example.jp/public_html/wordpress/wp-content/plugins/gianism/app/Gianism/Helper/Session.php on line 28

Warning: Cannot modify header information – headers already sent by (output started at /home/XXXXXX/example.jp/public_html/wordpress/wp-includes/formatting.php:5081) in /home/XXXXXX/example.jp/public_html/wordpress/wp-content/plugins/gianism/app/Gianism/Helper/Session.php on line 31
---------------------------------

●PHP7.0.16のとき
---------------------------------
WP管理画面上部に以下のメッセージが表示されます
Warning: session_start(): Cannot send session cache limiter – headers already sent (output started at /home/XXXXXX/example.jp/public_html/wordpress/wp-includes/formatting.php:5081) in /home/XXXXXX/example.jp/public_html/wordpress/wp-content/plugins/gianism/app/Gianism/Helper/Session.php on line 28

Warning: Cannot modify header information – headers already sent by (output started at /home/XXXXXX/example.jp/public_html/wordpress/wp-includes/formatting.php:5081) in /home/XXXXXX/example.jp/public_html/wordpress/wp-content/plugins/gianism/app/Gianism/Helper/Session.php on line 31
---------------------------------

●PHP7.1.2のとき
---------------------------------
Warning: session_start(): Cannot send session cache limiter – headers already sent (output started at /home/XXXXXX/example.jp/public_html/wordpress/wp-includes/formatting.php:5081) in /home/XXXXXX/example.jp/public_html/wordpress/wp-content/plugins/gianism/app/Gianism/Helper/Session.php on line 28

うーん…セッションが動作していないようです。session.save_pathの書き込み権限をチェックしてください(現在の値は/var/lib/php/sessionです)。
---------------------------------

■ 試してみたこと

https://gianism.info/ja/2016/11/06/gianism-requires-session-and-some-server-doesnt-provide-it/

こちらに記載されている「セッションの動作を確認する方法」を試してみました。

結果として、
WPにログインしているブラウザでも、
WPにログインしていないブラウザでも、
リロードすると数字が1つずつカウントアップ(1→2→3→4…)されます。

■ 質問したいこと

何が原因でこのようなエラーメッセージが表示されているのでしょうか?

考えられる解決策をお教えいただければ幸いです。

また、必要な情報がこの投稿に不足している場合、
具体的にご指摘いただければすぐに用意致します。

お忙しいところ恐れ入りますが、
お知恵をお貸しいただければ幸いです。

どうぞよろしくお願いいたします。


Viewing all articles
Browse latest Browse all 59525

Trending Articles