Page 5 of 5 FirstFirst ... 345
Results 41 to 49 of 49
  1. #41
    Join Date
    Jun 2016
    Location
    New York, NY
    Posts
    81
    Plugin Contributions
    0

    Default Re: Checkout Process error Incorrect integer value: '' for column 'transaction_id'

    Quote Originally Posted by SPython View Post
    As I mentioned in one of the posts above the payment modules were missing after logging into Zencart Admin. The steps I took to resolve this was to replace the edited authorizenet_aim.php (varchar(32)) with the backup I had made of the original. I then restarted mariadb and logged into Zencart and the modules were listed. I then edited the file again with to replace bigint(20) with varchar(20) updated the module in Admin. I then looked at the table and still the transaction_id type is listed as bigint(20). Restarting mariadb or even rebooting the server does not resolve this and, of course, transactions throw an error with Strict enabled with bigint(20)
    Correction - I misstyped - I replaced bigint(20) with varchar(32)

  2. #42
    Join Date
    Jun 2016
    Location
    New York, NY
    Posts
    81
    Plugin Contributions
    0

    Default Re: Checkout Process error Incorrect integer value: '' for column 'transaction_id'

    authorizenet_aim.php has :
    $fieldOkay1 = (method_exists($sniffer, 'field_type')) ? $sniffer->field_type(TABLE_AUTHORIZENET, 'transaction_id', 'varchar(32)', true) : -1;
    if ($fieldOkay1 !== true) {
    $db->Execute("ALTER TABLE " . TABLE_AUTHORIZENET . " CHANGE transaction_id transaction_id varchar(32) default NULL");

    Updating the module in admin does not change the transaction_id type in the mysql table immediately. Some while later it may change to varchar(32).

    If I then enable STRICT_TRANS_TABLES and restart mariadb the table reverts to biginit(20) although authorizenet_aim.php has the transaction id as varchar(32).
    So I am guessing that the table structure is being cached and restored on a reboot. Just a guess - but very frustrating.

  3. #43
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Checkout Process error Incorrect integer value: '' for column 'transaction_id'

    I don't think it's a caching thing. Doesn't seem logical that a db would cache old schemas for automatic reverting.

    I wonder if there's something else in your site that's making the change though. Perhaps doing a search of your entire site's PHP files for "bigint(20)" might be revealing. Admin->Tools->Developer's Toolkit->bottom field.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  4. #44
    Join Date
    Jun 2016
    Location
    New York, NY
    Posts
    81
    Plugin Contributions
    0

    Default Re: Checkout Process error Incorrect integer value: '' for column 'transaction_id'

    Quote Originally Posted by DrByte View Post
    I don't think it's a caching thing. Doesn't seem logical that a db would cache old schemas for automatic reverting.

    I wonder if there's something else in your site that's making the change though. Perhaps doing a search of your entire site's PHP files for "bigint(20)" might be revealing. Admin->Tools->Developer's Toolkit->bottom field.
    Thanks - will try that. I have already been looking for other files that may contain the string.

  5. #45
    Join Date
    Jun 2016
    Location
    New York, NY
    Posts
    81
    Plugin Contributions
    0

    Default Re: Checkout Process error Incorrect integer value: '' for column 'transaction_id'

    Quote Originally Posted by DrByte View Post
    I don't think it's a caching thing. Doesn't seem logical that a db would cache old schemas for automatic reverting.

    I wonder if there's something else in your site that's making the change though. Perhaps doing a search of your entire site's PHP files for "bigint(20)" might be revealing. Admin->Tools->Developer's Toolkit->bottom field.
    Nope - the only other file that contains it is authorizenet_echeck.php which I am not using and have not enabled

  6. #46
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Checkout Process error Incorrect integer value: '' for column 'transaction_id'

    Just to be certain of no clash, and no accidental firing that's overwriting the aim changes, try making the same varchar(32) change to the echeck module.

    Or just use the new authnet files from v1.5.5d which now has the varchar(32) changes built-in ;)
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  7. #47
    Join Date
    Jun 2016
    Location
    New York, NY
    Posts
    81
    Plugin Contributions
    0

    Default Re: Checkout Process error Incorrect integer value: '' for column 'transaction_id'

    Quote Originally Posted by DrByte View Post
    Just to be certain of no clash, and no accidental firing that's overwriting the aim changes, try making the same varchar(32) change to the echeck module.

    Or just use the new authnet files from v1.5.5d which now has the varchar(32) changes built-in ;)
    OK - I downloaded v1.5.5d yesterday. Will install and let you know. Thank you for your advice (and tolerance) - it is greatly appreciated.

  8. #48
    Join Date
    Jun 2016
    Location
    New York, NY
    Posts
    81
    Plugin Contributions
    0

    Default Re: Checkout Process error Incorrect integer value: '' for column 'transaction_id'

    Quote Originally Posted by DrByte View Post
    Just to be certain of no clash, and no accidental firing that's overwriting the aim changes, try making the same varchar(32) change to the echeck module.

    Or just use the new authnet files from v1.5.5d which now has the varchar(32) changes built-in ;)
    I am happy to report that after installing v1.5.5d the string varchar(32) appears permanently as the type for the transaction_id for authorizenet in mariadb. Also, after changing back to STRICT_TRANS_TABLES in my.cnf and restarting mariadb - transactions now go through with out error.

    Thank you DrByte and all the Zen Cart programmers!

  9. #49
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Checkout Process error Incorrect integer value: '' for column 'transaction_id'

    Yay!

    I suspect the other module was rewriting things (although I'm surprised it was firing). Nevertheless, I'm glad the consistency between them has now resolved it.

    Happy New Year ;)
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

 

 
Page 5 of 5 FirstFirst ... 345

Similar Threads

  1. v153 Communications Error with Authorize.net (AIM)
    By ajhoover in forum Addon Payment Modules
    Replies: 6
    Last Post: 13 Nov 2014, 08:24 PM
  2. Replies: 2
    Last Post: 22 Jun 2013, 03:48 AM
  3. 1366 Incorrect integer value Problems with MySQL 5 strict-mode
    By Max70 in forum Discounts/Coupons, Gift Certificates, Newsletters, Ads
    Replies: 13
    Last Post: 10 Dec 2009, 07:11 PM
  4. Replies: 4
    Last Post: 14 Jan 2009, 11:45 AM
  5. VAT error message (1366 Incorrect decimal value)
    By Typhoon in forum Currencies & Sales Taxes, VAT, GST, etc.
    Replies: 5
    Last Post: 18 Jul 2006, 11:32 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR