Zen Cart Logo
Forums / General Questions / Database table crash + send newsletters problem

Database table crash + send newsletters problem

Views: 1,083

Results 1 to 5 of 5
5 Apr 2011, 8:58 PM
#1
delia avatar

delia

Totally Zenned

Join Date:
May 2006
Location:
Gardiner, Maine
Posts:
2,383
Plugin Contributions:
7

Database table crash + send newsletters problem

Last night a desperate customer contacted me about a cart that was down. It was showing an error message about the whosonline table crashing so I did a table repair. This morning I cleaned up the old hack php files in the images directory (about 4 of them) and upgraded the cart from 1.3.8. (The patch had been applied to the cart by hand and there was no htaccess file in the images directory.)

I've checked admin files to make sure there's nothing loose in there that shouldn't be. This customer was also having trouble yesterday sending newsletters. When I tested sending the one to admin the result showed the checkmark and then a bunch of goobletygook. Looking at the source, the page crashed at that point. I checked but there is no error log so no php crash. He says that's always been the case (!)

See the result here:

So has anyone seen this happen before?

The full-time Zen Cart Guru. WizTech4ZC.com
New template for 2.0 viewable here: 2.0 Demo

5 Apr 2011, 10:11 PM
#2
drbyte avatar

drbyte

Sensei

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

Re: Database table crash + send newsletters problem

That junk you're seeing is a binary representation of the contents of the subsequent checkmark icons which should appear for each recipient being sent to. And that junk only shows when there's a problem with gzip compression on the site. Go to Admin->Configuration->GZip Compression, and turn it off.

.
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 Apr 2011, 10:20 PM
#3
delia avatar

delia

Totally Zenned

Join Date:
May 2006
Location:
Gardiner, Maine
Posts:
2,383
Plugin Contributions:
7

Re: Database table crash + send newsletters problem

Perfect - that worked!

Any explanation for the table crashing? Never seen that before.

The full-time Zen Cart Guru. WizTech4ZC.com
New template for 2.0 viewable here: 2.0 Demo

7 Apr 2011, 5:25 AM
#4
drbyte avatar

drbyte

Sensei

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

Re: Database table crash + send newsletters problem

Tables may "crash" if the server encounters some sort of hiccup while a record is being added/edited/deleted in the table.
High traffic tables that get a lot of use, such as whos-online, are more prone to that than others such as the "products" table which is generally read-only unless the administrator is updating a record on occasion.

.
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 Apr 2011, 11:43 AM
#5
delia avatar

delia

Totally Zenned

Join Date:
May 2006
Location:
Gardiner, Maine
Posts:
2,383
Plugin Contributions:
7

Re: Database table crash + send newsletters problem

Yeah, we had a second crash on that dedicated server in another cart so it's obviously related to something that happened specifically. He's in the process of moving the sites to another server. Thanks for the explanation; that's good to know.

The full-time Zen Cart Guru. WizTech4ZC.com
New template for 2.0 viewable here: 2.0 Demo