Results 1 to 5 of 5
  1. #1
    Join Date
    Jul 2007
    Posts
    42
    Plugin Contributions
    0

    Default [Done v1.3.8] Single Quote Problem Durning Checkout - AIM module

    if anyone has a fix for this please let me know but, I have done alot of testing to make sure that i did "find" this error and have it narrowed down to what it is.

    I have a Product called

    -O'Keeffe's Working Hands

    and the Products Manufacturer is

    -O'Keeffe's

    I only have one payment option inabled and that's
    authorize.net (aim)

    if you have a quote in the product name it will error out your checkout on the final step.

    but if you take the sigle quote out of the name it works just fine.

    the error i get is

    1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'Keeffe's Working Hands(qty: 1) [Date] => July 6, 2007, 2:52 pm [IP] => ' at line 1
    in:
    [insert into zen_authorizenet (id, customer_id,order_id, response_code, response_text, authorization_type, transaction_id, sent, received, time, session_id) values ('', '1', '1', '3', '(TESTMODE) The merchant login ID or password is invalid or the account is inactive.', 'auth_capture', '0', 'Array ( [x_login] => ******* [x_tran_key] => ******* [x_relay_response] => FALSE [x_delim_data] => TRUE [x_version] => 3.1 [x_type] => AUTH_CAPTURE [x_method] => CC [x_amount] => 17.33 [x_card_num] => *******0015 [x_exp_date] => 0109 [x_card_code] => ******* [x_email_customer] => FALSE [x_email_merchant] => FALSE [x_cust_id] => 1 [x_invoice_num] => TEST-1 [x_first_name] => William [x_last_name] => Lamoreaux [x_company] => [x_address] => 1500 Preston Rd [x_city] => Dallas [x_state] => Texas [x_zip] => 75093 [x_country] => United States [x_phone] => 469-212-4850 [x_email] => WilliamLamoreaux###################### [x_ship_to_first_name] => William [x_ship_to_last_name] => Lamoreaux [x_ship_to_address] => 1500 Preston Rd [x_ship_to_city] => Dallas [x_ship_to_state] => Texas [x_ship_to_zip] => 75093 [x_ship_to_country] => United States [x_description] => O'Keeffe's Working Hands(qty: 1) [Date] => July 6, 2007, 2:52 pm [IP] => 71.123.143.121 [Session] => 0ae8875fe62a244c35dc3021f57ed2db [x_test_request] => TRUE [url] => https://secure.authorize.net/gateway/transact.dll ) ', '1=3&2=2&3=13&4=%28TESTMODE%29+The+merchant+login+ID+or+password+is+invalid+or+t he+account+is+inactive.&5=000000&6=P&7=0&8=&9=&10=17.33&11=&12=auth_capture&13=& 14=&15=&16=&17=&18=&19=&20=&21=&22=&23=&24=&25=&26=&27=&28=&29=&30=&31=&32=&33=& 34=&35=&36=&37=&38=9F7D8E6783D5B5C8D3989A95DA9AF5AF&39=&40=&41=&42=&43=&44=&45=& 46=&47=&48=&49=&50=&51=&52=&53=&54=&55=&56=&57=&58=&59=&60=&61=&62=&63=&64=&65=& 66=&67=&68=&69=July+6+2007+2%3A52+pm&70=71.123.143.121&71=0ae8875fe62a244c35dc30 21f57ed2db', 'July 6, 2007, 2:52 pm', '0ae8875fe62a244c35dc3021f57ed2db')]

  2. #2
    Join Date
    Jul 2007
    Posts
    42
    Plugin Contributions
    0

    Default Re: Single Quote Problem Durning Checkout

    Quote Originally Posted by wlamoreaux View Post
    if anyone has a fix for this please let me know but, I have done alot of testing to make sure that i did "find" this error and have it narrowed down to what it is.

    I have a Product called

    -O'Keeffe's Working Hands

    and the Products Manufacturer is

    -O'Keeffe's

    I only have one payment option inabled and that's
    authorize.net (aim)

    if you have a quote in the product name it will error out your checkout on the final step.

    but if you take the sigle quote out of the name it works just fine.

    the error i get is

    1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'Keeffe's Working Hands(qty: 1) [Date] => July 6, 2007, 2:52 pm [IP] => ' at line 1
    in:
    [insert into zen_authorizenet (id, customer_id,order_id, response_code, response_text, authorization_type, transaction_id, sent, received, time, session_id) values ('', '1', '1', '3', '(TESTMODE) The merchant login ID or password is invalid or the account is inactive.', 'auth_capture', '0', 'Array ( [x_login] => ******* [x_tran_key] => ******* [x_relay_response] => FALSE [x_delim_data] => TRUE [x_version] => 3.1 [x_type] => AUTH_CAPTURE [x_method] => CC [x_amount] => 17.33 [x_card_num] => *******0015 [x_exp_date] => 0109 [x_card_code] => ******* [x_email_customer] => FALSE [x_email_merchant] => FALSE [x_cust_id] => 1 [x_invoice_num] => TEST-1 [x_first_name] => William [x_last_name] => Lamoreaux [x_company] => [x_address] => 1500 Preston Rd [x_city] => Dallas [x_state] => Texas [x_zip] => 75093 [x_country] => United States [x_phone] => 469-212-4850 [x_email] => WilliamLamoreaux###################### [x_ship_to_first_name] => William [x_ship_to_last_name] => Lamoreaux [x_ship_to_address] => 1500 Preston Rd [x_ship_to_city] => Dallas [x_ship_to_state] => Texas [x_ship_to_zip] => 75093 [x_ship_to_country] => United States [x_description] => O'Keeffe's Working Hands(qty: 1) [Date] => July 6, 2007, 2:52 pm [IP] => 71.123.143.121 [Session] => 0ae8875fe62a244c35dc3021f57ed2db [x_test_request] => TRUE [url] => https://secure.authorize.net/gateway/transact.dll ) ', '1=3&2=2&3=13&4=%28TESTMODE%29+The+merchant+login+ID+or+password+is+invalid+or+t he+account+is+inactive.&5=000000&6=P&7=0&8=&9=&10=17.33&11=&12=auth_capture&13=& 14=&15=&16=&17=&18=&19=&20=&21=&22=&23=&24=&25=&26=&27=&28=&29=&30=&31=&32=&33=& 34=&35=&36=&37=&38=9F7D8E6783D5B5C8D3989A95DA9AF5AF&39=&40=&41=&42=&43=&44=&45=& 46=&47=&48=&49=&50=&51=&52=&53=&54=&55=&56=&57=&58=&59=&60=&61=&62=&63=&64=&65=& 66=&67=&68=&69=July+6+2007+2%3A52+pm&70=71.123.143.121&71=0ae8875fe62a244c35dc30 21f57ed2db', 'July 6, 2007, 2:52 pm', '0ae8875fe62a244c35dc3021f57ed2db')]

    i have also replaced the single quote with a ` i don't know what it is called but it's a backwards appostirfie and it worked just fine. so this seems to be a problem on createing the product in the admin.

    Please if anyone has a fix for this please let me know cause alot of my products have special char's like this.

  3. #3
    Join Date
    Jan 2004
    Posts
    66,450
    Plugin Contributions
    81

    Default Re: Single Quote Problem Durning Checkout

    What version of Zen Cart?
    Are you using the auth.net AIM module that came "with" Zen Cart, or have you patched it in any way?
    What version of MySQL ?
    .
    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. #4
    Join Date
    Jul 2007
    Posts
    42
    Plugin Contributions
    0

    Default Re: Single Quote Problem Durning Checkout

    Quote Originally Posted by DrByte View Post
    What version of Zen Cart?
    Are you using the auth.net AIM module that came "with" Zen Cart, or have you patched it in any way?
    What version of MySQL ?

    ahh sorry i didn't include that info, my bad.....

    nothing is modded that would affect this. my shipping and payment is not modded at all.

    Zen Cart 1.3.7
    Database Patch Level: 1.3.7
    v1.3.7 [2007-07-05 23:35:20] (Fresh Installation)

    Server OS: Linux 2.6.9-55.ELsmp
    PHP Version: 4.4.7 (Zend: 1.3.0)
    Database: MySQL 4.1.21-standard
    HTTP Server: Apache/1.3.37


    also just to test i uploaded a "fresh" copy of zen to a test account i have on this server and just added on catagory and on product and tested with authorize (aim) and had same error.

    so on that fresh install i just removed the single quote from the product name and it worked just fine.

    But as for my customer she's not going to "remember" not to use single quotes so i am hopeing that there is some type of fix for this.

    Thanks

  5. #5
    Join Date
    Jan 2004
    Posts
    66,450
    Plugin Contributions
    81

    Default Re: Single Quote Problem Durning Checkout

    Is it any different using this updated version of the module?

    http://www.zen-cart.com/forum/showpo...4&postcount=45



    NOTE: the problem has been fixed in v1.3.8
    .
    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.

 

 

Similar Threads

  1. v155 [Done v155a] Typo in Authorize.net AIM Module
    By numinix in forum Bug Reports
    Replies: 1
    Last Post: 5 May 2016, 04:47 AM
  2. Authorize.net AIM Module Not showing up in Checkout
    By jamadri in forum Built-in Shipping and Payment Modules
    Replies: 3
    Last Post: 5 Sep 2013, 05:43 PM
  3. Replies: 6
    Last Post: 6 Jul 2012, 06:25 AM
  4. Replies: 1
    Last Post: 29 Apr 2009, 07:58 PM
  5. Single quote problem
    By flightoffancy in forum General Questions
    Replies: 3
    Last Post: 14 Sep 2008, 07:29 PM

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