バージョン選択

フォーラム

メニュー

オンライン状況

43 人のユーザが現在オンラインです。 (18 人のユーザが フォーラム を参照しています。)
登録ユーザ: 0
ゲスト: 43
もっと...

サイト内検索

質問 > 管理機能 > キャッシュクリアやプロキシの再生成でエラーが出る

管理機能

新規スレッドを追加する

スレッド表示 | 新しいものから 前のトピック | 次のトピック | 下へ
投稿者 スレッド
r_yamada
投稿日時: 2024/12/2 17:28
対応状況: −−−
常連
登録日: 2024/9/2
居住地:
投稿: 39
キャッシュクリアやプロキシの再生成でエラーが出る
[EC-CUBE] 4.2.2
[レンタルサーバ] ローカル環境
[OS] Windows11
[PHP] 8.1.29
[データベース] MySql
[WEBサーバ] ローカル環境
[ブラウザ] chrome 130.0.6723.117
お世話になります。
ローカル環境にて上記のような環境を立て、以下2コマンドを実行したところSession ini settings cannot be changed after headers have already been sentのエラーが発生してしまいました。
7.3で類似の事例がありましたが、バージョンが違う他、文字コードの問題でもなさそうなのですが、解決方法をご存じの方がいらっしゃいましたらご回答をお願い致します。

・キャッシュクリア
php bin/console cache:clear --no-warmup
・プロキシ再生成
php bin/console eccube:generate:proxies



In NativeFileSessionHandler.php line 52:

Warning: ini_set(): Session ini settings cannot be changed after headers have already been sent
mcontact
投稿日時: 2024/12/3 14:12
対応状況: −−−
登録日: 2022/1/22
居住地:
投稿: 1596
Re: キャッシュクリアやプロキシの再生成でエラーが出る
Warning: ini_set(): Session ini settings cannot be changed after headers have already been sent

Warningなのでエラーではないと思いますが、
もう少し詳しいエラーログを確認できますか?どのようなエラーが出ますでしょうか?
EC-CUBEのログであれば、var/log/prod/site-yyyy-mm-dd.log に「システムエラーが発生しました」や「ERROR」といった行がありましたらご提示ください。


----------------
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
EC-CUBEインテグレートパートナー【ゴールド】ランク
M&I Works
URL: https://miworks.biz/
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

r_yamada
投稿日時: 2024/12/3 16:59
対応状況: −−−
常連
登録日: 2024/9/2
居住地:
投稿: 39
Re: キャッシュクリアやプロキシの再生成でエラーが出る
mcontact 様
ご返信ありがとうございます。
エラーの全文は以下となりますが、eccube側にログは出ておりませんでした。


root@8d75c4dc0671:/var/www/html# php bin/console eccube:generate:proxies
[03-Dec-2024 15:34:32 Asia/Tokyo] PHP Deprecated: Optional parameter $orderNo declared before required parameter $recvType is implicitly treated as a required parameter in /var/www/html/app/Plugin/VeriTrans4G2/Service/Payment/PaymentRecvService.php on line 1661

Deprecated: Optional parameter $orderNo declared before required parameter $recvType is implicitly treated as a required parameter in /var/www/html/app/Plugin/VeriTrans4G2/Service/Payment/PaymentRecvService.php on line 1661

In NativeFileSessionHandler.php line 52:

Warning: ini_set(): Session ini settings cannot be changed after headers have already been sent


[03-Dec-2024 15:35:38 Asia/Tokyo] 2024-12-03T15:35:38+09:00 [info] User Deprecated: Method "Symfony\Component\HttpKernel\KernelInterface::getCacheDir()" might add "string" as a native return type declaration in the future. Do the same in implementation "Eccube\Kernel" now to avoid errors or add an explicit @return annotation to suppress this message.
[03-Dec-2024 15:35:38 Asia/Tokyo] 2024-12-03T15:35:38+09:00 [info] User Deprecated: Method "Symfony\Component\HttpKernel\KernelInterface::getLogDir()" might add "string" as a native return type declaration in the future. Do the same in implementation "Eccube\Kernel" now to avoid errors or add an explicit @return annotation to suppress this message.
[03-Dec-2024 15:35:38 Asia/Tokyo] 2024-12-03T15:35:38+09:00 [info] User Deprecated: Method "Symfony\Component\HttpKernel\KernelInterface::registerBundles()" might add "iterable" as a native return type declaration in the future. Do the same in implementation "Eccube\Kernel" now to avoid errors or add an explicit @return annotation to suppress this message.
[03-Dec-2024 15:35:38 Asia/Tokyo] 2024-12-03T15:35:38+09:00 [info] User Deprecated: Method "ArrayAccess::offsetExists()" might add "bool" as a native return type declaration in the future. Do the same in implementation "Eccube\Entity\AbstractEntity" now to avoid errors or add an explicit @return annotation to suppress this message.
[03-Dec-2024 15:35:38 Asia/Tokyo] 2024-12-03T15:35:38+09:00 [info] User Deprecated: Method "ArrayAccess::offsetSet()" might add "void" as a native return type declaration in the future. Do the same in implementation "Eccube\Entity\AbstractEntity" now to avoid errors or add an explicit @return annotation to suppress this message.
[03-Dec-2024 15:35:38 Asia/Tokyo] 2024-12-03T15:35:38+09:00 [info] User Deprecated: Method "ArrayAccess::offsetGet()" might add "mixed" as a native return type declaration in the future. Do the same in implementation "Eccube\Entity\AbstractEntity" now to avoid errors or add an explicit @return annotation to suppress this message.
[03-Dec-2024 15:35:38 Asia/Tokyo] 2024-12-03T15:35:38+09:00 [info] User Deprecated: Method "ArrayAccess::offsetUnset()" might add "void" as a native return type declaration in the future. Do the same in implementation "Eccube\Entity\AbstractEntity" now to avoid errors or add an explicit @return annotation to suppress this message.
[03-Dec-2024 15:35:38 Asia/Tokyo] 2024-12-03T15:35:38+09:00 [info] Deprecated: Eccube\Entity\Customer implements the Serializable interface, which is deprecated. Implement __serialize() and __unserialize() instead (or in addition, if support for old PHP versions is necessary)
[03-Dec-2024 15:35:38 Asia/Tokyo] 2024-12-03T15:35:38+09:00 [info] Deprecated: Eccube\Entity\Member implements the Serializable interface, which is deprecated. Implement __serialize() and __unserialize() instead (or in addition, if support for old PHP versions is necessary)
[03-Dec-2024 15:35:38 Asia/Tokyo] 2024-12-03T15:35:38+09:00 [info] User Deprecated: Method "Symfony\Component\HttpKernel\Bundle\Bundle::getContainerExtension()" might add "?ExtensionInterface" as a native return type declaration in the future. Do the same in child class "Eccube\EccubeBundle" now to avoid errors or add an explicit @return annotation to suppress this message.
joolensato
投稿日時: 2024/12/4 12:47
対応状況: −−−
常連
登録日: 2019/3/20
居住地:
投稿: 53
Re: キャッシュクリアやプロキシの再生成でエラーが出る
Warning: ini_set(): Session ini settings cannot be changed after headers have already been sent

上記のエラーですが、セッションの設定が変更されようとするタイミングで、すでにヘッダーが送信されていることが原因です。

エラーが出ているNativeFileSessionHandler.phpの52行目付近を確認し、ini_set や session_start() の実行箇所を見直しすれば解消されます。
プラグインや外部ライブラリが原因だった場合はそちらのサポートに確認する方が早いと思います。
スレッド表示 | 新しいものから 前のトピック | 次のトピック | トップ


 



ログイン


EC-CUBE公式 Amazon Payプラグイン

統計情報

総メンバー数は98,688名です
総投稿数は112,043件です

投稿数ランキング

1
seasoft
7369
2
468
3217
3
AMUAMU
2712
4
nanasess
2325
5
umebius
2085
6
h_tanaka
1912
7
yuh
1899
8
mcontact
1596
9
red
1575
10
tsuji
958
11
fukap
907
12
shutta
835
13
tao_s
805
14 ramrun 789
15 karin 689
16 sumida 641
17
homan
633
18 DELIGHT 572
19
patapata
502
20
balisys
502


ネットショップの壺

EC-CUBEインテグレートパートナー

Copyright© EC-CUBE CO.,LTD. All Rights Reserved.