Results 1 to 8 of 8
  1. #1
    Join Date
    Nov 2006
    Posts
    66
    Plugin Contributions
    0

    Default Cross sell sql error

    i cant seem to install the sql patch i have tryed uploading in via the admin control panel and i can the following 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 zen_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.



    in the admin section it says to run the sql update via the zc_install folder but i havent got a clue how to do that,

    Any ideas on how to fix this problem ?

  2. #2
    Join Date
    Jul 2005
    Location
    Charlottesville, VA
    Posts
    431
    Plugin Contributions
    0

    Default Re: Cross sell sql error

    This is from the cross-sell SQL for ZC version 1.3.x, which I use on my website.

    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?<br />Default: false', 18, 72, 'zen_cfg_select_option(array(\'true\',\'false\'), ', now());
    What version of cross sell are you using? Check the downloads section and get the most recent one.

    If you are apply SQL patches from inside ZC admin, you do NOT want the table prefix "zen_"! That gets applied automatically, it's a global setting for your database.

    You cannot use the ZC installer to install add-on modules, AFAIK.

    ---Diana

  3. #3
    Join Date
    Jun 2004
    Posts
    130
    Plugin Contributions
    0

    Default Re: Cross sell sql error

    I get the same error - have the latest version. Anyone ever get this resolved?

  4. #4
    Join Date
    Feb 2006
    Posts
    72
    Plugin Contributions
    0

    Default Re: Cross sell sql error

    Me too, don't know what to do. I have done the research on the forums etc, and can't seem to find the answer.

  5. #5
    Join Date
    Mar 2007
    Posts
    4
    Plugin Contributions
    0

    Default Re: Cross sell sql error

    Just add the file, and ignore that sql error. The addon will work fine. (it worked for me) and I got that error

  6. #6
    Join Date
    Jun 2004
    Posts
    130
    Plugin Contributions
    0

    Default Re: Cross sell sql error

    I copied and pasted each SQL statement/group of statements separately into the box on top of the file upload in the admin and it worked fine.

  7. #7
    Join Date
    May 2006
    Location
    Japan
    Posts
    326
    Plugin Contributions
    1

    Default Re: Cross sell sql error

    The part of the sql statement that is doing this is:

    Code:
    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?<br />Default: false', 18, 72, 'zen_cfg_select_option(array(\'true\',\'false\'), ', now());
    Trying to get the fix now. Anyone else know the fix yet?
    Skin Evolution.
    Lynda.com,its a great place to learn.
    Camelot Hosting,it's where my site calls home!

    E-Start your Zen-Cart,KH is the Man, Thanks for all the hard work!

  8. #8
    Join Date
    May 2006
    Location
    Japan
    Posts
    326
    Plugin Contributions
    1

    Default Re: Cross sell sql error

    As this says for upgraders...if you are not upgrading do we need this, b/c this is the only part that fails

    ## For upgraders, you may want to add the additional index for marginal speed improvements:
    # ALTER TABLE products_xsell ADD INDEX idx_products_id_xsell (products_id);
    # 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?<br />Default: false', 18, 72, 'zen_cfg_select_option(array(\'true\',\'false\'), ', now());
    Skin Evolution.
    Lynda.com,its a great place to learn.
    Camelot Hosting,it's where my site calls home!

    E-Start your Zen-Cart,KH is the Man, Thanks for all the hard work!

 

 

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 My Sql Syntax Error
    By squid in forum All Other Contributions/Addons
    Replies: 16
    Last Post: 22 Sep 2007, 11:04 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