Ticket #398 (closed バグ指摘: 無効)

Opened 12 years ago

Last modified 12 years ago

(1.X系のみ)ペイジェントモジュールで入金確認バッチ処理でエラー

Reported by: shutta Owned by: shutta
Priority: Milestone: EC-CUBE
Component: その他 Version: 1.4系(正式版)
Keywords: Cc:
修正済み:

Description (last modified by shutta) (diff)

1.X系のみですが、ペイジェントモジュールで入金確認バッチ処理(paygent_batch.php)がエラーになります。

エラーの内容は下記の通りです。

PHP Warning: require_once(DATA_PATHmodule/Request.php): failed to open stream: No such file or directory in /XXX/data/downloads/module/mdl_paygentLC_Helper_Send_Payment.php on line 23

PHP Fatal error: require_once(): Failed opening required 'DATA_PATHmodule/Request.php' (include_path='/XXX/data/downloads/module/mdl_paygent:.:/usr/share/pear:/usr/share/php') in /XXX/data/downloads/module/mdl_paygent/LC_Helper_Send_Payment.php on line 23

Change History

comment:1 Changed 12 years ago by shutta

  • Description modified (diff)

comment:2 Changed 12 years ago by shutta

  • Status changed from new to assigned

paygent_batch.php内で、

mdl_paygent.incが、conf.phpより前にrequireされているために、

DATA_PATH定数が評価できずにエラーになっています。

mdl_paygent.incのrequireの順序を下にすれば直りました。

下記の変更を取り込んで頂けますでしょうか?

=============================== 変更前 =============================== ... $PAYGENT_BATCH_DIR = realpath(dirname( FILE)); require_once($PAYGENT_BATCH_DIR . "/mdl_paygent.inc"); require_once($PAYGENT_BATCH_DIR . "/../../../conf/conf.php" ); require_once($PAYGENT_BATCH_DIR . "/../../../class/SC_DbConn.php"); require_once($PAYGENT_BATCH_DIR . "/../../../class/SC_Query.php"); require_once($PAYGENT_BATCH_DIR . "/../../../lib/glib.php"); require_once($PAYGENT_BATCH_DIR . "/../../../lib/slib.php"); sfPaygentBatch(); ... ======================================================================

=============================== 変更後 =============================== ... $PAYGENT_BATCH_DIR = realpath(dirname( FILE)); require_once($PAYGENT_BATCH_DIR . "/../../../conf/conf.php" ); require_once($PAYGENT_BATCH_DIR . "/../../../class/SC_DbConn.php"); require_once($PAYGENT_BATCH_DIR . "/../../../class/SC_Query.php"); require_once($PAYGENT_BATCH_DIR . "/../../../lib/glib.php"); require_once($PAYGENT_BATCH_DIR . "/../../../lib/slib.php"); require_once($PAYGENT_BATCH_DIR . "/mdl_paygent.inc"); sfPaygentBatch(); ... ======================================================================

comment:3 Changed 12 years ago by takegami

  • Status changed from assigned to closed
  • Resolution set to 無効
Note: See TracTickets for help on using tickets.