Forums / General Questions / MySQL error when updating order status

MySQL error when updating order status

Locked

Started by spretswell on 8 Sep 2006, 12:34 PM · Views: 3,172

Results 1 to 8 of 8
This thread is locked. New replies are disabled.
8 Sep 2006, 12:34 PM
#1
spretswell avatar

spretswell

New Zenner

Join Date:
Feb 2006
Posts:
37
Plugin Contributions:
0

MySQL error when updating order status

Hi,

I keep getting this error message when updating the order status. Interestingly, when I choose not to notify the customer, it goes through almost immediately.

2013 Lost connection to MySQL server during query
in:
[insert into email_archive (email_to_name, email_to_address, email_from_name, email_from_address, email_subject, email_html, email_text, date_sent, module) values ('Joanne beasley', '[email protected]', 'UKSoccershop.com', '[email protected]', 'Order Update #26921', '

Dear Joanne beasley,
UKSoccershop.com
Order Number: 26921
Detailed Invoice
Date Ordered: Saturday 12 August, 2006
The comments for your order are: Just a quick update, we have just printed your shirt and will dispatch it in the morning. Regards, Simon
Your order has been updated to the following status:
New status: Received stock Received stock
Please reply to this email if you have any questions.
Copyright © 2004 Zen Cart. Powered by Zen Cart
This email address was given to us by you or by one of our customers. If you feel that you have received this email in error, please send an email to [email protected]
This e-mail is sent in accordance with the US CAN-SPAM Law in effect 01/01/2004. Removal requests can be sent to this address and will be honored and respected.
', 'UKSoccershop.com ------------------------------------------------------ Order Number: 26921 Detailed Invoice: http://www.uksoccershop.com/index.php?main_page=account_history_info&order_id=26921 Date Ordered: Saturday 12 August, 2006 The comments for your order are: Just a quick update, we have just printed your shirt and will dispatch it in the morning. Regards, Simon Your order has been updated to the following status: New status: Received stock Please reply to this email if you have any questions.', now() , 'order_status')]
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

8 Sep 2006, 1:01 PM
#2
drbyte avatar

drbyte

Sensei

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

Re: MySQL error when updating order status

spretswell:

2013 Lost connection to MySQL server during query
You should talk to your host about why connection is being lost mid-transaction.

In the meantime, since it appears to be happening during the archiving of email records, you could turn off email history archiving in Admin->Configuration->Email Options

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

8 Sep 2006, 1:03 PM
#3
spretswell avatar

spretswell

New Zenner

Join Date:
Feb 2006
Posts:
37
Plugin Contributions:
0

Re: MySQL error when updating order status

Thanks, if I do that, what will happen to the email history archive?

8 Sep 2006, 1:08 PM
#4
drbyte avatar

drbyte

Sensei

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

Re: MySQL error when updating order status

spretswell:

Thanks, if I do that, what will happen to the email history archive?
It just won't log a copy of all emails sent anymore...

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

8 Sep 2006, 1:13 PM
#5
spretswell avatar

spretswell

New Zenner

Join Date:
Feb 2006
Posts:
37
Plugin Contributions:
0

Re: MySQL error when updating order status

DrByte:

It just won't log a copy of all emails sent anymore...

But will it still be viewable from the admin?

Should I clear the archive and if so, how would I do that?

8 Sep 2006, 2:56 PM
#6
spretswell avatar

spretswell

New Zenner

Join Date:
Feb 2006
Posts:
37
Plugin Contributions:
0

Re: MySQL error when updating order status

I turned it off and it's still not working, any futher ideas?

8 Sep 2006, 3:36 PM
#7
drbyte avatar

drbyte

Sensei

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

Re: MySQL error when updating order status

spretswell:

I turned it off and it's still not working, any futher ideas?
what's the new error message?

More importantly, what is your web HOST saying about this?

If the database is disconnecting, you have a hosting problem, not a Zen Cart problem.

.
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 Sep 2006, 9:59 AM
#8
spretswell avatar

spretswell

New Zenner

Join Date:
Feb 2006
Posts:
37
Plugin Contributions:
0

Re: MySQL error when updating order status

It seems to be working now, not sure how it got fixed but thanks for your help!