Zen Cart Logo
If this is your first visit, check our documentation. To post, register or login.
Forums / General Questions / General Questions / Timeout when selecting Catagory

Timeout when selecting Catagory

Locked

Started by fantasygoat on 4 Aug 2006, 9:08 PM · Views: 2,124

Results 1 to 11 of 11
This thread is locked. New replies are disabled.
4 Aug 2006, 9:08 PM
#1
fantasygoat avatar

fantasygoat

New Zenner

Join Date:
Apr 2006
Posts:
10
Plugin Contributions:
0

Post #1 by fantasygoat

When I click on any of the catagory names, the browser just sits and churns away until it eventually times out, and the following appears in apache's error log:

[Fri Aug 4 17:01:48 2006] [notice] child pid 95411 exit signal Illegal instruction (4)

However, I can click on single items and view them fine.

I tried upgrading to the latest version, and also moving everything to another fresh server, same results.

Any ideas?

Edit: I upped the timeout in Apache so now I can get this error:

Fatal error: Maximum execution time of 30 seconds exceeded in /disk/popfuel.com/store/includes/modules/product_listing.php on line 100

5 Aug 2006, 12:08 AM
#2
theoracle avatar

theoracle

Suspended

Join Date:
Aug 2004
Posts:
3,180
Plugin Contributions:
1

Post #2 by theoracle

Sounds like a problem with this block - from the mentionned file above:

if ((($rows-$extra_row)/2) == floor(($rows-$extra_row)/2)) {
      $list_box_contents[$rows] = array('params' => 'class="productListing-even"');
    } else {
      $list_box_contents[$rows] = array('params' => 'class="productListing-odd"');
    }
5 Aug 2006, 12:18 AM
#3
drbyte avatar

drbyte

Sensei

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

Post #3 by drbyte

I doubt it has much to do with any of your files. Don't go adjusting code.

It's more likely a problem with your database.

  1. You said you upgraded. Please explain exactly what you did to upgrade.
  2. Did these problems exist before the upgrade?
  3. When did these problems start in relationship to other things happening to your site/server/etc?
  4. Does your admin area run smoothly? esp in the Admin->Catalog->Categories/Products pages ?

.
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 Aug 2006, 1:48 PM
#4
fantasygoat avatar

fantasygoat

New Zenner

Join Date:
Apr 2006
Posts:
10
Plugin Contributions:
0

Post #4 by fantasygoat

  1. To upgrade, I went from 1.3.0 to the current release by unzipping the full fileset into the directory and running the zc_install again, which upgraded the existing database.
  2. Yes, they existed before the upgrade. It's what prompted the upgrade.
  3. I had some test products in place for setup purposes, and I deleted them, and added new real products. It started after that.
  4. Admin->Catalog->Categories/Products page work fine.
7 Aug 2006, 7:35 PM
#5
drbyte avatar

drbyte

Sensei

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

Post #5 by drbyte

By the sound of how you did your upgrade, I would suggest the following:

  1. Upload a fresh copy of the newest Zen Cart files to your server ... in a new folder
  2. Run the install ... into a new database
  3. now you have a clean install with no customizations.
  4. Create the products again
  5. Test whether you encounter the same error.
  6. If the error/timeout doesn't occur, then begin re-applying your customizations to this fresh site.

To do an upgrade, one would normally need to merge customizations from current site with the new version files before uploading. Perhaps you missed something in this process, or perhaps you have consistent FTP timeouts which are corrupting critical files on your server.

.
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 Aug 2006, 12:56 PM
#6
fantasygoat avatar

fantasygoat

New Zenner

Join Date:
Apr 2006
Posts:
10
Plugin Contributions:
0

Post #6 by fantasygoat

  1. If the error/timeout doesn't occur, then begin re-applying your customizations to this fresh site.

The problem with that is that the customizations are extremely extensive - there are at least 7 different add-ons, plus about 20 hours of entering in different tax zones, setting up configs, as well as heavily modified CSS and templating that goes into the code itself. I've paid a web designer a great deal of money to do it.

Starting again from scratch isn't really an option.

It's obviously a database issue, so figuring out what data in the database is causing the issue would be a lot better than being forced to apply all those modifications to new code, which would cost me hundred of dollars in labour. I can do database stuff myself.

8 Aug 2006, 7:43 PM
#7
drbyte avatar

drbyte

Sensei

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

Post #7 by drbyte

Moving this post out of the Bug Reports section into General Questions.

.
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 Aug 2006, 7:58 PM
#8
drbyte avatar

drbyte

Sensei

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

Post #8 by drbyte

If you were to use steps 1-5, and in #4 import your current database, you could at least determine whether the problem has anything to do with code or whether maybe it's related to database-corruption.

You may have already tried running Repair Table and/or Optimize Table procedures on your current database ... but if not, give it a try after taking a backup.

.
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 Aug 2006, 2:52 PM
#9
fantasygoat avatar

fantasygoat

New Zenner

Join Date:
Apr 2006
Posts:
10
Plugin Contributions:
0

Post #9 by fantasygoat

I did 1-5 and the problem does indeed go away. However, the modifications to the site are extensive and would take many man hours to replicate - also, if this problem occured when I had a few thousand products, I don't think I'd be so keen to just start from scratch and enter them all in again, so I was hoping for some way to maybe check the database for what's supposed to be there.

11 Aug 2006, 9:56 AM
#10
drbyte avatar

drbyte

Sensei

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

Post #10 by drbyte

You said the problem went away.
If you imported your own database so that all your products are present, and the problem still doesn't appear ... then either:

  • your main database itself has need for some repair or optimization at the database-engine-level

or

  • your customization code has busted something somewhere

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

11 Aug 2006, 2:27 PM
#11
fantasygoat avatar

fantasygoat

New Zenner

Join Date:
Apr 2006
Posts:
10
Plugin Contributions:
0

Post #11 by fantasygoat

No, the problem went away when I reinstalled a fresh copy on another server and manually entered in a couple of products.

If I apply my existing database to the fresh copy, it stops working.

I ran myisamchk on the table and it had no effect. Dumping, dropping, recreating and reimporting the data has no effect either.