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

Comments

greggles’s picture

Status: Active » Postponed (maintainer needs more info)

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

lomz’s picture

How do I do that?

greggles’s picture

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.

lomz’s picture

Sorry, no access to the logs

greggles’s picture

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.

lomz’s picture

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

greggles’s picture

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.

lomz’s picture

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.

greggles’s picture

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.

lomz’s picture

how do i find the version number?

greggles’s picture

lomz’s picture

5.2.3-1ubuntu6.4

lomz’s picture

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.

Anonymous’s picture

Status: Fixed » Closed (fixed)

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

lomz’s picture

Status: Closed (fixed) » Active

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

greggles’s picture

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.

greggles’s picture

Status: Active » Postponed (maintainer needs more info)
lomz’s picture

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

greggles’s picture

Title: Internal Server Error » Comment Notify - Internal Server Error - Premature end of script headers
Status: Postponed (maintainer needs more info) » Closed (fixed)

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

kenorb’s picture

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

greggles’s picture

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

kenorb’s picture

Title: Comment Notify - Internal Server Error - Premature end of script headers » Internal Server Error when trying to post/edit comment
Project: Comment Notify » Drupal core
Version: 7.x-1.x-dev » 6.8
Component: Code » comment.module
Status: Closed (fixed) » Postponed (maintainer needs more info)

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

asimmonds’s picture

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

kenorb’s picture

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

dpearcefl’s picture

Status: Postponed (maintainer needs more info) » Closed (won't fix)

Closing this issue because of a lack of activity.