Results 1 to 9 of 9
  1. #1
    Join Date
    Apr 2005
    Posts
    206
    Plugin Contributions
    0

    Default Premature end of script headers: php-script

    Hi, I use zen cart 1.3.0 and it used to work perfectly and customer can get order confirmation instantly after order accept by paypal until I moved to another host, the problem is: PayPal can get the payment and PayPal also return to my site, customer can see check_success.php page and admin area can see paypal visit ipn_main_handler.php. but the order confirmation email DOES NOT send out! within host error log, there is message "[error] [client 216.113.188.202] Premature end of script headers: php-script", this IP is PayPal IPN, so it does look it premature end of ......., what does "Premature end of script headers: php-script" real mean here? can anyone help me on solve this problem please?

    thank you in advance!

  2. #2
    Join Date
    Jun 2003
    Posts
    33,721
    Plugin Contributions
    0

    Default Re: Premature end of script headers: php-script

    Are all the other emails working properly?

  3. #3
    Join Date
    Apr 2005
    Posts
    206
    Plugin Contributions
    0

    Default Re: Premature end of script headers: php-script

    yes! thanks!

  4. #4
    Join Date
    Jun 2003
    Posts
    33,721
    Plugin Contributions
    0

    Default Re: Premature end of script headers: php-script

    Try reuploading the PayPal files (including the IPN file in the root directory) then uninstall and reinstall the module from the admin.

  5. #5
    Join Date
    Apr 2005
    Posts
    206
    Plugin Contributions
    0

    Default Re: Premature end of script headers: php-script

    Hi, I just did what you have said but still no luck!

    thanks!

  6. #6
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default Re: Premature end of script headers: php-script

    What operating system is your host running?
    What version of PHP?
    What version of Apache/IIS?

    You said you switched hosts recently .... from who to whom?
    Did you encounter any "other" issues after switching hosts?
    .

    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. #7
    Join Date
    Apr 2005
    Posts
    206
    Plugin Contributions
    0

    Default Re: Premature end of script headers: php-script

    DrByte,

    What operating system is your host running?
    --Linux (CentOS) 4.x

    What version of PHP?
    --PHP 4.3.x

    What version of Apache/IIS?
    --Apache 2.0.x

    You said you switched hosts recently .... from who to whom?
    --from resellerzoom.com (US) to register1.net (UK host), it was working prefectly with resellerzoom.

    Did you encounter any "other" issues after switching hosts?
    --yes, one other issue, there are 2 times I have problem to access to my website, error message as "0 DB_ERROR_NOT_CONNECTED
    in:
    [delete from dt_db_cache]
    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."

    I saw your another post talking about "the host is running PHP as CGI", which my host has confirm this. they said " Yes for security and functionality we do run PHP as a CGI."

    So apart from move to another host again, do you think is there anything I can do to fix it?

    many thanks for your help!

  8. #8
    Join Date
    Apr 2005
    Posts
    206
    Plugin Contributions
    0

    Default Re: Premature end of script headers: php-script

    Hi,

    I moved the host and new host site is running under PHP 4.4.2 with mod_php, not as a CGI. But I still don't get order confirmation email sent.

    PayPal IPN did return to my site but the access log message are differnet, it said

    216.113.188.202 - - [30/Jun/2006:10:45:08 +0100] "POST /ipn_main_handler.php HTTP/1.0" 200 0 "-" "-"

    also, there is no error message about PayPal IPN.

    does anyone know what is wrong with this?

    thanks in advance!

  9. #9
    Join Date
    Apr 2005
    Posts
    206
    Plugin Contributions
    0

    Default Re: Premature end of script headers: php-script

    Hi, I moved the server but it doesn't help, then I upgrade to 1.3.02, it works now.

    thank you anyone who try to help me!

 

 

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: store_manager.php
    By manada in forum General Questions
    Replies: 10
    Last Post: 26 Mar 2007, 08:46 PM
  3. Premature end of script headers
    By spottedhaggis in forum General Questions
    Replies: 0
    Last Post: 10 Sep 2006, 06:34 PM
  4. 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

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