Results 1 to 3 of 3
  1. #1
    Join Date
    Sep 2007
    Posts
    60
    Plugin Contributions
    0

    Default [duplicate] incorrect DB config for LinkPoint module for Zencart V1.3.7.1

    LinkPoint module for Zencart V1.3.7.1 generates mySQL errors when user is trying to confirm purchase. My linkpoint gateway is working fine but I am getting mysql errors when trying to place orders. The mySQL error I am getting is:

    "1265 Data truncated for column 'lp_trans_num' at row 1
    in:
    [update orders set lp_trans_num ='4162D97C-4824C20E-998-AFA3C' where orders_id = '14']".

    The "orders" table has a column called "lp_trans_num" of type int(11) and the script is trying to stuff a varchar number like this in it "4162D97C-4824C20E-998-AFA3C" which is generating a mySQL error. This is in Production Mode. That number in the sql statement is the same as "Order Number" when i login to the YourPay site to view my transactions. Again it is what the YourPay site describes as ORDER NUMBER and NOT the transaction number. The Trans ID for an order in my YourPay site was a 12 digit integer which would still not fit into lp_trans_num int(11) either. After looking at another table called `linkpoint_api` in zencart database i noticed that it too has a column called `lp_trans_num` but unlike the orders table it has a type of varchar(64) not int(11). This database does not seem to be configured correctly. I am scared to make the changes less I know what the outcome could be since i did not write this module and dont know exactly how it works. This module has obviously been configured wrong and I need to know how to fix it. It is the built in module so it should not be giving me problems! By the way when trying to place an order in Test Mode i get another error except because it is trying to put an empty string in to `lp_trans_num` which is also illegal.

    Also, the LinkPoint gateway is working fine on its side. Logging into their site shows the correct orders and transaction. It is the zencart module that is not getting and storing the correct information into the database and generating sql errors as it tries to.

    After changing the lp_trans_num in the orders table from type int(11) to varchar(64) it is now storing the "transaction number". The database was obviously configured wrong in this file /includes/modules/payment/linkpoint_api.php line 591: $sql = "ALTER TABLE " . TABLE_ORDERS . " ADD lp_trans_num int(11) NOT NULL DEFAULT 0"; This shuold be changed from int(11) to varchar(64) by the ZenCart team.....

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

    Default Re: incorrect DB config for LinkPoint module for Zencart V1.3.7.1

    As has been said in your duplicate post about the same topic (a practice which is frowned upon), the issue was already posted and fixed for v1.3.8.

    Bug reports on old versions aren't very useful, especially when they've already been fixed in an already-released newer version.
    .

    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.

  3. #3
    Join Date
    Sep 2007
    Posts
    60
    Plugin Contributions
    0

    Default Re: [duplicate] incorrect DB config for LinkPoint module for Zencart V1.3.7.1

    I am sorry, no one was responding so I figured everyone was clueless or something. I guess i should look at what was fixed on other versions, but i thought something this important would be fixed in any version and that updates were more of improvements not fixing something that is totally dysfunctional, but alas i was wrong. Thank you for the response, i really wanted a confirmation that the change i made to the column wasnt going to break something later. Thanks. -sandy

 

 

Similar Threads

  1. Module KeyClient for Zencart 1.3.7 - does it work for 1.3.8?
    By zanf in forum Addon Payment Modules
    Replies: 0
    Last Post: 16 Sep 2009, 04:43 PM
  2. CURL functions not found - required for Linkpoint API payment module
    By batwyj in forum Built-in Shipping and Payment Modules
    Replies: 1
    Last Post: 5 Jul 2007, 05:42 AM
  3. USPS module - incorrect quote for Parcel
    By Red Sonja in forum Built-in Shipping and Payment Modules
    Replies: 2
    Last Post: 27 Jun 2007, 07:54 PM
  4. CURL functions not found - required for Linkpoint API payment module
    By raino in forum Managing Customers and Orders
    Replies: 1
    Last Post: 2 Dec 2006, 04:19 PM
  5. CONFIGURING SSL w/ LinkPoint for ZenCart
    By virtue in forum General Questions
    Replies: 0
    Last Post: 14 May 2006, 08:32 PM

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