Am getting this warning message when placing an order.

CommentFileSizeAuthor
#9 cod.diff477 bytesesadot
#1 ec_transaction.txt1.61 KBesadot
cod.jpg108.71 KBesadot

Comments

esadot’s picture

StatusFileSize
new1.61 KB

MySQL ec_transaction table holds two entries for this one transaction. Please see attached.

Further, COD was set up to "Mark transaction as paid? = yes" and "Mark transaction workflow as completed? = yes", however the transaction status is Transaction received (under user's myfiles directory)", and why admin changed it to completed i got the following warning message:
user warning: Duplicate entry '' for key 2 query: INSERT INTO ec_customer (ecid, type, exid, token) VALUES (3, '', '', '21f7f2d42d14ec4d5867f9ebce0ae4c7') in C:\www\webroot\ec4\includes\database.mysql.inc on line 172.

brmassa’s picture

Status: Active » Fixed

Emek,

fixed on the lastest eC4 CVS

regards,

massa

esadot’s picture

Status: Fixed » Active

Have test it with the latest dev (Oct 16) that supposedly have the fixed incorporated, and I'm afraid the issue persist.

dingo001’s picture

Status: Active » Fixed

The same error happens for me too.. here is the text

warning: Invalid argument supplied for foreach() in /home/x/public_html/y/modules/ecommerce/contrib/cod/cod.module on line 120.

esadot’s picture

Status: Fixed » Active

Gordon, any idea where this stands? can you please point out where the issue might lie?

gordon’s picture

Status: Active » Fixed

I have fixed this in dev

esadot’s picture

Status: Fixed » Active

Have just downloaded the dev and the issue is current.

esadot’s picture

The "foreach() ... line 120" issue is solved. However, ec_transaction still holds two entries per transaction (please see attached in the 2nd post), is it by-design? in addition, although COD is set up to "Mark transaction as paid? = yes" and "Mark transaction workflow as completed? = yes", the transaction is Payments pending.

esadot’s picture

StatusFileSize
new477 bytes

I believe the attached patch resolve the issue.

brmassa’s picture

Status: Active » Fixed

Emek,

your right. fixed on eC4 CVS.

regards,

massa

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.