質問 > フロント機能 > (訂正)Invalid argument supplied for foreach() が warningが出る |
フロント機能
スレッド表示 | 新しいものから | 前のトピック | 次のトピック | 下へ |
投稿者 | スレッド |
---|---|
yosako |
投稿日時: 2013/7/29 18:14
対応状況: −−−
|
一人前 登録日: 2011/12/3 居住地: 投稿: 101 |
(訂正)Invalid argument supplied for foreach() が warningが出る 2.12.5ですが、前回の「Warning:従来互換用の HTTP_Request が読み込まれました を止めたい」の問題が解決したと思ったら、決済時にWarning(E_WARNING): Invalid argument supplied for foreach() が出ていることがわかりました。
Warningなので、決済自体は完了します。 そのエラーログを添付します。 2013/07/29 17:25:25 [/shopping/payment.php] Warning(E_WARNING): Invalid argument supplied for foreach() on [/home/xxxxx/public_html/data/class/helper/SC_Helper_Purchase.php(300)] from xxx.xxx.xxx.xxx 2013/07/29 17:25:25 [/shopping/payment.php] Warning(E_WARNING): Invalid argument supplied for foreach() on [/home/xxxxx/public_html/data/class/pages/shopping/LC_Page_Shopping_Payment.php(286)] from xxx.xxx.xxx.xxx 2013/07/29 17:25:34 [/shopping/payment.php] Warning(E_WARNING): Invalid argument supplied for foreach() on [/home/xxxxx/public_html/data/class/helper/SC_Helper_Purchase.php(300)] from xxx.xxx.xxx.xxx 2013/07/29 17:25:34 [/shopping/payment.php] Warning(E_WARNING): Invalid argument supplied for foreach() on [/home/xxxxx/public_html/data/class/pages/shopping/LC_Page_Shopping_Payment.php(286)] from xxx.xxx.xxx.xxx 2013/07/29 17:25:34 [/shopping/payment.php] Warning(E_WARNING): Invalid argument supplied for foreach() on [/home/xxxxx/public_html/data/class/pages/shopping/LC_Page_Shopping_Payment.php(350)] from xxx.xxx.xxx.xxx 2013/07/29 17:25:34 [/shopping/confirm.php] Warning(E_WARNING): Invalid argument supplied for foreach() on [/home/xxxxx/public_html/data/class/helper/SC_Helper_Purchase.php(300)] from xxx.xxx.xxx.xxx 2013/07/29 17:25:34 [/shopping/confirm.php] Warning(E_WARNING): Invalid argument supplied for foreach() on [/home/xxxxx/public_html/data/class/helper/SC_Helper_Purchase.php(368)] from xxx.xxx.xxx.xxx 2013/07/29 17:25:38 [/shopping/confirm.php] Warning(E_WARNING): Invalid argument supplied for foreach() on [/home/xxxxx/public_html/data/class/helper/SC_Helper_Purchase.php(300)] from xxx.xxx.xxx.xxx 2013/07/29 17:25:38 [/shopping/confirm.php] Warning(E_WARNING): Invalid argument supplied for foreach() on [/home/xxxxx/public_html/data/class/helper/SC_Helper_Purchase.php(368)] from xxx.xxx.xxx.xxx 2013/07/29 17:25:38 [/shopping/confirm.php] Warning(E_WARNING): Invalid argument supplied for foreach() on [/home/xxxxx/public_html/data/class/helper/SC_Helper_Purchase.php(300)] from xxx.xxx.xxx.xxx 2013/07/29 17:25:38 [/shopping/confirm.php] Warning(E_WARNING): Invalid argument supplied for foreach() on [/home/xxxxx/public_html/data/class/helper/SC_Helper_Purchase.php(84)] from xxx.xxx.xxx.xxx 2013/07/29 17:25:38 [/shopping/confirm.php] Warning(E_WARNING): Invalid argument supplied for foreach() on [/home/xxxxx/public_html/data/class/helper/SC_Helper_Purchase.php(732)] from xxx.xxx.xxx.xxx ダウンロード商品の販売なのですが、SC_Helper_Purchase.phpの300, 368行をみると、配送先や配送先都道府県を返すところで出ているようです。LC_Page_Shopping_Payment.phpの286, 350行では、お届け時間のパラメータ初期化と配送情報保存のようなのです。 これは何が原因かヒントでもあれば教えてください。 |
shutta |
投稿日時: 2013/7/29 19:55
対応状況: −−−
|
仙人 登録日: 2010/2/4 居住地: 関西 投稿: 835 |
Re: PayPal決済でwarningが出る おそらくですが、ダウンロード商品の購入時には、配送先情報が無いため、
それに関する情報が取得されずに、foreachに配列でない変数が渡ってしまっているのではないかと思います。
|
yosako |
投稿日時: 2013/7/30 9:52
対応状況: −−−
|
一人前 登録日: 2011/12/3 居住地: 投稿: 101 |
(訂正)Invalid argument supplied for foreach() が warningが出る shuttaさん
リプライありがとうございます。 Invalid argument supplied for foreach()のwarningはPayPal決済でなくても出ますね。銀行振込で試してみても同じ結果となりました。 他の方も同様な質問をしていますので、何か、受注処理に不具合があるのではないかと思います。 |
スレッド表示 | 新しいものから | 前のトピック | 次のトピック | トップ |