Zen Cart Logo
Forums / General Questions / problem with gift certificate

problem with gift certificate

Views: 1,982

Results 1 to 13 of 13
19 Jul 2010, 9:36 PM
#1
dashizna avatar

dashizna

Zen Follower

Join Date:
Mar 2006
Posts:
424
Plugin Contributions:
0

problem with gift certificate

1317 Query execution was interrupted
in:
[SELECT DISTINCT c.customers_email_address as customers_email_address, c.customers_lastname as customers_lastname, c.customers_firstname as customers_firstname FROM zen_customers c LEFT JOIN zen_orders o ON c.customers_id=o.customers_id WHERE o.date_purchased IS NULL ]
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.

That is what i get when i click on mail gift certificate

26 Jul 2010, 4:32 PM
#2
dashizna avatar

dashizna

Zen Follower

Join Date:
Mar 2006
Posts:
424
Plugin Contributions:
0

Re: problem with gift certificate

Still have this same issue can can't seem to figure out why.

26 Jul 2010, 8:19 PM
#3
ajeh avatar

ajeh

Oba-san

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

Re: problem with gift certificate

If you go to phpMyAdmin and run this SQL query on your database:

SELECT DISTINCT c.customers_email_address as customers_email_address, c.customers_lastname as customers_lastname, c.customers_firstname as customers_firstname FROM zen_customers c LEFT JOIN zen_orders o ON c.customers_id=o.customers_id WHERE o.date_purchased IS NULL

how many records come up?

26 Jul 2010, 9:44 PM
#4
dashizna avatar

dashizna

Zen Follower

Join Date:
Mar 2006
Posts:
424
Plugin Contributions:
0

Re: problem with gift certificate

when i put that in it just takes forever and then goes to this screen back to the begining..

27 Jul 2010, 1:17 AM
#5
ajeh avatar

ajeh

Oba-san

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

Re: problem with gift certificate

Sounds like you have a large number of customers and/or orders where your php is timing out based on the size of the SELECT statement ...

NOTE: this could be your server as I have 68,000 customers with 52,000 orders that takes 0.002 seconds ... the first time took 0.416 seconds ...

27 Jul 2010, 4:29 AM
#6
dashizna avatar

dashizna

Zen Follower

Join Date:
Mar 2006
Posts:
424
Plugin Contributions:
0

Re: problem with gift certificate

So then this is an issue with my hosting company? not Zen?

27 Jul 2010, 4:31 AM
#7
ajeh avatar

ajeh

Oba-san

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

Re: problem with gift certificate

I would think so ...

How many customers and how many orders do you have?

10 Jan 2011, 8:29 AM
#8
nagelkruid avatar

nagelkruid

Zen Follower

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

Re: problem with gift certificate

Ajeh:

I would think so ...

How many customers and how many orders do you have?
Hello,

I know this threat is a bit old, but at the moment i have the exact same error message in zen and the same behaviour in php admin when i run the query from there.

I have approx 12.000 customers and a little less orders in my shop.

Do you please have a suggestion to make this query less intense on the MySQl?

10 Jan 2011, 9:47 AM
#9
nagelkruid avatar

nagelkruid

Zen Follower

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

Re: problem with gift certificate

nagelkruid:

Hello,

I know this threat is a bit old, but at the moment i have the exact same error message in zen and the same behaviour in php admin when i run the query from there.

I have approx 12.000 customers and a little less orders in my shop.

Do you please have a suggestion to make this query less intense on the MySQl?

ps. on a similar server with same database it does run:
Toon Records 0 - 29 (1.794 totaal, Query duurde 2.7893 sec)
SQL-query:SELECT DISTINCT c.customers_email_address AS customers_email_address, c.customers_lastname AS customers_lastname, c.customers_firstname AS customers_firstname
FROM engendcustomers c
LEFT JOIN engendorders o ON c.customers_id = o.customers_id
WHERE o.date_purchased IS NULL
LIMIT 0 , 30
it says the query took 2.7893 sec but i have waited at least 2 minutes to view the output :cool:

are there perhaps indexes or views that i can use to speed this up?

10 Jan 2011, 12:51 PM
#10
gilby avatar

gilby

Totally Zenned

Join Date:
Aug 2005
Location:
Vic, Oz
Posts:
1,816
Plugin Contributions:
0

Re: problem with gift certificate

nagelkruid:

Hello,

I know this threat is a bit old, but at the moment i have the exact same error message in zen and the same behaviour in php admin when i run the query from there.

I have approx 12.000 customers and a little less orders in my shop.

Do you please have a suggestion to make this query less intense on the MySQl?

I assume you are NOT using zen139 ?

Consult this thread for a possible solution

http://www.zen-cart.com/forum/showthread.php?t=101799

11 Jan 2011, 12:09 AM
#11
danielle avatar

danielle

Totally Zenned

Join Date:
Oct 2004
Posts:
973
Plugin Contributions:
0

Re: problem with gift certificate

I'm seeing this error on a 1.3.9h store with about 8200 customers and 6800 orders. Would this be a hosting issue?

11 Jan 2011, 1:50 AM
#12
gilby avatar

gilby

Totally Zenned

Join Date:
Aug 2005
Location:
Vic, Oz
Posts:
1,816
Plugin Contributions:
0

Re: problem with gift certificate

Danielle:

I'm seeing this error on a 1.3.9h store with about 8200 customers and 6800 orders. Would this be a hosting issue?

139h has the updated index.
So... my guess is that its hosting issue
btw which host?

11 Jan 2011, 1:55 AM
#13
ajeh avatar

ajeh

Oba-san

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

Re: problem with gift certificate

On the Mail a Gift Certificate, there is a dropdown for groups of Customers as well as each individual Customer email address ...

The problem is, with 8200 customers, you are trying to draw a dropdown of 8200 lines ... these 8200 lines must first draw and be downloaded to your computer through the browser ...

This can stall on a lot of servers/browsers ...

You may need to comment out the dropdown so as not to try to draw that monsterous dropdown ...

The select is not always the problem but rendering the dropdown can be ...