Results 1 to 10 of 11

Hybrid View

  1. #1
    Join Date
    Dec 2005
    Posts
    34
    Plugin Contributions
    0

    Idea or Suggestion 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

  2. #2
    Join Date
    Mar 2005
    Location
    California
    Posts
    663
    Plugin Contributions
    0

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

  3. #3
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default 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:
    Code:
      switch($action) {
    add this above it:
    Code:
      zen_set_time_limit(600);
    .... which makes it look like this:
    Code:
      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.
    .

    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.

  4. #4
    Join Date
    Dec 2005
    Posts
    34
    Plugin Contributions
    0

    Default 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

  5. #5
    Join Date
    Dec 2005
    Posts
    34
    Plugin Contributions
    0

    Default 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

  6. #6
    Join Date
    Dec 2005
    Posts
    34
    Plugin Contributions
    0

    application error 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>

  7. #7
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

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

 

 

Similar Threads

  1. Cannot install on Linux (premature end of script headers)
    By karma-lab in forum Installing on a Linux/Unix Server
    Replies: 1
    Last Post: 21 Apr 2008, 08:52 PM
  2. Premature end of script headers
    By spottedhaggis in forum General Questions
    Replies: 0
    Last Post: 10 Sep 2006, 06:34 PM
  3. Please help please!Premature end of script headers: index.php (null)
    By fangzhouws in forum Installing on a Linux/Unix Server
    Replies: 2
    Last Post: 11 Aug 2006, 06:05 PM
  4. Premature end of script headers: php-script
    By doubletiger in forum General Questions
    Replies: 8
    Last Post: 2 Jul 2006, 09:53 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg