バージョン選択

フォーラム

メニュー

オンライン状況

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

サイト内検索

質問 > その他 > 2.11.0+Postgresqlでインストールできない

その他

新規スレッドを追加する

スレッド表示 | 新しいものから 前のトピック | 次のトピック | 下へ
投稿者 スレッド
GELL
投稿日時: 2011/4/8 0:04
対応状況: −−−
半人前
登録日: 2011/3/29
居住地:
投稿: 11
2.11.0+Postgresqlでインストールできない
"サイト情報について"
"EC-CUBEのシステム向上及び、デバッグのため以下の情報のご提供をお願いいたします。"

のあとに次に進むボタンを押すと下記のようなエラー画面が表示されました。

↓↓↓↓↓↓エラー内容
<br />
<b>Fatal error</b>: https://hogehoge.com/shop/install/?

SERVER_ADDR: xxx.xxx.xxx.xxx
REMOTE_ADDR: xxx.xxx.xxx.xxx
USER_AGENT: Mozilla/5.0 (Windows; U; Windows NT 6.1; ja; rv:1.9.2.16) Gecko/20110319 Firefox/3.6.16

SQL: INSERT INTO dtb_member(member_id,name,login_id,password,salt,creator_id,authority,work,del_flg,rank,create_date,update_date) VALUES (?,?,?,?,?,?,?,?,?,?,Now(),Now())

MDB2 Error: unknown error

_doQuery: [Error message: Could not execute statement]
[Last executed query: PREPARE mdb2_statement_pgsql_57c1c5061ed44bcf516de9321de2c98bfd01d61b1 (text, text, text, text, text, text, text, text, text, text) AS INSERT INTO dtb_member(member_id,name,login_id,password,salt,creator_id,authority,work,del_flg,rank,create_date,update_date) VALUES ($1,$2,$3,$4,$5,$6,$7,$8,$9,$10,Now(),Now())]
[Native message: ERROR: column "member_id" is of type integer but expression is of type text at character 270
HINT: You will need to rewrite or cast the expression.]


/var/www/html/shop/install/index.php 217:lfDispComplete
/var/ww in <b>/var/www/shop_data/class/SC_Query.php</b> on line <b>870</b><br />
↑↑↑↑↑↑↑↑以上

# EC-CUBEバージョン:2.11.0
# PHP情報:5.2.16
# DB情報:PostgreSQL 8.4.7

なお、Mysqlだと正常にインストールが完了できます。

アドバイスいただければ幸いです。
AMUAMU
投稿日時: 2011/4/8 14:17
対応状況: −−−
登録日: 2009/5/2
居住地: 東京都
投稿: 2712
Re: 2.11.0+Postgresqlでインストールできない
通常は発生しえないエラーかと思いますし、再現もしませんが、何かカスタマイズ等していますか?


----------------
EC-CUBE公式エヴァンジェリスト
EC-CUBEインテグレートパートナー (株)スピリット・オブ
移転・拡張・高速化・問題解決
各種カスタマイズ・支援依頼承ります。

[url=h

GELL
投稿日時: 2011/4/8 18:25
対応状況: −−−
半人前
登録日: 2011/3/29
居住地:
投稿: 11
Re: 2.11.0+Postgresqlでインストールできない
2.11.0(不具合修正パッチ適用)の全くの新規でインストールしています。PostgreSQLはバージョンを変えても同じ状況です。
AMUAMU
投稿日時: 2011/4/8 23:03
対応状況: −−−
登録日: 2009/5/2
居住地: 東京都
投稿: 2712
Re: 2.11.0+Postgresqlでインストールできない
同等環境で再現しないのですが、どなたか再現するような情報ありませんか?

またGELLさんの環境で、 /html/install/index.php の569行目と570行目の間に
var_dump($member_id);

と入れて出力される内容は何でしょうか?


----------------
EC-CUBE公式エヴァンジェリスト
EC-CUBEインテグレートパートナー (株)スピリット・オブ
移転・拡張・高速化・問題解決
各種カスタマイズ・支援依頼承ります。

[url=h

GELL
投稿日時: 2011/4/8 23:26
対応状況: −−−
半人前
登録日: 2011/3/29
居住地:
投稿: 11
Re: 2.11.0+Postgresqlでインストールできない
このように表示されますが参考になりますでしょうか?
↓↓↓↓↓↓
int(2)
<br />
<b>Fatal error</b>: https://hogehoge.com/shop/install/?

SERVER_ADDR: x.x.x.x
REMOTE_ADDR: x.x.x.x
USER_AGENT: Mozilla/5.0 (Windows; U; Windows NT 6.1; ja; rv:1.9.2.16) Gecko/20110319 Firefox/3.6.16

SQL: INSERT INTO dtb_member(member_id,name,login_id,password,salt,creator_id,authority,work,del_flg,rank,create_date,update_date) VALUES (?,?,?,?,?,?,?,?,?,?,Now(),Now())

MDB2 Error: unknown error

_doQuery: [Error message: Could not execute statement]
[Last executed query: PREPARE mdb2_statement_pgsql_5e362c1dbbd41cb363df0683233c3dd593cb95e71 (text, text, text, text, text, text, text, text, text, text) AS INSERT INTO dtb_member(member_id,name,login_id,password,salt,creator_id,authority,work,del_flg,rank,create_date,update_date) VALUES ($1,$2,$3,$4,$5,$6,$7,$8,$9,$10,Now(),Now())]
[Native message: ERROR: column "member_id" is of type integer but expression is of type text at character 270
HINT: You will need to rewrite or cast the expression.]


/var/www/html/eshop/install/index.php 217:lfDispComplete
/var/ww in <b>/var/www/eshop_data/class/SC_Query.php</b> on line <b>870</b><br />
AMUAMU
投稿日時: 2011/4/11 2:43
対応状況: −−−
登録日: 2009/5/2
居住地: 東京都
投稿: 2712
Re: 2.11.0+Postgresqlでインストールできない
プログラムとしては正しく動作しそうな内容ですが、int値のパラメーターがtextパラメーターと認識されているという不可解な状態、PreparedStatementが正常に動作していない様子ですが、MDB2が正しく無いのか、PostgreSQLが正しく動作していないのか残念ながら掲示板のやりとりだけでは厳しそうな内容です。

EC-CUBEに限った問題とは思えず環境的要因が強そうに見受けられますが、一回全てを初期状態にして1から試してみると良いと思います。(特にDB)


----------------
EC-CUBE公式エヴァンジェリスト
EC-CUBEインテグレートパートナー (株)スピリット・オブ
移転・拡張・高速化・問題解決
各種カスタマイズ・支援依頼承ります。

[url=h

GELL
投稿日時: 2011/4/13 10:53
対応状況: −−−
半人前
登録日: 2011/3/29
居住地:
投稿: 11
Re: 2.11.0+Postgresqlでインストールできない
ありがとうございます。

怪しそうなところが判っただけでもありがたいです。

そちらのほうを重点的に調べてみることにします。
DELIGHT
投稿日時: 2011/9/2 19:50
対応状況: −−−
仙人
登録日: 2010/2/3
居住地: 熊本県・九州・長野県・関東甲信越
投稿: 572
Re: 2.11.0+Postgresqlでインストールできない
同じ現象に遭遇しましたので、一応環境を報告します。

EC-CUBE Ver 2.11.2
PHP Version 5.2.17
PostgreSQL:7.4.30
SERVER: WADAX 共用サーバ ブロンズ(50G)

pg_prepare がある条件(PHP:5.1.0以上 PostgreSql:7.4以降)を満たしているにもかかわらず、
function_exists('pg_prepare') [daga/module/MDB2/Driver/pgsql.php &prepare 860行目付近]
からなぜか「false」 が返って来ている所までは追っています。

PHP: pg_prepare - Manual

共用サーバのためやれる事が少なく、原因追及が難しいかもしれないですが、一応報告です。

--ここからエラー情報

<b>Fatal error</b>:  https://example.com/install/?

SERVER_ADDR: xxx.x.xxx.xx
REMOTE_ADDR: yyy.yyy.yyy.yy
USER_AGENT: Mozilla/5.0 (Windows NT 5.1; rv:6.0.1) Gecko/20100101 Firefox/6.0.1

SQL: INSERT INTO dtb_member(login_id,password,salt,work,del_flg,update_date,member_id,name,creator_id,authority,rank) VALUES (?,?,?,?,?,Now(),?,?,?,?,?)

MDB2 Error: unknown error

_doQuery: [Error message: Could not execute statement]
[Last executed query: PREPARE mdb2_statement_pgsql_5066234fcb2eb3e43d58e8f2d2122e0141b80d835 (text, text, text, text, text, text, text, text, text, text)  AS INSERT INTO dtb_member(login_id,password,salt,work,del_flg,update_date,member_id,name,creator_id,authority,rank) VALUES ($1,$2,$3,$4,$5,Now(),$6,$7,$8,$9,$10)]
[Native message: ERROR:  column "work" is of type smallint but expression is of type text
HINT:  You will need to rewrite or cast the expression.]


/home/[username]/public_html/install/index.php 217:lfDispComplete
/home/[username]/public_html/install/index.php 585:SC_Query->insert
/home/[username] in <b>/home/[username]/public_html/data/class/SC_Query.php</b> on line <b>870</b><br />


----------------
+ DAISY inc. -------------------- +
EC-CUBE構築・カスタマイズサービス
EC・WEB構築などお気軽にご相談ください。

デイジー株式会社
http://daisy.link/

nanasess
投稿日時: 2011/9/5 18:42
対応状況: −−−
登録日: 2006/9/9
居住地:
投稿: 2314
Re: 2.11.0+Postgresqlでインストールできない
PostgreSQL7.4.x の prepared は, データ型の指定が必須のようです.

以下のチケットにパッチを添付してますが, もう少し修正が必要です.
http://svn.ec-cube.net/open_trac/ticket/1330
スレッド表示 | 新しいものから 前のトピック | 次のトピック | トップ


 



ログイン


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

統計情報

総メンバー数は88,954名です
総投稿数は110,019件です

投稿数ランキング

1
seasoft
7367
2
468
3217
3
AMUAMU
2712
4
nanasess
2314
5
umebius
2085
6
yuh
1819
7
h_tanaka
1646
8
red
1570
9
mcontact
1296
10
tsuji
958
11
fukap
907
12
shutta
835
13
tao_s
799
14 ramrun 789
15 karin 689
16 sumida 641
17
homan
633
18 DELIGHT 572
19
patapata
502
20
flealog
485


ネットショップの壺

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

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