Interal Server Error

Started by sektor, October 05, 2007, 11:29:38 AM

Previous topic - Next topic

sektor

Users have been getting this error quite often lately.
Actually, once this appears, they won't be able to OPEN the site (not login) for days. Not until they clean up the cookies on the browser...they ALWAYS get Internal Server Error

This is what apache reports:

[Fri Oct 05 18:09:26 2007] [error] [client xxx.xxx.xxx.xxx] Premature end of script headers: index.php, referer: http://xxxxxxx.com/

I am unable to solve the problem.

rummie

#1
-

sektor

Quote from: rummie on October 06, 2007, 08:44:21 PM
Quote from: sektor on October 05, 2007, 11:29:38 AM
Users have been getting this error quite often lately.
Actually, once this appears, they won't be able to OPEN the site (not login) for days. Not until they clean up the cookies on the browser...they ALWAYS get Internal Server Error

This is what apache reports:

[Fri Oct 05 18:09:26 2007] [error] [client xxx.xxx.xxx.xxx] Premature end of script headers: index.php, referer: http://xxxxxxx.com/

I am unable to solve the problem.

how frequently does this happen?
do your users  have anything in common ?

Do you know that there is a limit in the number (and size) of cookies your browser can read/set?

What MODS or extensions are you using?

What you could do (and I havent tested this), but off the top of my head;

in your htaccess file, you could put a 500 ERROR redirector page, so when your users get a 500 error, you could give them a custom message, telling them to clear their browser cache and cookies?

this would be a temporary fix of course, maybe you have a theme or mod that is causing this..

have you mentioned this to your host?

start checking your backups and making sure you are current..you may have bigger problems and this is just a symptom

I'm not sure what's causing it...
My first guess is the bridge, because i also have some other login issues (people login to SMF and not Joomla).
The server is a dedicated server which i run.

I use:

Orstrio's SMF Bridge
jRevews
JRE Cache
JRE SEF
Joomfish.

I will soon move to Mambo. It is possible that this problem gets fixed when i do...

Thank you for your reply.
Al.

Kindred

Quote
people login to SMF and not Joomla

That is indicative of a problem in your setup.
a) you have joomla and smf set up in different databases and have not granted the database users access to both databases.
b) you have not properly configured your bridge path to SMF
c) you are allowing people to log into your stand-alone forum (which will never log you into joomla)
d) you are using a different subdomain (www.yoursite.com versus yoursite.com versus portal.yoursite.com : these are all different sites as far as joomla is concerned. Smf, on the other hand can deal with subdomain independent cookies)


With server errors, like 500 errors, it always helps to talk with your hosting service.
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

sektor

Quote from: Kindred on October 15, 2007, 04:26:35 PM
Quote
people login to SMF and not Joomla

That is indicative of a problem in your setup.
a) you have joomla and smf set up in different databases and have not granted the database users access to both databases.
b) you have not properly configured your bridge path to SMF
c) you are allowing people to log into your stand-alone forum (which will never log you into joomla)
d) you are using a different subdomain (www.yoursite.com versus yoursite.com versus portal.yoursite.com : these are all different sites as far as joomla is concerned. Smf, on the other hand can deal with subdomain independent cookies)


With server errors, like 500 errors, it always helps to talk with your hosting service.


Thanks for your reply. However, there are a FEW people that are unable to login to both joomla + SMF. I have discovered two possibilites for this issue:

1. For some reason, upon registration, the user is NOT created on the joomla's ACL table! I have no idea why this happens.
OR
2. Users are both in Joomla + SMF tables, however, once they return to the website after a few hours of visiting, they are only login to SMF and have to logout/login to login to joomla as well.

Now answers to your suggestions

1. Both of the tables are in the same database.
2. the path to SMF is correct.
3. I do not. I have applied the patch on SMF's index.php
4. This MIGHT be responsible indeed. I probably have to redirect mydomain.com to www.mydomain.com using apache.

Thank you for once again

Kindred

and that redirect can cause problems...
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

sektor


sektor

Quote from: Kindred on October 15, 2007, 04:33:45 PM
and that redirect can cause problems...

Why though?
If i redirect mydomain.com to www.mydomain.com the cookie created will be for www.mydomain.com
correct?

Kindred

nope....   not quite. Unfortunately, it does not work as logically as you would hope.

Also, it might depend on the actual code that you used...
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

sektor

This actually did work.

If using apache, all you have to do is enable the module:

LoadModule rewrite_module modules/mod_rewrite.so

and add to the virtualhost:

RewriteEngine on
RewriteCond %{HTTP_HOST} !^www\.mydomain\.com [NC]
RewriteCond %{HTTP_HOST} !^$
RewriteRule ^/(.*) http://www.mydomain.com/$1 [L,R]


Advertisement: