バージョン選択
フォーラム
メニュー
オンライン状況
|
|
53 人のユーザが現在オンラインです。 (41 人のユーザが フォーラム を参照しています。) |
|
|
質問 > 管理機能 > 決済モジュールをインストールできない |
|
管理機能
投稿者 |
スレッド |
Adondevas |
投稿日時: 2011/6/27 20:31
対応状況: −−−
|
常連 登録日: 2011/6/7 居住地: 投稿: 52 |
決済モジュールをインストールできない GMO-PG決済モジュール(PGマルチペイメントサービス)(2.11系)をインストールしようとしています。
オーナーズストアの購入商品一覧を取得し、ダウンロードをクリックするとネジネジが表示されますが、幾ら待ってもそれ以降何も起こりません。
購入商品一覧は正しく表示されているのですが、何が問題なのでしょうか。
|
|
|
134 |
投稿日時: 2011/6/27 21:36
対応状況: −−−
|
一人前 登録日: 2009/10/20 居住地: 京都市 投稿: 91 |
Re: 決済モジュールをインストールできない ダウンロードボタンのクリック時、 /data/logs/ownersstore.log や /data/logs/site.log に、何かログが出力されていませんか?
|
|
|
Adondevas |
投稿日時: 2011/6/27 21:54
対応状況: −−−
|
常連 登録日: 2011/6/7 居住地: 投稿: 52 |
Re: 決済モジュールをインストールできない ご返信ありがとうございます。 /data/logs/ownersstore.log 2011/06/27 20:44:01 [/eccube/html/upgrade/index.php] * insert dtb_module_update start from 222.222.222.222
/data/logs/site.log
SERVER_ADDR: 111.111.111.111
REMOTE_ADDR: 222.222.222.222
USER_AGENT: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:5.0) Gecko/20100101 Firefox/5.0
SQL: PREPARE mdb2_statement_mysql_7a347d1472f17215b556b016d7a2dfb5f4992a224 FROM 'INSERT INTO dtb_module_update_logs(log_id,module_id,buckup_path,error_flg,error,ok,update_date,create_date) VALUES (?,?,?,?,?,?,Now(),Now())'
MDB2 Error: null value violates not-null constraint
_doQuery: [Error message: Could not execute statement]
[Last executed query: EXECUTE mdb2_statement_mysql_7a347d1472f17215b556b016d7a2dfb5f4992a224 USING @0, @1, @2, @3, @4, @5]
[Native code: 1048]
[Native message: Column 'module_id' cannot be null]
/eccube/html/upgrade/index.php 42:LC_Page_Upgrade_Download->process
/eccube/data/class/pages/upgrade/LC_Page_Upgrade_Download.php 213:LC_Page_Upgrade_Download->registerUpdateLog
/eccube/data/class/pages/upgrade/LC_Page_Upgrade_Download.php 373:SC_Query->insert
/eccube/data/class/SC_Query.php 478:SC_Query->query
/eccube/data/class/SC_Query.php 735:SC_Query->execute
/eccube/data/class/SC_Query.php 888:MDB2_Statement_Common->execute
/eccube/data/module/MDB2.php 4152:MDB2_Statement_mysql->_execute
/eccube/data/module/MDB2/Driver/mysql.php 1654:MDB2_Driver_mysql->_doQuery
/eccube/data/module/MDB2/Driver/mysql.php 798:MDB2_Driver_Common->raiseError
/eccube/data/module/MDB2.php 1497:PEAR->raiseError
/eccube/data/module/PEAR.php 557:MDB2_Error->MDB2_Error
/eccube/data/module/MDB2.php 1009:PEAR_Error->PEAR_Error
2011/06/27 20:44:01 [/eccube/html/upgrade/index.php] PAGE_DISPLAY_TIME_LOG [6.28sec] from 222.222.222.222
IPとパスは架空のものにしていますが、このようなログとなっています。
|
|
|
134 |
投稿日時: 2011/6/28 12:22
対応状況: −−−
|
一人前 登録日: 2009/10/20 居住地: 京都市 投稿: 91 |
Re: 決済モジュールをインストールできない http://xoops.ec-cube.net/modules/newbb/viewtopic.php?topic_id=4762&forum=11こちらと似た症状ですね。 購入商品一覧は取得できているとのことで、JSON絡みの問題ではないと思いますが dtb_module_update_logs を初期化する…というアドバイスの結果が どうだったのか分かりませんね…。 ひとつずつ原因を探っていくのは大変そうですが、 /data/class/pages/upgrade/LC_Page_Upgrade_Download.php の150行目あたりの $body の内容をダンプしてみることは可能でしょうか?
$objLog->error(OSTORE_E_C_HTTP_RESP, $objReq);
return;
}
$body = $objReq->getResponseBody(); <- ここの $body です
$objRet = $objJson->decode($body);
// JSONデータのチェック
$objLog->log('* json data check start');
|
|
|
Adondevas |
投稿日時: 2011/6/28 16:33
対応状況: −−−
|
常連 登録日: 2011/6/7 居住地: 投稿: 52 |
Re: 決済モジュールをインストールできない ご返信ありがとうございます。 phpmyadmin にて、元々「空」の dtb_module_update_logs テーブルを FLUSH したり、空にしたりをしてダウンロードをクリックしましたが、 状況は全く同じでした。 ダンプの方法は下記であっていますでしょうか。
$body = $objReq->getResponseBody();
var_dump($body);
$objRet = $objJson->decode($body);
ブラウザには何も表示されないのですが、何か別の方法で確認するのでしょうか。
|
|
|
134 |
投稿日時: 2011/6/29 14:24
対応状況: −−−
|
一人前 登録日: 2009/10/20 居住地: 京都市 投稿: 91 |
Re: 決済モジュールをインストールできない 下記のようにすれば、data/logs/site.log に出力されると思います。
$objLog->log('* * * dump ResponseBody start * * *');
$objLog->log($body);
$objLog->log('* * * dump ResponseBody end * * *');
ログに出力された内容で、「"dl_file":」の後ろに よくわからない英数記号の文字が大量に並んでいたら その部分は省略していただいてもかまいませんので 結果をお知らせ頂けますでしょうか。
|
|
|
Adondevas |
投稿日時: 2011/6/29 14:32
対応状況: −−−
|
常連 登録日: 2011/6/7 居住地: 投稿: 52 |
Re: 決済モジュールをインストールできない ownersstore.log
2011/06/29 13:55:23 [/html/upgrade/index.php] ##### download start ##### from 222.222.222.222
2011/06/29 13:55:23 [/html/upgrade/index.php] * auth start from 222.222.222.222
2011/06/29 13:55:23 [/html/upgrade/index.php] * admin login ok from 222.222.222.222
2011/06/29 13:55:23 [/html/upgrade/index.php] * post param check start from 222.222.222.222
2011/06/29 13:55:23 [/html/upgrade/index.php] * auto update check start from 222.222.222.222
2011/06/29 13:55:23 [/html/upgrade/index.php] * public key check start from 222.222.222.222
2011/06/29 13:55:23 [/html/upgrade/index.php] * http request start from 222.222.222.222
2011/06/29 13:55:27 [/html/upgrade/index.php] * http request check start from 222.222.222.222
2011/06/29 13:55:27 [/html/upgrade/index.php] * http response check start from 222.222.222.222
2011/06/29 13:55:29 [/html/upgrade/index.php] * json data check start from 222.222.222.222
2011/06/29 13:55:29 [/html/upgrade/index.php] * save file start from 222.222.222.222
2011/06/29 13:55:29 [/html/upgrade/index.php] * open 1309323329.tar.gz start from 222.222.222.222
2011/06/29 13:55:29 [/html/upgrade/index.php] * mkdir /var/www/html/eccube/html/html/../data/downloads/tmp/1309323329 start from 222.222.222.222
2011/06/29 13:55:29 [/html/upgrade/index.php] * extract /var/www/html/eccube/html/html/../data/downloads/tmp/1309323329.tar.gz start from 222.222.222.222
2011/06/29 13:55:29 [/html/upgrade/index.php] * copy batch start from 222.222.222.222
2011/06/29 13:55:29 [/html/upgrade/index.php] * copy batch check start from 222.222.222.222
2011/06/29 13:55:29 [/html/upgrade/index.php] * insert dtb_module_update start from 222.222.222.222
site.log
SERVER_ADDR: 111.111.111.111
REMOTE_ADDR: 222.222.222.222
USER_AGENT: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:5.0) Gecko/20100101 Firefox/5.0
SQL: PREPARE mdb2_statement_mysql_76a18cf6d578d630a7e96fd362b6d50a82b23dfd2 FROM 'INSERT INTO dtb_module_update_logs(log_id,module_id,buckup_path,error_flg,error,ok,update_date,create_date) VALUES (?,?,?,?,?,?,Now(),Now())'
MDB2 Error: null value violates not-null constraint
_doQuery: [Error message: Could not execute statement]
[Last executed query: EXECUTE mdb2_statement_mysql_76a18cf6d578d630a7e96fd362b6d50a82b23dfd2 USING @0, @1, @2, @3, @4, @5]
[Native code: 1048]
[Native message: Column 'module_id' cannot be null]
/eccube/html/upgrade/index.php 42:LC_Page_Upgrade_Download->process
/eccube/data/class/pages/upgrade/LC_Page_Upgrade_Download.php 214:LC_Page_Upgrade_Download->registerUpdateLog
/eccube/data/class/pages/upgrade/LC_Page_Upgrade_Download.php 374:SC_Query->insert
/eccube/data/class/SC_Query.php 478:SC_Query->query
/eccube/data/class/SC_Query.php 735:SC_Query->execute
/eccube/data/class/SC_Query.php 888:MDB2_Statement_Common->execute
/eccube/data/module/MDB2.php 4152:MDB2_Statement_mysql->_execute
/eccube/data/module/MDB2/Driver/mysql.php 1654:MDB2_Driver_mysql->_doQuery
/eccube/data/module/MDB2/Driver/mysql.php 798:MDB2_Driver_Common->raiseError
/eccube/data/module/MDB2.php 1497:PEAR->raiseError
/eccube/data/module/PEAR.php 557:MDB2_Error->MDB2_Error
/eccube/data/module/MDB2.php 1009:PEAR_Error->PEAR_Error
2011/06/29 13:55:29 [/eccube/html/upgrade/index.php] PAGE_DISPLAY_TIME_LOG [5.56sec] from 222.222.222.222
上記、「update_date」「create_date」の順がテーブルの順と逆なのですが、そういったことは関係ありませんでしょうか。 [Native message: Column 'module_id' cannot be null]とありますが、module_id は Not Null になっています。 なぜ、このようなエラーが出ているのでしょうか。
|
|
|
Adondevas |
投稿日時: 2011/6/29 14:52
対応状況: −−−
|
常連 登録日: 2011/6/7 居住地: 投稿: 52 |
Re: 決済モジュールをインストールできない ご返信ありがとうございます。 site.log
2011/06/29 14:39:21 [/eccube/html/upgrade/index.php] access : user=xxxxxxxx auth=0 sid=cjt7c5m56kdn1ghjr0dtssahu4 from 222.222.222.222
2011/06/29 14:39:26 [/eccube/html/upgrade/index.php] *use Services_JSON::decode(). faster than using the json_decode! from 222.222.222.222
FATAL Error(256) /eccube/data/class/SC_Query.php:903 https://example.jp/eccube/html/upgrade/
SERVER_ADDR: 111.111.111.111
REMOTE_ADDR: 222.222.222.222
USER_AGENT: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:5.0) Gecko/20100101 Firefox/5.0
SQL: PREPARE mdb2_statement_mysql_7ad89f0598aa815b20378f0ae86708bb63a66dccc FROM 'INSERT INTO dtb_module_update_logs(log_id,module_id,buckup_path,error_flg,error,ok,update_date,create_date) VALUES (?,?,?,?,?,?,Now(),Now())'
MDB2 Error: null value violates not-null constraint
_doQuery: [Error message: Could not execute statement]
[Last executed query: EXECUTE mdb2_statement_mysql_7ad89f0598aa815b20378f0ae86708bb63a66dccc USING @0, @1, @2, @3, @4, @5]
[Native code: 1048]
[Native message: Column 'module_id' cannot be null]
/eccube/html/upgrade/index.php 42:LC_Page_Upgrade_Download->process
/eccube/data/class/pages/upgrade/LC_Page_Upgrade_Download.php 216:LC_Page_Upgrade_Download->registerUpdateLog
/eccube/data/class/pages/upgrade/LC_Page_Upgrade_Download.php 376:SC_Query->insert
/eccube/data/class/SC_Query.php 478:SC_Query->query
/eccube/data/class/SC_Query.php 735:SC_Query->execute
/eccube/data/class/SC_Query.php 888:MDB2_Statement_Common->execute
/eccube/data/module/MDB2.php 4152:MDB2_Statement_mysql->_execute
/eccube/data/module/MDB2/Driver/mysql.php 1654:MDB2_Driver_mysql->_doQuery
/eccube/data/module/MDB2/Driver/mysql.php 798:MDB2_Driver_Common->raiseError
/eccube/data/module/MDB2.php 1497:PEAR->raiseError
/eccube/data/module/PEAR.php 557:MDB2_Error->MDB2_Error
/eccube/data/module/MDB2.php 1009:PEAR_Error->PEAR_Error
2011/06/29 14:39:28 [/eccube/html/upgrade/index.php] PAGE_DISPLAY_TIME_LOG [6.59sec] from 222.222.222.222
このようになり、ダンプらしきものは見受けられませんでした。 FATAL Error(256)が出ていますが、これはテストサイトのためSSLが未設定だからかと思いますが、問題有りますでしょうか。
|
|
|
134 |
投稿日時: 2011/6/29 14:59
対応状況: −−−
|
一人前 登録日: 2009/10/20 居住地: 京都市 投稿: 91 |
Re: 決済モジュールをインストールできない $body のダンプ結果が入っていませんね…。 すみません、さきほど site.log に出力されると書きましたが ownersstore.log に書き出されるのが正解でした。 ダンプできれば、貼り付けてくださった ownersstore.log の 2011/06/29 13:55:27 [/html/upgrade/index.php] * http response check start from 222.222.222.222 2011/06/29 13:55:29 [/html/upgrade/index.php] * json data check start from 222.222.222.222 の間に出力されるはずなのですが…。 引用: 上記、「update_date」「create_date」の順がテーブルの順と逆なのですが、そういったことは関係ありませんでしょうか。
ここは関係ないと思われます。 引用: [Native message: Column 'module_id' cannot be null]とありますが、module_id は Not Null になっています。 なぜ、このようなエラーが出ているのでしょうか。
ここが問題で、本来であれば、$body の中に module_id の情報が含まれるはずなのです。 $body の内容を見れば、何か分かるかも…というところです。 ------ 追記です。 前の返信を見ずに書いていました。 Fatal Error は [Native message: Column 'module_id' cannot be null] のことをさしています。 前に JSON の問題ではないと書きましたが、 JSONの問題のような気がしてきました。 環境によって json_decode() という関数と JSON::decode() という関数のどちらかが使用されるのですが クォートの扱いなどで、微妙に動作の違いがあったように思います。 このあたりの問題かもしれませんね。 お手数ですが、やはり $body の内容を確認できればと思います。
|
|
|
Adondevas |
投稿日時: 2011/6/29 15:12
対応状況: −−−
|
常連 登録日: 2011/6/7 居住地: 投稿: 52 |
Re: 決済モジュールをインストールできない ご返信ありがとうございます。 ownersstore.log
2011/06/29 14:39:21 [/eccube/html/upgrade/index.php] ##### download start ##### from 222.222.222.222
2011/06/29 14:39:21 [/eccube/html/upgrade/index.php] * auth start from 222.222.222.222
2011/06/29 14:39:21 [/eccube/html/upgrade/index.php] * admin login ok from 222.222.222.222
2011/06/29 14:39:21 [/eccube/html/upgrade/index.php] * post param check start from 222.222.222.222
2011/06/29 14:39:21 [/eccube/html/upgrade/index.php] * auto update check start from 222.222.222.222
2011/06/29 14:39:21 [/eccube/html/upgrade/index.php] * public key check start from 222.222.222.222
2011/06/29 14:39:21 [/eccube/html/upgrade/index.php] * http request start from 222.222.222.222
2011/06/29 14:39:26 [/eccube/html/upgrade/index.php] * http request check start from 222.222.222.222
2011/06/29 14:39:26 [/eccube/html/upgrade/index.php] * http response check start from 222.222.222.222
2011/06/29 14:39:27 [/eccube/html/upgrade/index.php] * * * dump ResponseBody start * * * from 222.222.222.222
2011/06/29 14:39:27 [/eccube/html/upgrade/index.php] {"status":"SUCCESS","errcode":null,"msg":"","data":{"product_name":"GMO-PG\u6c7a\u6e08\u30e2\u30b8\u30e5\u30fc\u30eb(PG\u30de\u30eb\u30c1\u30da\u30a4\u30e1\u30f3\u30c8\u30b5\u30fc\u30d3\u30b9)(2.11\u7cfb)","download_flg":"1","version":"2.0.1","eccube_version_flg":"2","order_id":"21796","product_id":"174","status":"11","installed_flg":"0","installed_version":null,"product_code":"mdl_pg_mulpay","dl_file":"H4sIAOJxpk0AA+y9a3sTR9IwnK\/2r5jVnXttstg6+ZDgw30rthP8xKfHh90nDw
‖
文字列
‖
+Y585x5zjxnnlN7\/hvvxS5KAPgMAA=="}} from 222.222.222.222
2011/06/29 14:39:27 [/eccube/html/upgrade/index.php] * * * dump ResponseBody end * * * from 222.222.222.222
2011/06/29 14:39:27 [/eccube/html/upgrade/index.php] * json data check start from 222.222.222.222
2011/06/29 14:39:27 [/eccube/html/upgrade/index.php] * save file start from 222.222.222.222
2011/06/29 14:39:27 [/eccube/html/upgrade/index.php] * open 1309325967.tar.gz start from 222.222.222.222
2011/06/29 14:39:27 [/eccube/html/upgrade/index.php] * mkdir /eccube/html/../data/downloads/tmp/1309325967 start from 222.222.222.222
2011/06/29 14:39:27 [/eccube/html/upgrade/index.php] * extract /eccube/html/../data/downloads/tmp/1309325967.tar.gz start from 222.222.222.222
2011/06/29 14:39:27 [/eccube/html/upgrade/index.php] * copy batch start from 222.222.222.222
2011/06/29 14:39:27 [/eccube/html/upgrade/index.php] * copy batch check start from 222.222.222.222
2011/06/29 14:39:27 [/eccube/html/upgrade/index.php] * insert dtb_module_update start from 222.222.222.222
このようになりました。 何かわかりますでしょうか。
|
|
|
|
統計情報
総メンバー数は89,076名です
総投稿数は110,023件です
|