If this is your first visit, check our documentation. To post, register or login.
Forums / Upgrading from 1.2 to 1.3.x / Large Order - Fatal Error

Large Order - Fatal Error

Locked

Started by ksoup on 9 Jan 2007, 3:29 AM · Views: 5,385

Results 1 to 13 of 13
This thread is locked. New replies are disabled.
9 Jan 2007, 3:29 AM
#1
ksoup avatar

ksoup

Zen Follower

Join Date:
Jan 2004
Posts:
413
Plugin Contributions:
1

Large Order - Fatal Error

We have one order that refuses to go through (that we know of) over 40 items

When going to check out... consistantly the following error.

Fatal error: Maximum execution time of 30 seconds exceeded in /home2/store/public_html/includes/classes/db/mysql/query_factory.php on line 176

We logged in to try to force it... got the error above a few times
Hit the back button and check out again and get the following error.

Fatal error: Maximum execution time of 30 seconds exceeded in /home2/store/public_html/includes/functions/functions_prices.php on line 124

Does 1.3.6 require more resources or something? We were on 1.2.7d until the 6th with no problems (multiple items on large orders - no problems).

Which leads me to... we have the following setting:

// ie: /path/to/your/webspace/public_html/zen/cache -- leave no trailing slash
define('SQL_CACHE_METHOD', 'none');
define('DIR_FS_SQL_CACHE', '/enter/your/path/to/public_html_or_htdocs/and/zencart/here/zen/cache');

should this be different?

9 Jan 2007, 4:09 AM
#2
drbyte avatar

drbyte

Sensei

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

Re: Large Order - Fatal Error

What is the URL to the site?
Are these 40 products very attribute-intensive?
Is there any set list of steps to follow to reproduce the problem easily?
Who is your hosting company? What sort of server/plan are you on?

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

9 Jan 2007, 4:10 AM
#3
ksoup avatar

ksoup

Zen Follower

Join Date:
Jan 2004
Posts:
413
Plugin Contributions:
1

Re: Large Order - Fatal Error

The order had 43 items with one attribute.

I took out 5 items (38 total - and it went through). Does this help?

9 Jan 2007, 4:12 AM
#4
drbyte avatar

drbyte

Sensei

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

Re: Large Order - Fatal Error

ksoup:

Does 1.3.6 require more resources or something? We were on 1.2.7d until the 6th with no problems (multiple items on large orders - no problems).There were changes, but mostly to speed things up, not slow it down.

Which leads me to... we have the following setting:

// ie: /path/to/your/webspace/public_html/zen/cache -- leave no trailing slash
define('SQL_CACHE_METHOD', 'none');
define('DIR_FS_SQL_CACHE', '/enter/your/path/to/public_html_or_htdocs/and/zencart/here/zen/cache');

should this be different?

That's fine. Changing it will make a difference, but that difference is little in the 1.3 series.
You could "try" changing it to "database" or to "file". If you choose "file" be sure to set the path correctly first. Don't make these changes during a busy time.

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

9 Jan 2007, 4:19 AM
#5
ksoup avatar

ksoup

Zen Follower

Join Date:
Jan 2004
Posts:
413
Plugin Contributions:
1

Re: Large Order - Fatal Error

When I was in her order and looked at the bottom...I saw number of queries 20893 and response time of 27.something seconds.

We are on a dedicated server
The only thing I could figure out was ... it was the amount of items in the cart.

During busy times... we have many orders of more than 40 items.

I did set it to database on both configs. :)

https://www.digitalscrapbookplace.com

9 Jan 2007, 4:33 AM
#6
Kim avatar

Kim

Obaa-san

Join Date:
Jun 2003
Location:
West Coast, North America
Posts:
26,748
Plugin Contributions:
0

Re: Large Order - Fatal Error

Did you update your templates when you updated the Database? The parse times and queries should not be showing unless you expressly turned them on for debugging.

Please do not PM for support issues: a private solution doesn't benefit the community.

Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

9 Jan 2007, 9:28 PM
#7
ksoup avatar

ksoup

Zen Follower

Join Date:
Jan 2004
Posts:
413
Plugin Contributions:
1

Re: Large Order - Fatal Error

We do have it on to see what the response time is :)

We upped the timeout to 90 seconds...

I have just tried a 75 piece order...each item had one attrib.
Fatal error: Maximum execution time of 90 seconds exceeded in /home2/store/public_html/includes/classes/db/mysql/query_factory.php on line 176

We put through several other orders of 61 items/ 51 items/

We are still testing....
Our store is huge... at what point will this become a real hassle?

9 Jan 2007, 10:28 PM
#8
drbyte avatar

drbyte

Sensei

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

Re: Large Order - Fatal Error

You are most likely running into bottleneck problems with the database. The checkout confirmation/completion process is the most intense hit on the database.

However, I've seen stores do what you're talking about with great ease on a host that's got a very well-tuned MySQL engine.

You'll need to increase that timeout a few times to find out what the threshold is for your server. Granted, after 30 seconds the customer is likely to throw up their hands. So the real issue is how to get your database tuned up a bit.

Zen Cart v1.4 (currently under development) has hugely reduced the number of queries required to do all of its functions. v1.3.x has some big improvements over v1.2.x. In the meantime, get your host to allocate more RAM to database processing or increase the PHP timeout.

.
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 Jan 2007, 6:38 PM
#9
ajeh avatar

ajeh

Oba-san

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

Re: Large Order - Fatal Error

I tried 49 products where there was a mix of Products, Virtual Products, Products with Attributes etc.

No page took longer than 4-5 seconds in the checkout ... The slowest page was the shopping cart itself ... went from 0.4 seconds to 4 - 8 seconds with everything loaded into it and all sideboxes on etc.

I would check to see what your server speeds are like just in navigating around to ensure that your php and MySQL settings are optimized well by your hosting company ...

I would also look at the indexes on your database to ensure that they are all optimized for 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!

2 Feb 2007, 5:09 PM
#10
yaby avatar

yaby

New Zenner

Join Date:
Nov 2005
Posts:
60
Plugin Contributions:
0

Re: Large Order - Fatal Error

is there a way around this? i'm on 1.3.6 https://www.yabycosmetics.com and one customer keeps getting this error when accessing the shopping cart or checkout. is there a way to remove or view the list of the items from admin so i can edit the items?

5 Feb 2008, 8:11 AM
#11
ckalech avatar

ckalech

New Zenner

Join Date:
Jun 2005
Posts:
11
Plugin Contributions:
0

Re: Large Order - Fatal Error

I am experiencing this too.

I have a client who ordered 113 items and can not get through the checkout process

Where do I increase the timeout settings?!

I am using
Zen Cart 1.3.7.1

Database Patch Level: 1.3.7.1

v1.3.7.1 [2007-11-25 10:37:59] (Fresh Installation)

PHP Version 4.3.10-22

6 Feb 2008, 8:33 AM
#12
ajeh avatar

ajeh

Oba-san

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

Re: Large Order - Fatal Error

yaby:

is there a way around this? i'm on 1.3.6 https://www.yabycosmetics.com and one customer keeps getting this error when accessing the shopping cart or checkout. is there a way to remove or view the list of the items from admin so i can edit the items?

You can empty or clear their cart and then let them start over and make a smaller order by removing all references to their customers_id that are in the customers_basket and customers_basket_attributes ...

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 Feb 2008, 8:35 AM
#13
ajeh avatar

ajeh

Oba-san

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

Re: Large Order - Fatal Error

ckalech:

I am experiencing this too.

I have a client who ordered 113 items and can not get through the checkout process

Where do I increase the timeout settings?!

I am using
Zen Cart 1.3.7.1

Database Patch Level: 1.3.7.1

v1.3.7.1 [2007-11-25 10:37:59] (Fresh Installation)

PHP Version 4.3.10-22

Speak to your hosting site about increasing timeouts or moving to a faster server with less load ...

Without seeing your site it is hard to say what is affecting you most ...

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!