Internal Server Error when trying to post/edit comment

lomz - August 19, 2008 - 19:40
Project:Drupal
Version:6.8
Component:comment.module
Category:bug report
Priority:normal
Assigned:Unassigned
Status:postponed (maintainer needs more info)
Description

After upgrade to 6.x.1.x-dev after update to D6 i get Internal Server Error when trying to post/edit comment.

#1

greggles - August 19, 2008 - 20:59
Status:active» postponed (maintainer needs more info)

Can you look in your apache and/or php error logs and see what messages it shows?

#2

lomz - August 20, 2008 - 05:46

How do I do that?

#3

greggles - August 20, 2008 - 17:14

If you are unsure, contact your hosting company.

If this is in MAMP or XAMPP or something, look in the logs directory or search the documentation.

#4

lomz - August 28, 2008 - 05:56

Sorry, no access to the logs

#5

greggles - August 28, 2008 - 14:31

Then there's almost nothing I can do, unfortunately.

What operating system and version of PHP and what database are you using? If you don't know, contact your host.

#6

lomz - September 1, 2008 - 08:52

My ISP told me that the error showed:

[Tue Aug 19 20:46:07 2008] [error] [client xxx.XXX.xxx.XX] Premature end
of script headers: index.php, referer:
http://vindstille.net/christian/er-studentene-for-sentrumskravstore
[Tue Aug 19 20:46:16 2008] [error] [client xxx.XXX.xxx.XX] Premature end
of script headers: index.php, referer:
http://vindstille.net/christian/er-studentene-for-sentrumskravstore
[Tue Aug 19 20:46:27 2008] [error] [client xxx.XXX.xxx.XX] Premature end
of script headers: index.php, referer:
http://vindstille.net/christian/er-studentene-for-sentrumskravstore
[Tue Aug 19 20:47:31 2008] [error] [client xxx.XXX.xxx.XX] Premature end
of script headers: index.php, referer:
http://vindstille.net/christian/er-studentene-for-sentrumskravstore
[Tue Aug 19 20:47:31 2008] [error] [client xxx.XXX.xxx.XX] Premature end
of script headers: index.php, referer:
http://vindstille.net/christian/er-studentene-for-sentrumskravstore
[Tue Aug 19 20:47:34 2008] [error] [client xxx.XXX.xxx.XX] Premature end
of script headers: index.php, referer:
http://vindstille.net/christian/er-studentene-for-sentrumskravstore
[Tue Aug 19 20:49:08 2008] [error] [client xxx.XXX.xxx.XX] Premature end
of script headers: index.php, referer:
http://vindstille.net/admin/content/comment
[Tue Aug 19 20:49:58 2008] [error] [client xxx.XXX.xxx.XX] Premature end
of script headers: index.php, referer:
http://vindstille.net/comment/reply/1458/1582
[Tue Aug 19 20:53:47 2008] [error] [client xxx.XXX.xxx.XX] Premature end
of script headers: index.php, referer: http://vindstille.net/christian/test
[Tue Aug 19 20:53:50 2008] [error] [client xxx.XXX.xxx.XX] Premature end
of script headers: index.php, referer: http://vindstille.net/christian/test
[Tue Aug 19 20:54:06 2008] [error] [client xxx.XXX.xxx.XX] Premature end
of script headers: index.php, referer:
http://vindstille.net/comment/reply/670/1207
[Tue Aug 19 20:54:30 2008] [error] [client xxx.XXX.xxx.XX] Premature end
of script headers: index.php, referer:
http://vindstille.net/christian/er-studentene-for-sentrumskravstore
[Tue Aug 19 20:56:01 2008] [error] [client xxx.XXX.xxx.XX] Premature end
of script headers: index.php, referer:
http://vindstille.net/christian/er-studentene-for-sentrumskravstore
[Tue Aug 19 20:56:54 2008] [error] [client xxx.XXX.xxx.XX] Premature end
of script headers: index.php, referer:
http://vindstille.net/christian/er-studentene-for-sentrumskravstore
[Tue Aug 19 20:58:56 2008] [error] [client xxx.XXX.xxx.XX] Premature end
of script headers: index.php, referer:
http://vindstille.net/christian/er-studentene-for-sentrumskravstore
[Tue Aug 19 20:58:59 2008] [error] [client xxx.XXX.xxx.XX] Premature end
of script headers: index.php, referer:
http://vindstille.net/christian/er-studentene-for-sentrumskravstore
[Tue Aug 19 21:00:31 2008] [error] [client xxx.XXX.xxx.XX] Premature end
of script headers: index.php, referer:
http://vindstille.net/christian/er-studentene-for-sentrumskravstore
[Tue Aug 19 21:02:37 2008] [error] [client xxx.XXX.xxx.XX] Premature end
of script headers: index.php, referer:
http://vindstille.net/christian/er-studentene-for-sentrumskravstore
[Tue Aug 19 21:03:47 2008] [error] [client xxx.XXX.xxx.XX] Premature end
of script headers: index.php, referer:
http://vindstille.net/christian/er-studentene-for-sentrumskravstore
[Tue Aug 19 21:11:25 2008] [error] [client xxx.XXX.xxx.XX] Premature end
of script headers: index.php, referer:
http://vindstille.net/christian/er-studentene-for-sentrumskravstore
[Tue Aug 19 21:13:54 2008] [error] [client xxx.XXX.xxx.XX] Premature end
of script headers: index.php, referer:
http://vindstille.net/christian/er-studentene-for-sentrumskravstore

#7

greggles - September 2, 2008 - 18:38
Status:postponed (maintainer needs more info)» fixed

Well, I just committed 2 small changes to comment_notify.module 6.x branch that removes a newline at the end of the file which can sometimes cause this problem and also changing to a more Drupalish style of returning the page content instead of printing the theme() function.

So, I'm somewhat hopeful that those will fix it. Otherwise, I could really use your help on this:

1) what is the operating system and version of PHP that you use?

2) If you can, try commenting out different parts of the "comment_notify_comment" function and see if the problem goes away. That will help pinpoint which bit of code is causing the problem and I can then review that area more closely.

#8

lomz - September 2, 2008 - 18:55

1.:
MySQL: 5.0.45
PHP: 5
OS: Think is Ubuntu 8.04 or 7.10 or similar.

2.: I will test it as soon as I see it as downloadable.

#9

greggles - September 2, 2008 - 20:58

Which specific PHP5.?

I've used the module on Ubuntu 7.10 and 8.04 with the version of PHP5 that comes with Ubuntu and it works fine.

#10

lomz - September 2, 2008 - 21:11

how do i find the version number?

#11

greggles - September 3, 2008 - 01:03

#12

lomz - September 3, 2008 - 05:34

5.2.3-1ubuntu6.4

#13

lomz - September 3, 2008 - 06:18

I tried commenting out each of the separate "underfunctions" but still the same error, then I tried to comment out the whole function but still same error.

#14

Anonymous (not verified) - September 17, 2008 - 06:22
Status:fixed» closed

Automatically closed -- issue fixed for two weeks with no activity.

#15

lomz - September 17, 2008 - 08:06
Status:closed» active

Sorry, not fixed, I didnt get any response on my last comment, and I tried with the latest version, still same error.

#16

greggles - September 17, 2008 - 12:49

Ok. Can you try commenting out more and more parts of the module file and see if the problem goes away? I still don't have an idea about what causes this.

#17

greggles - September 19, 2008 - 20:35
Status:active» postponed (maintainer needs more info)

#18

lomz - September 21, 2008 - 07:07

Uninstalled the module completely, that fixed it, but kind of anoying to have to remove all the information.

#19

greggles - September 30, 2008 - 22:32
Title:Internal Server Error» Comment Notify - Internal Server Error - Premature end of script headers
Status:postponed (maintainer needs more info)» closed

Without any feedback or consistent set of steps to repeat the issue I don't see the benefit to keeping it open. If the issue remains even after commenting out the whole file then it is not caused solely by this module...

#20

kenorb - January 11, 2009 - 02:22

I've got the same problem when replying the comment, but I'm not using comment_notify module;/

#21

greggles - January 11, 2009 - 03:33

@kenorb - that's just further proof that this issue is not related to comment_notify. I suggest you open a new bug in the core queue. You will likely have to debug it yourself since it is clearly not very common.

#22

kenorb - January 12, 2009 - 20:27
Title:Comment Notify - Internal Server Error - Premature end of script headers» Internal Server Error when trying to post/edit comment
Project:Comment Notify» Drupal
Version:6.x-1.x-dev» 6.8
Component:Code» comment.module
Status:closed» postponed (maintainer needs more info)

It easy to say, but it happen on production environment, where I can't debug it.

#23

asimmonds - January 13, 2009 - 08:56

@kenorb - greggles asked you to open a NEW bug in the core queue, not reopen/reassign this bug.

#24

kenorb - January 13, 2009 - 10:00

But I think it can be the same issue, so for what for? To duplicate the problem?

 
 

Drupal is a registered trademark of Dries Buytaert.