If this is your first visit, check our documentation. To post, register or login.

wishlist cannot install

Started by soso838 on 26 Jul 2012, 6:53 PM · Views: 2,261

Results 1 to 12 of 12
26 Jul 2012, 6:53 PM
#1
soso838 avatar

soso838

Zen Follower

Join Date:
May 2012
Posts:
105
Plugin Contributions:
0

wishlist cannot install

Hi I try so many time, but when I try to do the first step to install the Wishlist add on 0.9
I try to update the "wishlist.sql" it just continuing shows "WARNING: An Error occurred, please refresh the page and try again."
I even reinstall a new zencart 1.5 it shows the same
Who can help me with the wishlist, I really need it
Thanks:no:

26 Jul 2012, 6:56 PM
#2
rstevenson avatar

rstevenson

Totally Zenned

Join Date:
Nov 2006
Location:
Dartmouth, NS Canada
Posts:
2,400
Plugin Contributions:
0

Re: wishlist cannot install

Is the Wishlist mod compatible with v1.5.0?

Rob

Breakfast: the most important donut of the day.

26 Jul 2012, 7:14 PM
#3
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

Re: wishlist cannot install

A search for your error message brings up this FAQ article specifically related to your problem: http://www.zen-cart.com/content.php?311-warning-an-error-occurred-please-refresh-the-page-and-try-again

.
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.

26 Jul 2012, 9:15 PM
#4
soso838 avatar

soso838

Zen Follower

Join Date:
May 2012
Posts:
105
Plugin Contributions:
0

Re: wishlist cannot install

thanks the log shows:
[26-Jul-2012 22:41:42] PHP Fatal 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 'TYPE=MyISAM' at line 1 :: CREATE TABLE IF NOT EXISTS un_wishlists ( id int(11) NOT NULL auto_increment, customers_id int(11) NOT NULL default '0', created datetime NOT NULL default '0000-00-00 00:00:00', modified datetime NOT NULL default '0000-00-00 00:00:00', name varchar(255) default NULL, comment varchar(255) default NULL, default_status tinyint(1) NOT NULL default '0', public_status tinyint(1) NOT NULL default '1', PRIMARY KEY (id) ) TYPE=MyISAM; in C:\xampp\htdocs\test\includes\classes\db\mysql\query_factory.php on line 101

I not good at sql, should I just take out the "TYPE=MyISAM;"

26 Jul 2012, 9:42 PM
#5
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

Re: wishlist cannot install

"TYPE='MyISAM'" is obsolete syntax, designed for much older versions of MySQL.

The word "TYPE" should be "ENGINE" instead.

.
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.

26 Jul 2012, 10:50 PM
#6
soso838 avatar

soso838

Zen Follower

Join Date:
May 2012
Posts:
105
Plugin Contributions:
0

Re: wishlist cannot install

I changed the ENGINE, but not go through, I try to copy and past to Admin>mysql patch, it go through, but when I try to use sidebox, it not working, and I try to past to tpl_product_info_display.php it shows nothing too.
what should I do next:blink:

27 Jul 2012, 12:00 AM
#7
soso838 avatar

soso838

Zen Follower

Join Date:
May 2012
Posts:
105
Plugin Contributions:
0

Re: wishlist cannot install

I try so many times. I think still have some sql problems, who can give a correct one for wishlist v0.9
after installing it shows the sidebox. but after lick on the wishlist, the second error pages comes
Attachment 10884Attachment 10885
I really want this add_on work in my website :lookaroun

27 Jul 2012, 1:58 AM
#8
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

Re: wishlist cannot install

What's the new error showing in the logs?

.
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.

27 Jul 2012, 2:58 AM
#9
soso838 avatar

soso838

Zen Follower

Join Date:
May 2012
Posts:
105
Plugin Contributions:
0

Re: wishlist cannot install

Thanks DrByte, the error is :
[27-Jul-2012 01:42:03] PHP Fatal error: 1146:Table 'test.un_products_to_wishlists' doesn't exist :: select count(*) as total from un_wishlists w, un_products_to_wishlists p2w, products p, products_description pd where w.id = '2' and pd.language_id = '1' and p.products_status = 1 and w.id = p2w.un_wishlists_id and p2w.products_id = p.products_id and p2w.products_id = pd.products_id in C:\xampp\htdocs\test\includes\classes\db\mysql\query_factory.php on line 101

I use localhost\test for my web main directory, is the error caused by not install the wishlist into to right directory?

27 Jul 2012, 3:29 AM
#10
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

Re: wishlist cannot install

soso838:

1146:Table 'test.un_products_to_wishlists' doesn't exist
The error message means that the PHP code is trying to run a database query on a table that doesn't exist in the database your store is using.
This can be caused by installing the database SQL into the wrong database, or by the PHP code having bugs which prevent the code from finding the right tablename because it doesn't recognize the DB_PREFIX which your store is configured to use.
What is DB_PREFIX set to in your /includes/configure.php file? If it is not set to '' then the wishlist mod has a bug caused by the code not respecting the DB_PREFIX properly.

.
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.

27 Jul 2012, 4:18 AM
#11
soso838 avatar

soso838

Zen Follower

Join Date:
May 2012
Posts:
105
Plugin Contributions:
0

Re: wishlist cannot install

the DB_PREFIX is zen_, I changed already. but as I mention about
, I can not actually update the wishlist.sql
I try to upload from Admin, it shows many errors

WishList v0.8 SQL Load for MySQL databases

-- CREATE Wish list CONFIGURATION GROUP --
SET @t4=0;
SELECT (@t4:=configuration_group_id) as t4
FROM zen_configuration_group
WHERE configuration_group_title= 'Wish list';
DELETE FROM zen_configuration WHERE configuration_group_id = @t4;
DELETE FROM zen_configuration_group WHERE configuration_group_id = @t4;

INSERT INTO zen_configuration_group VALUES (NULL, 'Wish list', 'Settings for Wish list', '110', '1');
UPDATE configuration_group SET sort_order = last_insert_id() WHERE configuration_group_id = last_insert_id();

SET @t4=0;
SELECT (@t4:=configuration_group_id) as t4
FROM zen_configuration_group
WHERE configuration_group_title= 'Wish list';

INSERT INTO zen_configuration VALUES (NULL, 'Wishlist Module Switch', 'UN_DB_MODULE_WISHLISTS_ENABLED', 'true', 'Set this option true or false to enable or disable the wishlist', @t4, 710, now(), now(), NULL, "zen_cfg_select_option(array('true', 'false'),");
INSERT INTO zen_configuration VALUES (NULL, 'Wishlist sidebox header link', 'UN_DB_SIDEBOX_LINK_HEADER', 'true', 'Set this option true or false to make the sidebox header a link to the wishlist page.', @t4, 711, now(), now(), NULL, "zen_cfg_select_option(array('true', 'false'),");
INSERT INTO zen_configuration VALUES (NULL, 'Wishlist allow multiple lists', 'UN_DB_ALLOW_MULTIPLE_WISHLISTS', 'true', 'Set this option true or false to allow for more than 1 wishlist', @t4, 712, now(), now(), NULL, "zen_cfg_select_option(array('true', 'false'),");
INSERT INTO zen_configuration VALUES (NULL, 'Wishlist display category filter', 'UN_DB_DISPLAY_CATEGORY_FILTER', 'false', 'Set this option true or false to enable a category filter', @t4, 713, now(), now(), NULL, "zen_cfg_select_option(array('true', 'false'),");
INSERT INTO zen_configuration VALUES (NULL, 'Wishlist default name', 'DEFAULT_WISHLIST_NAME', 'Default', 'Enter the name you want to be assigned to the initial wishlist.', @t4, 714, now(), now(), NULL, NULL);
INSERT INTO zen_configuration VALUES (NULL, 'Wishlist show list after product addition', 'DISPLAY_WISHLIST', 'false', 'Set this option true or false to show the wishlist after a product was added to the wishlist', @t4, 715, now(), now(), NULL, "zen_cfg_select_option(array('true', 'false'),");
INSERT INTO zen_configuration VALUES (NULL, 'Wishlist display max items in extended view', 'UN_MAX_DISPLAY_EXTENDED', '10', 'Enter the maximum amount of products you want to show in extended view.<br />default = 10', @t4, 716, now(), now(), NULL, NULL);
INSERT INTO zen_configuration VALUES (NULL, 'Wishlist display max items in compact view', 'UN_MAX_DISPLAY_COMPACT', '20', 'Enter the maximum amount of products you want to show in extended view.<br />default = 20', @t4, 717, now(), now(), NULL, NULL);
INSERT INTO zen_configuration VALUES (NULL, 'Wishlist default view Switch', 'UN_DEFAULT_LIST_VIEW', 'extended', 'Set the default view of the list to compact or extended view', @t4, 718, now(), now(), NULL, "zen_cfg_select_option(array('compact', 'extended'),");
INSERT INTO zen_configuration VALUES (NULL, 'Wishlist allow multiple products to cart', 'UN_DB_ALLOW_MULTIPLE_PRODUCTS_CART_COMPACT', 'false', 'Set this option true or false to allow multiple products to be moved in the cart via checkboxes in compact view', @t4, 719, now(), now(), NULL, "zen_cfg_select_option(array('true', 'false'),");

--------------------------------------------------------

Table structure for table un_wishlists

avoid data loss when reinstall (this will give a table exists error)

if you want the table to be removed, then reinstalled; uncomment line below

#DROP TABLE IF EXISTS zen_un_wishlists;
CREATE TABLE IF NOT EXISTS zen_un_wishlists (
id int(11) NOT NULL auto_increment,
customers_id int(11) NOT NULL default '0',
created datetime NOT NULL default '0000-00-00 00:00:00',
modified datetime NOT NULL default '0000-00-00 00:00:00',
name varchar(255) default NULL,
comment varchar(255) default NULL,
default_status tinyint(1) NOT NULL default '0',
public_status tinyint(1) NOT NULL default '1',
PRIMARY KEY (id)
) ENGINE=MyISAM;
INSERT INTO zen_un_wishlists VALUES (1, 0, now(), now(), 'donotuse', 'donotuse', 0, 0);

--------------------------------------------------------

#April 2011 v0.8 added column
#added column for attributes, if you need to just add the column to an existing table use:
#alter table zen_un_products_to_wishlists add column attributes VARCHAR(255);
#in the sql patch tool in zen cart

Table structure for table zen_un_products_to_wishlists

avoid data loss when reinstall (this will give a table exists error)

if you want the table to be removed, then reinstalled; uncomment line below

#DROP TABLE IF EXISTS zen_un_products_to_wishlists;
CREATE TABLE IF NOT EXISTS zen_un_products_to_wishlists (
products_id int(11) NOT NULL default '0',
un_wishlists_id int(11) NOT NULL default '0',
created datetime NOT NULL default '0000-00-00 00:00:00',
modified datetime NOT NULL default '0000-00-00 00:00:00',
quantity int(2) NOT NULL default '1',
priority int(1) NOT NULL default '2',
comment varchar(255) default NULL,
attributes varchar(255) default NULL,
PRIMARY KEY (products_id,un_wishlists_id)
) ENGINE=MyISAM;

18 Sep 2012, 11:14 AM
#12
wulf359 avatar

wulf359

New Zenner

Join Date:
Feb 2008
Posts:
44
Plugin Contributions:
0

Re: wishlist cannot install

With your code above I made one change and it installed flawlessly.... I removed the zen_

WishList v0.8 SQL Load for MySQL databases

-- CREATE Wish list CONFIGURATION GROUP --
SET @t4=0;
SELECT (@t4:=configuration_group_id) as t4
FROM configuration_group
WHERE configuration_group_title= 'Wish list';
DELETE FROM configuration WHERE configuration_group_id = @t4;
DELETE FROM configuration_group WHERE configuration_group_id = @t4;

INSERT INTO configuration_group VALUES (NULL, 'Wish list', 'Settings for Wish list', '110', '1');
UPDATE configuration_group SET sort_order = last_insert_id() WHERE configuration_group_id = last_insert_id();

SET @t4=0;
SELECT (@t4:=configuration_group_id) as t4
FROM configuration_group
WHERE configuration_group_title= 'Wish list';

INSERT INTO configuration VALUES (NULL, 'Wishlist Module Switch', 'UN_DB_MODULE_WISHLISTS_ENABLED', 'true', 'Set this option true or false to enable or disable the wishlist', @t4, 710, now(), now(), NULL, "cfg_select_option(array('true', 'false'),");
INSERT INTO configuration VALUES (NULL, 'Wishlist sidebox header link', 'UN_DB_SIDEBOX_LINK_HEADER', 'true', 'Set this option true or false to make the sidebox header a link to the wishlist page.', @t4, 711, now(), now(), NULL, "cfg_select_option(array('true', 'false'),");
INSERT INTO configuration VALUES (NULL, 'Wishlist allow multiple lists', 'UN_DB_ALLOW_MULTIPLE_WISHLISTS', 'true', 'Set this option true or false to allow for more than 1 wishlist', @t4, 712, now(), now(), NULL, "cfg_select_option(array('true', 'false'),");
INSERT INTO configuration VALUES (NULL, 'Wishlist display category filter', 'UN_DB_DISPLAY_CATEGORY_FILTER', 'false', 'Set this option true or false to enable a category filter', @t4, 713, now(), now(), NULL, "cfg_select_option(array('true', 'false'),");
INSERT INTO configuration VALUES (NULL, 'Wishlist default name', 'DEFAULT_WISHLIST_NAME', 'Default', 'Enter the name you want to be assigned to the initial wishlist.', @t4, 714, now(), now(), NULL, NULL);
INSERT INTO configuration VALUES (NULL, 'Wishlist show list after product addition', 'DISPLAY_WISHLIST', 'false', 'Set this option true or false to show the wishlist after a product was added to the wishlist', @t4, 715, now(), now(), NULL, "cfg_select_option(array('true', 'false'),");
INSERT INTO configuration VALUES (NULL, 'Wishlist display max items in extended view', 'UN_MAX_DISPLAY_EXTENDED', '10', 'Enter the maximum amount of products you want to show in extended view.<br />default = 10', @t4, 716, now(), now(), NULL, NULL);
INSERT INTO configuration VALUES (NULL, 'Wishlist display max items in compact view', 'UN_MAX_DISPLAY_COMPACT', '20', 'Enter the maximum amount of products you want to show in extended view.<br />default = 20', @t4, 717, now(), now(), NULL, NULL);
INSERT INTO configuration VALUES (NULL, 'Wishlist default view Switch', 'UN_DEFAULT_LIST_VIEW', 'extended', 'Set the default view of the list to compact or extended view', @t4, 718, now(), now(), NULL, "cfg_select_option(array('compact', 'extended'),");
INSERT INTO configuration VALUES (NULL, 'Wishlist allow multiple products to cart', 'UN_DB_ALLOW_MULTIPLE_PRODUCTS_CART_COMPACT', 'false', 'Set this option true or false to allow multiple products to be moved in the cart via checkboxes in compact view', @t4, 719, now(), now(), NULL, "cfg_select_option(array('true', 'false'),");

--------------------------------------------------------

Table structure for table un_wishlists

avoid data loss when reinstall (this will give a table exists error)

if you want the table to be removed, then reinstalled; uncomment line below

#DROP TABLE IF EXISTS un_wishlists;
CREATE TABLE IF NOT EXISTS un_wishlists (
id int(11) NOT NULL auto_increment,
customers_id int(11) NOT NULL default '0',
created datetime NOT NULL default '0000-00-00 00:00:00',
modified datetime NOT NULL default '0000-00-00 00:00:00',
name varchar(255) default NULL,
comment varchar(255) default NULL,
default_status tinyint(1) NOT NULL default '0',
public_status tinyint(1) NOT NULL default '1',
PRIMARY KEY (id)
) ENGINE=MyISAM;
INSERT INTO un_wishlists VALUES (1, 0, now(), now(), 'donotuse', 'donotuse', 0, 0);

--------------------------------------------------------

#April 2011 v0.8 added column
#added column for attributes, if you need to just add the column to an existing table use:
#alter table un_products_to_wishlists add column attributes VARCHAR(255);
#in the sql patch tool in zen cart

Table structure for table un_products_to_wishlists

avoid data loss when reinstall (this will give a table exists error)

if you want the table to be removed, then reinstalled; uncomment line below

#DROP TABLE IF EXISTS un_products_to_wishlists;
CREATE TABLE IF NOT EXISTS un_products_to_wishlists (
products_id int(11) NOT NULL default '0',
un_wishlists_id int(11) NOT NULL default '0',
created datetime NOT NULL default '0000-00-00 00:00:00',
modified datetime NOT NULL default '0000-00-00 00:00:00',
quantity int(2) NOT NULL default '1',
priority int(1) NOT NULL default '2',
comment varchar(255) default NULL,
attributes varchar(255) default NULL,
PRIMARY KEY (products_id,un_wishlists_id)
) ENGINE=MyISAM;