Loads of unavailable errors, HELP!

Started by Proenski, October 19, 2005, 03:22:20 PM

Previous topic - Next topic

Proenski

Quote503 Service Temporarily Unavailable
The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later.

Visitors have been getting loads of these kind of errors and I don't know what causes them... Personally I don't get that problem so I can't duplicate the problem.

Also members aren't able to post and/or alter their profile.

I need some  serious help I'm afraid   :'(
May the force be with you

Elmacik

Home of Elmacik

Proenski

But what is causing this? Personally I don't have any problems and basically I access the board the same way members do.
May the force be with you

Elmacik

service unavailable means the server is unavailable and this is not something related with a forum with a script.. namely with your site. its completely about the server
Home of Elmacik

Proenski

Ok, I get that but how come I don't experience that problem at the same time other people have it??
May the force be with you

Esé

If you made a big server change, and they live across the world from you, then it could be that thier DNS has nto yet been updated. Or, they gotta delete thier cookies n stuff... tell em to try that. Whats your site so I can try it out.

Oldiesmann

This is caused when the server sticks a ; after the PHPSESSID string (instead of an &). Put this at the beginning of index.php and it should fix your problem:

ini_set('session.use_trans_sid', '0');

That will disable the functionality that sticks the PHPSESSID string in the URL in the first place, and should fix your problems.

Proenski

Ok, will do that.

Just one question, why was this function put in there? Is there some advantage?

Apparently quite a lot of people from my board suff from it  :o
May the force be with you


Proenski

Quote from: Oldiesmann on October 19, 2005, 08:17:07 PM
This is caused when the server sticks a ; after the PHPSESSID string (instead of an &). Put this at the beginning of index.php and it should fix your problem:

ini_set('session.use_trans_sid', '0');

That will disable the functionality that sticks the PHPSESSID string in the URL in the first place, and should fix your problems.

It didn't help...
Is there another sollution to this problem? Or settings that need to be altered?

It looks like I'm not the only one with this problem  :-\
May the force be with you

sight|i|picture

Oldiesmann has found the fix for this error...

It is a line of code in the Sources/QueryString.php

I don't remember the code that you are supposed to lookup and replace. (He posted the fix to the SMF temp Support board while SMF site was moving to the new server) He might be able to help you out here.

I thought of your post after he found the fix. I hope all is well!
sightpicture

Proenski

Ok, I will search for that, in the meanwhile this seems to work for users too:

QuoteIn the browser the address is like this:

http://www.depechemodeforum.com/board/index.php?PHPSESSID=bdb3de3421da5f7fd23173b543de97f4;topic=6803.new#new

Delete the forum cookie first, [email protected]/
usually located the C:\Documents and Settings\username\Local Settings\Temporary Internet Files directory

and from this directory:

C:\Documents and Settings\username\Cookies

Erase the complete ?PHPSESSID part and hit "enter"

May the force be with you

Proenski

Been looking but couldn't find the post also because the search option was taken off line all time.

Can someone direct me to it?
May the force be with you

Oldiesmann

Sources/QueryString.php

Find
$buffer = preg_replace('/"' . preg_quote($scripturl, '/') . '(?!\?' . preg_quote(SID, '/') . ')(\?)?/', '"' . $scripturl . '?' . SID . ';', $buffer);

Replace
$buffer = preg_replace('/"' . preg_quote($scripturl, '/') . '(?!\?' . preg_quote(SID, '/') . ')(\?)?/', '"' . $scripturl . '?' . SID . '&', $buffer);

Proenski

Thank you, does this mean that the alteration in the index.php is obsolete now?
May the force be with you

sight|i|picture

Quote from: Proenski on November 04, 2005, 11:28:59 AM
Thank you, does this mean that the alteration in the index.php is obsolete now?

yes it does
sightpicture

Proenski

Quote from: Proenski on November 03, 2005, 03:36:54 AM
Ok, I will search for that, in the meanwhile this seems to work for users too:

QuoteIn the browser the address is like this:

http://www.depechemodeforum.com/board/index.php?PHPSESSID=bdb3de3421da5f7fd23173b543de97f4;topic=6803.new#new

Delete the forum cookie first, [email protected]/
usually located the C:\Documents and Settings\username\Local Settings\Temporary Internet Files directory

and from this directory:

C:\Documents and Settings\username\Cookies

Erase the complete ?PHPSESSID part and hit "enter"



Still a few boardies have a problem:

Mozilla & Mozilla Firefox save cookies in different way (into file cookies.txt located somewhere under directory"Documents and Settings\UserName\Application Data\Mozilla") but even after deleting all cookies same error happens.

Anybody any thoughts?
May the force be with you

sight|i|picture

Quote from: Oldiesmann on November 04, 2005, 11:03:29 AM
Sources/QueryString.php

Find
$buffer = preg_replace('/"' . preg_quote($scripturl, '/') . '(?!\?' . preg_quote(SID, '/') . ')(\?)?/', '"' . $scripturl . '?' . SID . ';', $buffer);

Replace
$buffer = preg_replace('/"' . preg_quote($scripturl, '/') . '(?!\?' . preg_quote(SID, '/') . ')(\?)?/', '"' . $scripturl . '?' . SID . '&', $buffer);

This above is the fix that worked for both IE and FireFox. I don't know why this fix isn't working for you. The other quick fix that you quoted just allowed members to log back in.
sightpicture

Advertisement: