Page 1 of 2 12 LastLast
Results 1 to 10 of 17
  1. #1
    Join Date
    Mar 2006
    Posts
    17
    Plugin Contributions
    0

    Default Cross Sell My Sql Syntax Error

    Zencart v. 1.3.5
    Database: MySQL 4.0.27-standard-log
    PHP Version: 4.4.4
    Mods:
    column layout Grid 1.3.5
    Back up MYSQL Admin
    1.3.5 xss patch2

    I have tried to install cross sell and also cross sell advanced. When I try to upload products xsell_sql into Admin I get this error:

    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 'true','false'), ', now())' at line 1
    in:
    [INSERT INTO configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) VALUES ('Cross-Sell - Display prices?', 'XSELL_DISPLAY_PRICE', 'false', 'Cross-Sell -- Do you want to display the product prices too?
    Default: false', 18, 72, 'zen_cfg_select_option(array('true','false'), ', now());]
    If you were entering information, press the BACK button in your browser and re-check the information you had entered to be sure you left no blank fields.

    I have checked the forum and I didn't find a solution to this problem.

    'zen_cfg_select_option(array(\'true\',\'false\'), ', now());
    I wonder if the escapes in the 'true' 'false' above are the problem, but I know the xsell mod has worked successfully for many others.

    Thanks for any help.

  2. #2
    Join Date
    Oct 2006
    Posts
    15
    Plugin Contributions
    0

    Default Re: Cross Sell My Sql Syntax Error

    Same thing happens to me.

    Anticoles

  3. #3
    Join Date
    Nov 2006
    Posts
    160
    Plugin Contributions
    0

    Default Re: Cross Sell My Sql Syntax Error

    I get the same error too

  4. #4
    Join Date
    May 2006
    Posts
    43
    Plugin Contributions
    0

    Default Re: Cross Sell My Sql Syntax Error

    Still looking for a fix to this problem

  5. #5
    Join Date
    Nov 2006
    Posts
    160
    Plugin Contributions
    0

    Default Re: Cross Sell My Sql Syntax Error

    thanks for the post. At least it's being worked on. Appreciate the update

  6. #6

    Default Re: Cross Sell My Sql Syntax Error

    Anybody gotten an answer yet? I'm getting the same error.

  7. #7

    Default Re: Cross Sell My Sql Syntax Error

    I think I've got this figured out!

    I downloaded v1.3.0 (because previous posts mentioned having it work) and tried that. I still got the MySQL error, so I played around with the .sql file and finally gotit to work by adding DOUBLE QUOTES here:

    "zen_cfg_select_option(array(\'true\',\'false\'),"

    This may also work in the 1.3.1 version, but I found the install instructions so much easier than v1.3.1 to follow, especially for a New Zenner like myself.

    Have tested in my cart and all seems to work properly. Gosh it's so nice to be able to contribute once in a while!

  8. #8
    Join Date
    Mar 2006
    Posts
    17
    Plugin Contributions
    0

    Default Re: Cross Sell My Sql Syntax Error

    Just an update: This issue was solved by copying and pasting one section of the .sql doc at a time. Then it didn’t throw errors. No changes were necessary to the actual .sql document.

    Hope this works for someone else.

  9. #9
    Join Date
    Nov 2006
    Posts
    160
    Plugin Contributions
    0

    Default Re: Cross Sell My Sql Syntax Error

    okay, stupid question here but what do you mean copying and pasting one section of the sql at a time? Do you mean keepting seciton one in, saving it, uploading it and then just uploading section 2....?


  10. #10
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default Re: Cross Sell My Sql Syntax Error

    You could save the trouble of guessing by just using phpMyAdmin instead of the SQL Patch screen.
    .

    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 1 of 2 12 LastLast

Similar Threads

  1. Cross Sell SQL error
    By garwak in forum All Other Contributions/Addons
    Replies: 3
    Last Post: 18 Jan 2013, 03:06 AM
  2. Fatal Error After installing Cross Sell - Just Another Cross Sell Mod
    By kconklin in forum All Other Contributions/Addons
    Replies: 7
    Last Post: 9 Jul 2010, 02:38 PM
  3. Cross Sell SQL Error
    By TurtleDove in forum All Other Contributions/Addons
    Replies: 7
    Last Post: 12 Mar 2008, 04:42 AM
  4. Cross Sell Install Trouble - SQL Error - help would be great!
    By steveo3279 in forum All Other Contributions/Addons
    Replies: 4
    Last Post: 25 Jan 2008, 08:14 PM
  5. Cross sell sql error
    By bean_2k1 in forum Contribution-Writing Guidelines
    Replies: 7
    Last Post: 10 Apr 2007, 03:19 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