Forums / Contribution-Writing Guidelines / Cross sell sql error

Cross sell sql error

Locked

Started by bean_2k1 on 9 Jan 2007, 9:30 AM · Views: 3,610

Results 1 to 8 of 8
This thread is locked. New replies are disabled.
9 Jan 2007, 9:30 AM
#1
bean_2k1 avatar

bean_2k1

New Zenner

Join Date:
Nov 2006
Posts:
66
Plugin Contributions:
0

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 ?

16 Jan 2007, 5:32 PM
#2
dbrewster avatar

dbrewster

Zen Follower

Join Date:
Jul 2005
Location:
Charlottesville, VA
Posts:
376
Plugin Contributions:
0

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

8 Apr 2007, 7:12 PM
#3
scarlet avatar

scarlet

Zen Follower

Join Date:
Jun 2004
Posts:
127
Plugin Contributions:
0

Re: Cross sell sql error

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

8 Apr 2007, 10:51 PM
#4
trudesign avatar

trudesign

New Zenner

Join Date:
Feb 2006
Posts:
72
Plugin Contributions:
0

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.

8 Apr 2007, 11:40 PM
#5
arcdigital avatar

arcdigital

New Zenner

Join Date:
Mar 2007
Posts:
4
Plugin Contributions:
0

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

9 Apr 2007, 12:04 AM
#6
scarlet avatar

scarlet

Zen Follower

Join Date:
Jun 2004
Posts:
127
Plugin Contributions:
0

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.

10 Apr 2007, 2:11 PM
#7
godspeed27 avatar

godspeed27

Zen Follower

Join Date:
May 2006
Location:
Japan
Posts:
322
Plugin Contributions:
1

Re: Cross sell sql error

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

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!

10 Apr 2007, 2:19 PM
#8
godspeed27 avatar

godspeed27

Zen Follower

Join Date:
May 2006
Location:
Japan
Posts:
322
Plugin Contributions:
1

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!