CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Upgrading CiviCRM (Moderator: Deepak Srivastava) »
  • Upgrade from 4.07 to 4.1 on Drupal 7.12 giving Premature end of script headers
Pages: [1]

Author Topic: Upgrade from 4.07 to 4.1 on Drupal 7.12 giving Premature end of script headers  (Read 1996 times)

matthewboh

  • I post occasionally
  • **
  • Posts: 89
  • Karma: 2
Upgrade from 4.07 to 4.1 on Drupal 7.12 giving Premature end of script headers
February 25, 2012, 12:02:44 pm
I have a site at hostmonster.com that's been running fine for a couple of months. Decided to upgrade to Drupal 7.12 and to CiviCRM 4.1 from 4.07. However, I can't get it done.

I'm running PHP 5.3.10, MySQL Ver 5.1.60 with UTF-8 Unicode and INNODB support.

I delete the /sites/all/modules/civicrm directory and copy over the 4.1 version.

I then try to run the upgrade script at http://<mysite>/civicrm/upgrade?reset=1 but immediately get a 500 error with a comment about the system having a hiccup, then check the error logs - the only entry is

Code: [Select]
Premature end of script headers: index.php
I've searched around to find some possible causes, but only found some notes about increasing memory. I increased it to 256M - the maximum at hostmonster, but the error still occurs.

If I simply delete the 4.1 directory and replace it with the 4.07 directory that I saved - everything works just fine again. Ideas?

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Upgrade from 4.07 to 4.1 on Drupal 7.12 giving Premature end of script headers
February 26, 2012, 06:07:05 am
For a 500 error, there should be an error stored in the Apache error logs. Can you ask your host what it is?
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

matthewboh

  • I post occasionally
  • **
  • Posts: 89
  • Karma: 2
Re: Upgrade from 4.07 to 4.1 on Drupal 7.12 giving Premature end of script headers
February 26, 2012, 10:04:11 am
Following up with the hosting provider, but in the meantime decided to try to upgrade to 4.08 first, then 4.10. The upgrade to 4.08 went without a hitch, then the same problem with the upgrade to 4.10. I'll post again when I find out more...

matthewboh

  • I post occasionally
  • **
  • Posts: 89
  • Karma: 2
Re: Upgrade from 4.07 to 4.1 on Drupal 7.12 giving Premature end of script headers
March 10, 2012, 09:55:14 am
So far, I've been able to do an entirely new test 4.08 install on Drupal 7.12 on hostmonster.

Again, I can not upgrade from 4.08 to 4.1 even in the new test environment I set up on hostmonster. I know this code works because it works without a hitch on my test servers.

The browser error I get is

Quote
500 Server Error
A misconfiguration on the server caused a hiccup. Check the server logs, fix the problem, then try again. URL: http://www.frederickliteracy.org/drtest/?q=civicrm/upgrade&reset=1

I've gone into the apache error logs and only see
Code: [Select]
[Sat Mar 10 10:36:53 2012] [error] [client 70.109.79.157] Premature end of script headers: index.php
I've also checked for any items before or after that. I've also gone into PHP.ini and made sure that
Code: [Select]
error_reporting = E_ALL & ~E_DEPRECATED and
Code: [Select]
log_errors = On are properly set.

I've been dealing with hostmonster, but they basically say "check the logs" - which I've been doing.

Any ideas?

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Upgrade from 4.07 to 4.1 on Drupal 7.12 giving Premature end of script headers
March 13, 2012, 07:30:50 am
Quote from: matthewboh on March 10, 2012, 09:55:14 am
Again, I can not upgrade from 4.08 to 4.1 even in the new test environment I set up on hostmonster. I know this code works because it works without a hitch on my test servers.

Seems then that this is clearly a server issue.

Quote from: matthewboh on March 10, 2012, 09:55:14 am
I've been dealing with hostmonster, but they basically say "check the logs" - which I've been doing.

If their servers are not configured correctly to run this upgrade, and they are unable to assist you, all I can suggest is find another host.

Or run the upgrade on another server and then migrate your site back to their server.
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

matthewboh

  • I post occasionally
  • **
  • Posts: 89
  • Karma: 2
Re: Upgrade from 4.07 to 4.1 on Drupal 7.12 giving Premature end of script headers
March 16, 2012, 08:47:19 am
The folks at hostmonster came through - here's what they did to fix the problem

Quote
I'm not sure if you were running PHP 5.3 on the other server which is working.  However, that's what things were set to on our server.  I renamed your ~/public_html/php.ini file to php.ini-old.  I then used the PHP Config icon within cPanel to set the server to use PHP 5.2.17 (Single php.ini).  I also installed a new php.ini file.  I edited that php.ini file and enabled output_buffering.  When I now visit http://www.frederickliteracy.org/drtest/?q=civicrm/upgrade&reset=1 , it does not show a 500 Internal Server Error but instead of 403 Forbidden Error.  I don't know if one has to be logged in as admin in order to run the upgrade.  But, you can give it a try now and see if this helps things out.

I logged in as admin and the upgrade went without a hitch!

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Upgrading CiviCRM (Moderator: Deepak Srivastava) »
  • Upgrade from 4.07 to 4.1 on Drupal 7.12 giving Premature end of script headers

This forum was archived on 2017-11-26.