投稿者 |
スレッド |
Adondevas |
投稿日時: 2011/6/30 17:01
対応状況: −−−
|
常連 登録日: 2011/6/7 居住地: 投稿: 52 |
Re: 決済モジュールをインストールできない json version 1.2.1 をインストールし、 GMO-PG決済モジュール(PGマルチペイメントサービス)(2.11系) の ダウンロードが完結しました。
「インストール/アップデートに成功しました。」が出たときは感激しました。
phpのコンパイルの必要はないようでした。 php.ini に「extension=json.so」を追記し、apache の再起動で動きました。
色々とアドバイスいただきありがとうございました。
|
|
|
Adondevas |
投稿日時: 2011/6/30 14:42
対応状況: −−−
|
常連 登録日: 2011/6/7 居住地: 投稿: 52 |
Re: 決済モジュールをインストールできない ご返信ありがとうございます。
ちょっと大事になってきたみたいで焦っています。
root権限のあるVPSを借りましたので自由が効くのは幸いですが、 本業のネットショップを運営しながら、移転先のサイトをカスタマイズしてる、 いわば技術的には素人同然ですので色々調べてやってみたいと思います。
|
|
|
134 |
投稿日時: 2011/6/29 19:49
対応状況: −−−
|
一人前 登録日: 2009/10/20 居住地: 京都市 投稿: 91 |
Re: 決済モジュールをインストールできない そうですね。 PHP自体のコンパイルからやり直さないといけないと思います。 自由の効く環境なら良いのですが、レンタルサーバなどでは難しいと思います…。
|
|
|
Adondevas |
投稿日時: 2011/6/29 15:46
対応状況: −−−
|
常連 登録日: 2011/6/7 居住地: 投稿: 52 |
Re: 決済モジュールをインストールできない ご返信ありがとうございます。
php は 5.2.17 です。
jsonをインストールする必要があるということでしょうか。
|
|
|
134 |
投稿日時: 2011/6/29 15:19
対応状況: −−−
|
一人前 登録日: 2009/10/20 居住地: 京都市 投稿: 91 |
Re: 決済モジュールをインストールできない $body の内容は問題なさそうですね。 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 上記ログが出ているということは、 もしお使いの環境のPHPのバージョンが5.2以上であれば、 下記の「JSON(PHP5.2以降でオーナーズストアを使用する場合は必須)」の 条件にひっかかってしまいますね。 http://svn.ec-cube.net/open_trac/ticket/753http://www.ec-cube.net/product/system.phpPHPのバージョンはいくつでしょうか。
|
|
|
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
このようになりました。 何かわかりますでしょうか。
|
|
|
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 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が未設定だからかと思いますが、問題有りますでしょうか。
|
|
|
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 になっています。 なぜ、このようなエラーが出ているのでしょうか。
|
|
|
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":」の後ろに よくわからない英数記号の文字が大量に並んでいたら その部分は省略していただいてもかまいませんので 結果をお知らせ頂けますでしょうか。
|
|
|