Page 1 of 2 12 LastLast
Results 1 to 10 of 13
  1. #1
    Join Date
    Dec 2004
    Posts
    1,031
    Plugin Contributions
    0

    Default timeout problem with lots of products and a coupon during checkout

    A customer experiences the following error at step 2 of 3 at check out. He put a lot of items in the cart and wants to redeem a coupon as well.

    Fatal error: Maximum execution time of 30 seconds exceeded in /home/xxxxx/public_html/xxxxx/xxxxxx/includes/classes/db/mysql/query_factory.php on line 192

    He gave me his pwd and I tried it myself. Same thing. I got once to step 3 but then when I scroll down the page no confirm order button is to be found.

    Now I tried it again without the discount coupon. Now it worked. Why?
    Live and learn... the Zen way.

  2. #2
    Join Date
    Nov 2006
    Posts
    61
    Plugin Contributions
    0

    Idea or Suggestion Re: timeout problem with lots of products and a coupon during checkout

    Hi - same thing: works fine without entering ANY coupon (I've tried with variation of coupons), but it was stalling with coupon.

    I have asked the Host Provider to increase the timeout in php.ini from 30 sec to 60 or 90 - and it seemed to help.

    Can someone explain why this is actually happen? Is there some bug in coupons that could be fixed?

    Thanks,
    Best,

    0100000101011010

    ---------------------------------
    It's not magic, it's just math!

  3. #3
    Join Date
    Dec 2004
    Posts
    1,031
    Plugin Contributions
    0

    Default Re: timeout problem with lots of products and a coupon during checkout

    Thank you for sharing your problem. I guess the time out is the problem. Maybe the code is complex for calculating the whole discount coupon thing? Time consuming? OR there is actually a bug that makes the system hang for too long...and we just notice it with lots of products in the cart.

    Just guess work on my side....would like to have somebody more knowledgeable give some hints on what it is and could be done.
    Live and learn... the Zen way.

  4. #4
    Join Date
    Jan 2004
    Posts
    66,450
    Plugin Contributions
    81

    Default Re: timeout problem with lots of products and a coupon during checkout

    What version of Zen Cart?
    Has this been upgraded from prior versions? which versions?
    What addons/contributions are installed?
    What version of PHP?
    What version of MySQL?
    When you say "lots of products in the cart", how many do you mean?
    How many products does it take to trigger this problem for you?
    Do these products have attributes tied to them? How many with attributes? How many attributes per product?
    Are there any sales/specials active on these products?
    Are there any quantity discounts on these products?
    What kind of coupon are you using? ie: discounted percentage? discounted amount? free shipping? etc?
    Is there a currency exchange happening - ie: shopping in other than default currency?
    Does it make any difference which shipping module is selected?
    .
    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.

  5. #5
    Join Date
    Dec 2004
    Posts
    1,031
    Plugin Contributions
    0

    Default Re: timeout problem with lots of products and a coupon during checkout

    To your questions:


    What version of Zen Cart? -- 1.3.7
    Has this been upgraded from prior versions? which versions? -- 1.3.6
    What addons/contributions are installed?

    column layout grid
    cross sell/upsell
    EP
    Fckeditor
    IH2
    godaddy sidebox

    What version of PHP? -- PHP Version: 4.4.7 (Zend: 1.3.0)
    What version of MySQL? -- Database: MySQL 4.1.22-standard
    When you say "lots of products in the cart", how many do you mean? --40 prod
    How many products does it take to trigger this problem for you? --about 40, need to test more if more accurate is needed.
    Do these products have attributes tied to them? How many with attributes? How many attributes per product? -- No attributes
    Are there any sales/specials active on these products? about 5 had sales promo
    Are there any quantity discounts on these products? NO
    What kind of coupon are you using? ie: discounted percentage? discounted amount? free shipping? etc? -- Discount 10% one time use per customer
    Is there a currency exchange happening - ie: shopping in other than default currency? -- NO, USD only
    Does it make any difference which shipping module is selected? --don't know...I use UPS only.

    I hope this gets us a bit closer. Let me know if you need to know more. Thanks for the help.
    Live and learn... the Zen way.

  6. #6
    Join Date
    Jan 2004
    Posts
    66,450
    Plugin Contributions
    81

    Default Re: timeout problem with lots of products and a coupon during checkout

    Do your coupons have any restrictions connected to them?
    How many products in your store?
    How many categories+subcategories?
    .
    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.

  7. #7
    Join Date
    Dec 2004
    Posts
    1,031
    Plugin Contributions
    0

    Default Re: timeout problem with lots of products and a coupon during checkout

    No restrictions, but use per customer 1.

    90 products, 4 top categories, 20 categories all together top and sub.
    Live and learn... the Zen way.

  8. #8
    Join Date
    Dec 2004
    Posts
    1,031
    Plugin Contributions
    0

    Default Re: timeout problem with lots of products and a coupon during checkout

    BTW, I just tried a large order with the same coupon again this morning. Worked with some delay at step 3. Page loads partially, you see the products listed and it seems to wait for the calculated bottom, sub total, shipping, discount etc. BUT it loaded and worked. No error today. My guess is, that this is a time out problem.

    When the server load is a bit higher around noon, I will try again.

    Does the coupon calculation put such a strain on the servers?
    Live and learn... the Zen way.

  9. #9
    Join Date
    Jan 2004
    Posts
    66,450
    Plugin Contributions
    81

    Default Re: timeout problem with lots of products and a coupon during checkout

    Quote Originally Posted by mydanilo View Post
    Does the coupon calculation put such a strain on the servers?
    If there were restrictions on the coupon, I would expect a bit more processing effort to calculate eligibility.

    Puzzling ... I can't reproduce the problem. Hmmm
    .
    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.

  10. #10
    Join Date
    Dec 2004
    Posts
    1,031
    Plugin Contributions
    0

    Default Re: timeout problem with lots of products and a coupon during checkout

    Must say, it worked both times today. I notice a delay for step 3 loading, probably the calculation of the coupon. It did time out several times for my customer about 1 week ago and I saw it too when I tried it.

    I will try and do it one more time about 11am when the spiders hit my site...
    Live and learn... the Zen way.

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. Replies: 19
    Last Post: 26 Jan 2015, 07:42 PM
  2. Session TimeOut during checkout
    By slikie in forum Bug Reports
    Replies: 48
    Last Post: 3 Jul 2008, 01:14 PM
  3. Timeout during checkout with protx?
    By helenthemum in forum Addon Payment Modules
    Replies: 0
    Last Post: 16 Mar 2008, 02:02 PM
  4. currency problem with GV during checkout
    By s_mack in forum Bug Reports
    Replies: 5
    Last Post: 20 Nov 2006, 11:50 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