Broken Links with pathinfo 2.6.0RC2 [message #13944] |
Sat, 01 November 2003 15:03 |
Olliver
Messages: 443 Registered: March 2002
Karma: 0
|
Senior Member |
|
|
Hello,
After having upgraded to 2.6.0RC2 I noticed that with pathinfo enabled "Today's Posts", "Unread Posts" and "Unanswered Posts" generate broken links.
The usual theme rebuilding and consistency checks including SQL optimizer where made, so it's definetly a bug in FUD. Looking at the broken links the following is striking:
http://myserver.com/index.php/sel/date/today/frm_id//th//6/
http://myserver.com/index.php/sel/unread/1/frm_id//6/
http://myserver.com/index.php/sel/reply_count/0/frm_id//6/
apparently something is missing where we got the double slashes. It seems to be the value "0" because once I fill up the gaps with it the links show what they're expected to show. Maybe the classical issue with "0" as figure and "boolean"? Dunno as I haven't looked at the code but I'd be looking forward to seeing this fixed because robots can better index if path info is enabled.
Bye
Olliver
|
|
|
Re: Broken Links with pathinfo 2.6.0RC2 [message #13963 is a reply to message #13944] |
Sat, 01 November 2003 20:32 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
The // is harmless because there is no forum id, so it is not appliable. As for broken links after a little bit of testing the only issue I found was that when you select today's post and then click "unread messages" it seems to loose track and take you to the main page. Inidividual links by themselves appear to work fine.
FUDforum Core Developer
|
|
|
Re: Broken Links with pathinfo 2.6.0RC2 [message #13966 is a reply to message #13963] |
Sat, 01 November 2003 23:49 |
Olliver
Messages: 443 Registered: March 2002
Karma: 0
|
Senior Member |
|
|
I'm sure this is a bug and the missing parts between two slashes must have a meaning.
how comes that if I follow one of the three links I'm getting an 404 error? So it does matter.
Another reason why I stick to my claim is if I fill up the // with a "0" in between the issue is solved and the links work again.
you can convince yourself here:
http://bbclone.topfunwebsites.com/
Just
Though it doesn't seem relevant to the problem here's the server profile:
Database Version: 3.23.58
PHP Version: 4.3.3
Web Server: Apache
WebServer to PHP interface: apache
Forum Version: 2.6.0RC2
Relavent PHP Settings:
Safe Mode: OFF
Open basedir: none
Display Errors: ON
File Uploads: ON
Magic Quotes: OFF
Register Globals: OFF
Output Buffering: Yes
Disabled Functions: none
PDF Support: No
Tokenizer Support: Yes
PSpell Support: Yes
Zlib Support: Yes
As you can see quite a normal installation.
Olliver
|
|
|
Re: Broken Links with pathinfo 2.6.0RC2 [message #13970 is a reply to message #13966] |
Sun, 02 November 2003 17:22 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
Some Apache versions in some cases try to 'resolve' // and in the process loose the hostname. I am not sure why this happens, but it does. It is not a FUDforum bug per-say. I will however take a look @ the code and make it place 0 instead of '' to prevent such a happening.
FUDforum Core Developer
|
|
|
|
|