If this is your first visit, check our documentation. To post, register or login.
Forums / Upgrading from 1.2 to 1.3.x / in: [select admin_id, admin_name, admin_pass from admin where admin_name = 'myname']

in: [select admin_id, admin_name, admin_pass from admin where admin_name = 'myname']

Locked

Started by fluffysam on 4 Jun 2008, 6:06 PM · Views: 4,758

Results 1 to 2 of 2
This thread is locked. New replies are disabled.
4 Jun 2008, 6:06 PM
#1
fluffysam avatar

fluffysam

New Zenner

Join Date:
Sep 2006
Posts:
7
Plugin Contributions:
0

in: [select admin_id, admin_name, admin_pass from admin where admin_name = 'myname']

I'm updating from 1.2.5 to 1.3.8 because my server updated their version of PHP, so I am unable to log in to the admin panel, plus customers cannot add products to their shopping carts. Not that that's a problem or anything.

I finally seem to have everything working, except in my admin panel it tells me: Your database appears to need patching to a higher level. See Tools->Server Information to review patch levels.

I went to that page, and it says:
Zen Cart 1.3.8
Database Patch Level: 1.3.7
plus a bunch of other stuff, but I'm assuming that's where the inconsistency lies.

What can I do to fix this? Zc_install won't let me upgrade any further.. it doesn't auto-select any checkmarks anymore, so it's assuming that it's done. On the last checkbox, though, I got this error:

1062 Duplicate entry 'Customers who have never completed a purchase' for key 2
in:
[INSERT INTO query_builder (query_category, query_name, query_description , query_string) VALUES ('email,newsletters', 'Customers who have never completed a purchase', 'For sending newsletter to all customers who registered but have never completed a purchase', 'SELECT DISTINCT c.customers_email_address as customers_email_address, c.customers_lastname as customers_lastname, c.customers_firstname as customers_firstname FROM TABLE_CUSTOMERS c LEFT JOIN TABLE_ORDERS o ON c.customers_id=o.customers_id WHERE o.date_purchased IS NULL');]

Would that have anything to do with it?

Thank you so much!

10 Jun 2008, 6:30 AM
#2
drbyte avatar

drbyte

Sensei

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

Re: in: [select admin_id, admin_name, admin_pass from admin where admin_name = 'myname']

fluffysam:

INSERT INTO query_builder (query_category, query_name, query_description , query_string) VALUES ('email,newsletters', 'Customers who have never completed a purchase', 'For sending newsletter to all customers who registered but have never completed a purchase', 'SELECT DISTINCT c.customers_email_address as customers_email_address, c.customers_lastname as customers_lastname, c.customers_firstname as customers_firstname FROM TABLE_CUSTOMERS c LEFT JOIN TABLE_ORDERS o ON c.customers_id=o.customers_id WHERE o.date_purchased IS NULL');

Find that line in your /zc_install/sql/mysql_zencart.sql file, and put a # at the beginning of the line.
Then rerun the upgrade step for 137-138.

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