Page 1 of 2 12 LastLast
Results 1 to 10 of 13
  1. #1
    Join Date
    Mar 2006
    Posts
    477
    Plugin Contributions
    0

    Default 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
    We sell ATV, Dirtbike, Streetbike, Snowmobile, Watercraft & Custom stickers & Banners. Check us out www.AD-DiscountPerformance.com

  2. #2
    Join Date
    Mar 2006
    Posts
    477
    Plugin Contributions
    0

    Default Re: problem with gift certificate

    Still have this same issue can can't seem to figure out why.
    We sell ATV, Dirtbike, Streetbike, Snowmobile, Watercraft & Custom stickers & Banners. Check us out www.AD-DiscountPerformance.com

  3. #3
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: problem with gift certificate

    If you go to phpMyAdmin and run this SQL query on your database:
    Code:
    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?
    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!

  4. #4
    Join Date
    Mar 2006
    Posts
    477
    Plugin Contributions
    0

    Default Re: problem with gift certificate

    when i put that in it just takes forever and then goes to this screen back to the begining..
    We sell ATV, Dirtbike, Streetbike, Snowmobile, Watercraft & Custom stickers & Banners. Check us out www.AD-DiscountPerformance.com

  5. #5
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default 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 ...
    Last edited by Ajeh; 27 Jul 2010 at 05:31 AM. Reason: fixed time on first hit
    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!

  6. #6
    Join Date
    Mar 2006
    Posts
    477
    Plugin Contributions
    0

    Default Re: problem with gift certificate

    So then this is an issue with my hosting company? not Zen?
    We sell ATV, Dirtbike, Streetbike, Snowmobile, Watercraft & Custom stickers & Banners. Check us out www.AD-DiscountPerformance.com

  7. #7
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: problem with gift certificate

    I would think so ...

    How many customers and how many orders do you have?
    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!

  8. #8
    Join Date
    Nov 2006
    Posts
    296
    Plugin Contributions
    2

    Default Re: problem with gift certificate

    Quote Originally Posted by Ajeh View Post
    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?

  9. #9
    Join Date
    Nov 2006
    Posts
    296
    Plugin Contributions
    2

    Default Re: problem with gift certificate

    Quote Originally Posted by nagelkruid View Post
    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

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

  10. #10
    Join Date
    Aug 2005
    Location
    Vic, Oz
    Posts
    1,905
    Plugin Contributions
    5

    Default Re: problem with gift certificate

    Quote Originally Posted by nagelkruid View Post
    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

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. v139g Gift Certificate / Coupons - problem with %
    By Nailen in forum General Questions
    Replies: 2
    Last Post: 10 Jan 2014, 07:02 PM
  2. Small problem with mailing a gift certificate
    By Scott_C in forum Discounts/Coupons, Gift Certificates, Newsletters, Ads
    Replies: 6
    Last Post: 30 Oct 2010, 08:46 AM
  3. Performance Problem with Gift Certificate Panel
    By pinkchalkstudio in forum Discounts/Coupons, Gift Certificates, Newsletters, Ads
    Replies: 5
    Last Post: 16 Aug 2009, 07:13 PM
  4. problem with send gift certificate.
    By billt in forum Discounts/Coupons, Gift Certificates, Newsletters, Ads
    Replies: 1
    Last Post: 26 Nov 2008, 09:51 AM
  5. Want to use a printed gift certificate (with code) in the gift certificate process?
    By HelenSama in forum Discounts/Coupons, Gift Certificates, Newsletters, Ads
    Replies: 9
    Last Post: 15 Apr 2008, 02:04 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg