Zen Cart Logo
Forums / General Questions / Premature end of script headers: store_manager.php

Premature end of script headers: store_manager.php

Locked

Views: 2,262

Results 1 to 11 of 11
This thread is locked. New replies are disabled.
14 Mar 2007, 6:42 PM
#1
manada avatar

manada

New Zenner

Join Date:
Dec 2005
Posts:
35
Plugin Contributions:
0

Premature end of script headers: store_manager.php

Not sure if its a bug

Rigt after i updated to 1.3.6 I got this:

The server encountered an internal error and was unable to complete your request.

Error message:
Premature end of script headers: store_manager.php

If you think this is a server error, please contact the webmaster.

Error 500

It hapenes only when i want to update attribute values in Store Manager. Other "resets" work fine.

Any Ideas??

Adam

16 Mar 2007, 8:25 PM
#2
tj1 avatar

tj1

Totally Zenned

Join Date:
Mar 2005
Location:
California
Posts:
628
Plugin Contributions:
0

Re: Premature end of script headers: store_manager.php

I'm not sure, but I don't think this is an bug. I think this has to do more with your host killing processes too early, especially if takes a while

I used to have a similar issue when my host implemented some automatic resource management program, it just killed all scripts after they ran for about 30 seconds regardless of whether they consumed too much resources of almost nothing.

16 Mar 2007, 8:31 PM
#3
drbyte avatar

drbyte

Sensei

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

Re: Premature end of script headers: store_manager.php

tj1 is right - this is likely a problem with your webhost limiting processes to 30 seconds, but the task you're attempting to do is taking longer than just 30 seconds to process.

You could try this workaround, which will hopefully allow it 5 minutes to process instead.
edit /admin/store_manager.php
around line 25 you'll see this:switch($action) {add this above it:zen_set_time_limit(600);.... which makes it look like this:```
zen_set_time_limit(600);
switch($action) {


NOTE: Some hosts don't allow the overriding of their 30-second-max, in which case the above change will have no effect, good or bad.
19 Mar 2007, 6:11 PM
#4
manada avatar

manada

New Zenner

Join Date:
Dec 2005
Posts:
35
Plugin Contributions:
0

Re: Premature end of script headers: store_manager.php

Hmm, it didn't work out. Had to send a ticket to my host provider. Will post here the their support answer. Anyway thank you guys for a tip.

Btw. Maybe there is a mysql command i can use in phpmyadmin to sort out those attribute values?

Adam

19 Mar 2007, 6:39 PM
#5
manada avatar

manada

New Zenner

Join Date:
Dec 2005
Posts:
35
Plugin Contributions:
0

Re: Premature end of script headers: store_manager.php

Maybe I should import tables to my local server sort tables and re-export it? If yes, what tables (without the guessing) I should be focused on export?

Adam

19 Mar 2007, 7:55 PM
#6
manada avatar

manada

New Zenner

Join Date:
Dec 2005
Posts:
35
Plugin Contributions:
0

Re: Premature end of script headers: store_manager.php

Here its an answer from host provider:

<quote> [...] Please have in mind that that your account is located on a shared hosting server and thus there are some limitations. One of them is the php execution time , which I am afraid that it is not possible to be increased. The solution in this case is to optimize your scripts to complete their tasks faster. [...] </quote>
20 Mar 2007, 1:11 AM
#7
ajeh avatar

ajeh

Oba-san

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

Re: Premature end of script headers: store_manager.php

How many:
categories
products
products_attributes
products_to_categories

do you have in your database?

You can peek in your phpMyAdmin for this ...

20 Mar 2007, 1:13 PM
#8
manada avatar

manada

New Zenner

Join Date:
Dec 2005
Posts:
35
Plugin Contributions:
0

Re: Premature end of script headers: store_manager.php

I have:

categories = 85
products = 536
products_attributes=3526
products_to_categories=1235

Adam

Ajeh:

How many:
categories
products
products_attributes
products_to_categories

do you have in your database?

You can peek in your phpMyAdmin for this ...

21 Mar 2007, 3:16 AM
#9
ajeh avatar

ajeh

Oba-san

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

Re: Premature end of script headers: store_manager.php

Not really enough categories, products and attributes to account for this overload on the server ...

Perhaps your hosting site has you on an overloaded server to begin with ...

25 Mar 2007, 3:45 AM
#10
tj1 avatar

tj1

Totally Zenned

Join Date:
Mar 2005
Location:
California
Posts:
628
Plugin Contributions:
0

Re: Premature end of script headers: store_manager.php

I would start looking for a better host. You can't really run a ZC store on a host like that.

26 Mar 2007, 7:46 PM
#11
manada avatar

manada

New Zenner

Join Date:
Dec 2005
Posts:
35
Plugin Contributions:
0

Re: Premature end of script headers: store_manager.php

I am really not thinking!

Sorting defaults attributes by category (/admin/option_values.php) still works! I think I gotta like it. :-)

Adam