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

1.3.0.2 Install problem

Locked

Started by quentinjs on 22 Jun 2006, 4:15 AM · Views: 3,923

Results 1 to 15 of 15
This thread is locked. New replies are disabled.
22 Jun 2006, 4:15 AM
#1
quentinjs avatar

quentinjs

Zen Follower

Join Date:
Mar 2004
Location:
Calgary, Alberta
Posts:
289
Plugin Contributions:
0

Post #1 by quentinjs

Using Windows, and MySQL 5.

I had a 1.3.0.0 moved it to 1.3.0.1 and then tried upgrading to 1.3.0.2 and received this error....

1364 Field 'query_keys_list' doesn't have a default value
in:
[INSERT INTO query_builder ( query_category , query_name , query_description , query_string ) VALUES ('email,newsletters', 'Administrator', 'Just the email account of the current administrator', 'select 'ADMIN' as customers_firstname, admin_name as customers_lastname, admin_email as customers_email_address from TABLE_ADMIN where admin_id = $SESSION:admin_id');]

22 Jun 2006, 5:25 AM
#2
drbyte avatar

drbyte

Sensei

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

Post #2 by drbyte

Hmmm... not sure why the table doesn't have a default set for that field.
However, if you run this command via phpMyAdmin or perhaps the SQL Patch tool, you should be able to proceed:

ALTER TABLE query_builder CHANGE COLUMN query_keys_list query_keys_list TEXT NOT NULL default '' ;

EDIT: Looks like you must have upgraded from v1.2.5 or earlier at some point, and this change didn't get set in your database.
Thus, you should in fact do all of the following:

ALTER TABLE query_builder CHANGE COLUMN query_category query_category varchar(40) NOT NULL default '';
ALTER TABLE query_builder CHANGE COLUMN query_name query_name varchar(80) NOT NULL default '';
ALTER TABLE query_builder CHANGE COLUMN query_description query_description TEXT NOT NULL default '';
ALTER TABLE query_builder CHANGE COLUMN query_string query_string TEXT NOT NULL default '';
ALTER TABLE query_builder CHANGE COLUMN query_keys_list query_keys_list TEXT NOT NULL default '';

The above is not necessary if you started with a fresh v1.2.6 or newer database at some point.

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

22 Jun 2006, 5:49 AM
#3
quentinjs avatar

quentinjs

Zen Follower

Join Date:
Mar 2004
Location:
Calgary, Alberta
Posts:
289
Plugin Contributions:
0

Post #3 by quentinjs

Thanks that really helped.

It worked but gave this as a warning. Thought I'd mention them just in case they were required.

SKIPPED: Cannot insert configuration_key "UPLOAD_PREFIX" because it already exists
SKIPPED: Cannot insert configuration_key "TEXT_PREFIX" because it already exists
SKIPPED: Cannot insert configuration_key "MAX_META_TAG_DESCRIPTION_LENGTH" because it already exists
SKIPPED: Cannot insert configuration_key "MAX_META_TAG_DESCRIPTION_LENGTH" because it already exists
SKIPPED: Cannot insert configuration_key "MAX_META_TAG_DESCRIPTION_LENGTH" because it already exists

22 Jun 2006, 6:26 AM
#4
drbyte avatar

drbyte

Sensei

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

Post #4 by drbyte

Those are to be expected given partial updates already completed prior to the previously-failed statement that threw the error.

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

22 Jun 2006, 11:37 AM
#5
manujuggler avatar

manujuggler

New Zenner

Join Date:
Feb 2006
Location:
Switzerland
Posts:
15
Plugin Contributions:
0

Post #5 by manujuggler

Thanks also, I had the same problem as well (upgrading step by step from 1.2.7, this occured wun upgrading from 1.3.0.1 to 1.3.0.2)

Should we consider everything is okay even with this warnings ? Or did the rest of the upgrade stopped ?

22 Jun 2006, 1:52 PM
#6
drbyte avatar

drbyte

Sensei

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

Post #6 by drbyte

These "skipped" warnings can be safely ignored:

quentinjs:

SKIPPED: Cannot insert configuration_key "UPLOAD_PREFIX" because it already exists
SKIPPED: Cannot insert configuration_key "TEXT_PREFIX" because it already exists
SKIPPED: Cannot insert configuration_key "MAX_META_TAG_DESCRIPTION_LENGTH" because it already exists
SKIPPED: Cannot insert configuration_key "MAX_META_TAG_DESCRIPTION_LENGTH" because it already exists
SKIPPED: Cannot insert configuration_key "MAX_META_TAG_DESCRIPTION_LENGTH" because it already exists

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

22 Jun 2006, 3:23 PM
#7
portman avatar

portman

New Zenner

Join Date:
May 2006
Posts:
51
Plugin Contributions:
0

Post #7 by portman

I had an issue with my upgrade as well, telling that it skipped 9 updates in the database because ... already existed.

Now, I have two problems:

  1. In the Admin panel, there is a message at the top saying:
    "Your database appears to need patching to a higher level. See Tools->Server Information to review patch levels."
    And in the Server Info, it stills has it listed as 1.3.0.1.

  2. I can get into the Admin area, but when I try to go to the home page, I get the following error and won't display the page:
    "Parse error: parse error, unexpected $ in /home/public_html/includes/functions/html_output.php on line 145

I'm not sure what to do.

22 Jun 2006, 4:01 PM
#8
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Post #8 by ajeh

What version where you upgrading from?

If you check the /zc_install Upgrade Database ... does it indicate that something is still needing upgrading?

Did you load all of the new files to your site?

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

22 Jun 2006, 4:10 PM
#9
portman avatar

portman

New Zenner

Join Date:
May 2006
Posts:
51
Plugin Contributions:
0

Post #9 by portman

I tried to upgrade from 1.3.0.1.

Running the / zc_install Upgrade Database **does not **check the box for "Upgrade DB from 1.3.0.1 to 1.3.0.2"

and if I do check the "Upgrad DB from 1.3.0.1 to 1.3.0.2" I get the following displayed:

1062 Duplicate entry 'Administrator' for key 2
in:
[INSERT INTO zcart_query_builder ( query_category , query_name , query_description , query_string ) VALUES ('email,newsletters', 'Administrator', 'Just the email account of the current administrator', 'select \'ADMIN\' as customers_firstname, admin_name as customers_lastname, admin_email as customers_email_address from TABLE_ADMIN where admin_id = $SESSION:admin_id');]

Ignore my "parse error" - I did forget to upload the new html_output file.

So, the only problem I'm having is the database upgrade message.

22 Jun 2006, 4:16 PM
#10
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Post #10 by ajeh

Are you sure that all of your files on the site were all upgraded properly?

What do you have in:
/includes/version.php

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

22 Jun 2006, 4:49 PM
#11
drbyte avatar

drbyte

Sensei

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

Post #11 by drbyte

If you're getting a message saying that the "Administrator" entry is a duplicate, then you've either already done the 1.3.0.2 upgrade, or you followed one of my posts in another thread to add an option to email yourself when attempting to test the admin newsletter process.

In this case, edit the zc_install/msql_zencart_1301_to_1302.sql file and put a # at the beginning of the reported statement, making it look like this:```
#INSERT INTO zcart_query_builder ( query_category , query_name , query_description , query_string ) VALUES ('email,newsletters', 'Administrator', 'Just the email account of the current administrator', 'select 'ADMIN' as customers_firstname, admin_name as customers_lastname, admin_email as customers_email_address from TABLE_ADMIN where admin_id = $SESSION:admin_id');]


Then rerun the zc_install database-upgrade option.

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

22 Jun 2006, 4:56 PM
#12
portman avatar

portman

New Zenner

Join Date:
May 2006
Posts:
51
Plugin Contributions:
0

Post #12 by portman

DrByte -
Putting the # fixed the problem. Thanks!
I'm not sure what happened, but I haven't followed any posts for emailing the admin.

PortMan

22 Jun 2006, 5:33 PM
#13
portman avatar

portman

New Zenner

Join Date:
May 2006
Posts:
51
Plugin Contributions:
0

Post #13 by portman

I'm testing the upgrade. Now when I login, I get the following error:

Fatal error: Cannot redeclare class httpclient in /home/public_html/includes/classes/http_client.php on line 22

I did copy all the files in the patch set to the server and even recopied them.

22 Jun 2006, 6:15 PM
#14
drbyte avatar

drbyte

Sensei

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

Post #14 by drbyte

(it's usually better to start "new problem" posts as new topics)

  1. Open Admin->Tools->Developers Toolkit
  2. Do a search (using bottom input field, and choosing ALL files from the dropdown) for http_client
  3. What does it tell you?

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