Simple Machines Community Forum

SMF Support => SMF 2.0.x Support => Topic started by: VanKlomp on May 08, 2011, 05:13:22 AM

Title: Error 500 - wwwRedirect
Post by: VanKlomp on May 08, 2011, 05:13:22 AM
http://www.rsobb.co.uk/index.php?PHPSESSID=dc0fec75f701090377efd5d8aedeee2c:wwwRedirect

If the following link is used, a 500 Internal Server error is generated. The person who reported this had created a bookmark to the forum after visiting the forum without typing 'www' in the address bar. The result was a link that contained a session ID and a wwwRedirect element.

If the link is visited less the 'wwwRedirect' part, no error is received.

http://www.rsobb.co.uk/index.php?PHPSESSID=dc0fec75f701090377efd5d8aedeee2c

I checked for an existing bug like this but could not find one.

Hosting
SMF 2.0 RC4
Apache version 2.2.17
PHP version 5.2.17
MySQL version 5.1.56

Mods
SimplePortal 2.3.3
KeyCAPTCHA for SMF 2.0
Tapatalk SMF 2.0 RC4/RC5 Plugin 2.0.0
SMF 2.0 RC4 Security Patch 1.0
Mibbit Ajax IRC Chat Mod 2.0
Treasury 2.08
Users Online Today 1.5.6

Themes
SMF Default Theme - Curve (2.0 RC4)
Core Theme (2.0 RC4)
Flagrant_alt (2.0 RC4)
SMF4iPhone (2.0 RC4)

I had error logging enabled but it did not log anything.

Thanks
Title: Re: Error 500 - wwwRedirect
Post by: Illori on May 08, 2011, 06:26:20 AM
this is not a bug please see

Quote from: Illori on December 03, 2010, 01:08:57 PM
Quote from: Illori on December 02, 2010, 12:48:38 PM
some searching on this forum lead to http://www.simplemachines.org/community/index.php?topic=312299.0
Title: Re: Error 500 - wwwRedirect
Post by: VanKlomp on May 08, 2011, 07:09:25 AM
Are you sure?

My issue is not that the redirect is taking place, it is the resulting error message received.
Title: Re: Error 500 - wwwRedirect
Post by: Illori on May 08, 2011, 07:11:17 AM
most people find that fix will fix it. I have not seen the issue myself but everyone has been able to resolve it without making a "bug report" on the issue. Sounds like something is up with your server configuration somehow which is related to this.
Title: Re: Error 500 - wwwRedirect
Post by: VanKlomp on May 08, 2011, 08:24:16 AM
For starters, that's not a fix. It's a workaround, there is a difference. The forum software should not allow for that error to be produced, to an end user that is a problem.

There is nothing wrong with the hosting configuration, and this was reproduced on a vanilla installation of SMF 2.0 RC5. Thus it is not the hosting and it is not a mod. This is why a "bug report" was created (though why you felt the need to enclose it in quotes is beyond me). It's always refreshing when the "support" talks down to it's user base.
Title: Re: Error 500 - wwwRedirect
Post by: Illori on May 08, 2011, 08:32:27 AM
i could test it on my localhost install, but since it is not configured the same as your host i would not be able to duplicate it, which means it is an issue with your server and not the forum software.
Title: Re: Error 500 - wwwRedirect
Post by: Adish - (F.L.A.M.E.R) on May 08, 2011, 09:35:25 AM
Can you please provide us with your ./public_html/.htaccess ?

Also, can you please provide us with your phpinfo() ?
What is a phpinfo() file? (http://docs.simplemachines.org/index.php?topic=479.0)
Title: Re: Error 500 - wwwRedirect
Post by: Aleksi "Lex" Kilpinen on May 08, 2011, 09:51:19 AM
If you have access to your server error logs, please take a look at what is logged there when this happens - If you do not, please ask your host to check out if this could be due to mod_security or a similar security tool. Normally mod_security blocks end up in either HTTP 500 "Interna error", or a HTTP 403 "Forbidden".
Title: Re: Error 500 - wwwRedirect
Post by: VanKlomp on May 09, 2011, 01:13:51 PM
Quote from: (F.L.A.M.E.R) on May 08, 2011, 09:35:25 AM
Can you please provide us with your ./public_html/.htaccess ?

Also, can you please provide us with your phpinfo() ?
What is a phpinfo() file? (http://docs.simplemachines.org/index.php?topic=479.0)

Hi,

http://www.rsobb.co.uk/_tester.php <-- There for the moment, better than quoting it me thinks.

.htaccess

#
# Uncomment the statement below if you want to make use of
# HTTP authentication and it does not already work.
# This could be required if you are for example using PHP via Apache CGI.
#
#<IfModule mod_rewrite.c>
#RewriteEngine on
#RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L]
#</IfModule>

<Files "config.php">
Order Allow,Deny
Deny from All
</Files>

<Files "common.php">
Order Allow,Deny
Deny from All
</Files>


Title: Re: Error 500 - wwwRedirect
Post by: BartB on January 21, 2014, 07:04:37 AM
It is a bug and it's still there. Even if the server configuration is not optimal, SMF should not throw this error but tackle it.

Cause of the problem: In the URL you'll see:

?PHPSESSID=0203226ebb7db961777813d150b84673;action=community

The ';' before 'action' should be a '&'. I have no idea why there's a ';' there but it's causing my server too to give me the ERROR 500

v. 2.0.6  - and no clue how to solve it.
Title: Re: Error 500 - wwwRedirect
Post by: Kindred on January 22, 2014, 02:49:50 PM
it's because your host has a configuration issue that things the semi-colon is a hack
Title: Re: Error 500 - wwwRedirect
Post by: BartB on January 23, 2014, 04:06:08 AM
Ok, so far I'm with you. Now trust me when I tell you that I can not convince my hoster to change anything in that area. Changing hosters is not really an option and shouldn't be neccessary either.

If only someone could tell me where SMF puts the semi-colon in the URL. So I can change that into the '&'. Problem solved.

So... Please? :)
Title: Re: Error 500 - wwwRedirect
Post by: Shambles on January 23, 2014, 04:17:11 AM
I thought this old topic was marked solved (http://media.simplemachinesweb.com/smf/default/images/post/solved.gif)   :o
Title: Re: Error 500 - wwwRedirect
Post by: JBlaze on January 23, 2014, 04:26:05 AM
Quote from: BartB on January 23, 2014, 04:06:08 AM
Ok, so far I'm with you. Now trust me when I tell you that I can not convince my hoster to change anything in that area. Changing hosters is not really an option and shouldn't be neccessary either.

If only someone could tell me where SMF puts the semi-colon in the URL. So I can change that into the '&'. Problem solved.

So... Please? :)

The semicolon is hardcoded into all links inside SMF. This would not be an easy change, and I don't believe that this is being changed anytime soon in either 2.1 or 3.0.
Title: Re: Error 500 - wwwRedirect
Post by: BartB on January 23, 2014, 07:36:55 AM
Quote from: Shambles on January 23, 2014, 04:17:11 AM
I thought this old topic was marked solved (http://media.simplemachinesweb.com/smf/default/images/post/solved.gif)   :o

If it was, it should not be. It is not at all solved.
Title: Re: Error 500 - wwwRedirect
Post by: Kindred on January 23, 2014, 07:40:57 AM
well - it might be because the post is 2+ years old and you are not the original poster....

and this is a problem with a poor host. (SMF does not throw the error, the host does - the URL is completely valid)
Title: Re: Error 500 - wwwRedirect
Post by: BartB on January 23, 2014, 07:42:38 AM
Quote from: Kindred on January 23, 2014, 07:40:57 AM
well - it might be because the post is 2+ years old and you are not the original poster....

and this is a problem with a poor host. (SMF does not throw the error, the host does - the URL is completely valid)

So just because I'm not the original poster but the problem he had/has is the same that I have, I can not 're-open' it? And a poor hoster? Nah. I think that the majority of hosters won't let you mess with the PHP.INI. We don't all have our own dedicated servers.
Title: Re: Error 500 - wwwRedirect
Post by: Illori on January 23, 2014, 07:45:50 AM
no you can not reopen someone elses topic [unsolve it] ideally you should have opened your own topic and not bumped a topic that someone else started.
Title: Re: Error 500 - wwwRedirect
Post by: BartB on January 23, 2014, 07:52:57 AM
Quote from: Illori on January 23, 2014, 07:45:50 AM
no you can not reopen someone elses topic [unsolve it] ideally you should have opened your own topic and not bumped a topic that someone else started.

I'm not here to start meta-discussions, but isn't that a bit silly? To create multiple threads for the same question?
Title: Re: Error 500 - wwwRedirect
Post by: Illori on January 23, 2014, 08:23:52 AM
no it is not silly, even though your question may be similar to another question already asked, it may not be the EXACT same. so opening your own topic helps us help you better.
Title: Re: Error 500 - wwwRedirect
Post by: Kindred on January 23, 2014, 02:41:16 PM
because this is a SUPPORT board, we need some way to track when the ORIGINAL poster has either solved or given up. People who chime in later can piggyback, if the issue is still being worked on, but, especially for ones marked as solved, should start a new query.

Also, I don't have a dedicated server (I use a shared server for 4 sites and admin 2 sites on other shared servers) and my host most definitely allows me to tweak php.ini
then again, my host's configuration doesn't choke on the semi-colon either...   which rather seems to demonstrate the quality of hosting.
Title: Re: Error 500 - wwwRedirect
Post by: Arantor on January 23, 2014, 02:52:48 PM
OK, so let's back up a minute.

1) semicolon is totally valid in URLs.
2) semicolon is used throughout SMF for several reasons, most importantly to avoid having so many issues with using & which for validation reasons must always be written as a full entity (which includes the semicolon anyway)
3) this isn't going to change in 2.1, it will change in 3.0
4) SMF has always done this, it's been doing it for 10 years
5) if the server is giving you trouble, it's an over-active mod_security rule
Title: Re: Error 500 - wwwRedirect
Post by: BartB on January 23, 2014, 04:29:19 PM
Well I think I figured it out here. I actually don't think it's the semi-colon that's causing trouble here. I was lead in that direction by other questions in this forum, but you're right: the semi-colon is all over the place and it's never causing trouble.

My error 500 ONLY seems to occur on the very first page someone views, where the PHPSESSID is in the URL. Since there is a semi-colon in that URL, I thought that was causing the problem.


Thanks for taking the time to dig into this one again :)