FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum Development » Bug Reports » Enable PATH_INFO, some links not worked
Show: Today's Messages :: Polls :: Message Navigator
Switch to threaded view of this topic Create a new topic Submit Reply
Enable PATH_INFO, some links not worked [message #32471] Mon, 03 July 2006 09:28 Go to next message
floyd is currently offline  floyd   Russian Federation
Messages: 6
Registered: July 2006
Karma: 0
Junior Member
I set the PATH_INFO = Yes, and set the template set = path_info for the default theme.
Link to the forums (http://127.0.0.1/FUDforum2/index.php/f/11/) and topics (http://127.0.0.1/FUDforum2/index.php/t/738/) are fine.
But register link http://127.0.0.1/FUDforum2/index.php/re/ don't work.
When I try to login as admin, after submit login form, I'm redirect to "The page cannot be displayed". But when I click browser back button, I see that I'm logged in!
Also, if I not logged I can't open the urls: "reply", "new topic", "quote".
Help me please!


WinXP + SP2
Fudforum 2.7.5RC
Apache 1.3.34
PHP 5.1.2

[Updated on: Mon, 03 July 2006 09:33]

Report message to a moderator

Re: Enable PATH_INFO, some links not worked [message #32487 is a reply to message #32471] Tue, 04 July 2006 19:31 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
What browser are you using, have you tried to replicate it on another browser?

FUDforum Core Developer
Re: Enable PATH_INFO, some links not worked [message #32499 is a reply to message #32487] Wed, 05 July 2006 13:59 Go to previous messageGo to next message
floyd is currently offline  floyd   Russian Federation
Messages: 6
Registered: July 2006
Karma: 0
Junior Member
I tried the Firefox and see that script redirect me on another host. For example, when I request the url http://127.0.0.1/FUDforum2/index.php/re/, it's redirect me to http://192.168.109.210/FUDforum2/index.php/cp/, because all redirect paths were specified in scripts while installing according to my entered data. Now my IP is another than 192.168.109.210, so this problem appears.
Now I reinstall the forum, and everything working fine!

[Updated on: Wed, 05 July 2006 13:59]

Report message to a moderator

Re: Enable PATH_INFO, some links not worked [message #32500 is a reply to message #32499] Wed, 05 July 2006 17:39 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
It is possible the forum's settings during installation had a different IP during the initial install.

FUDforum Core Developer
Re: Enable PATH_INFO, some links not worked [message #33197 is a reply to message #32500] Thu, 17 August 2006 09:55 Go to previous messageGo to next message
floyd is currently offline  floyd   Russian Federation
Messages: 6
Registered: July 2006
Karma: 0
Junior Member
How could I configure my Apache 2.X for the path_info theme to be working? If it possible.

[Updated on: Thu, 17 August 2006 10:54]

Report message to a moderator

Re: Enable PATH_INFO, some links not worked [message #33207 is a reply to message #33197] Thu, 17 August 2006 13:33 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
You generally don't need to make any adjustments to your Apache configuration to allow PATH_INFO to work.

FUDforum Core Developer
Re: Enable PATH_INFO, some links not worked [message #33209 is a reply to message #33207] Thu, 17 August 2006 15:23 Go to previous messageGo to next message
floyd is currently offline  floyd   Russian Federation
Messages: 6
Registered: July 2006
Karma: 0
Junior Member
But forum doesn't work with path_info theme enabling.
forum index page http://myhost/fudforum/ loading without errors, but all another forum pages(for example http://myhost/fudforum/f/1/) return 404.
If path_info is off forum work correctly.
Re: Enable PATH_INFO, some links not worked [message #33215 is a reply to message #33209] Fri, 18 August 2006 13:50 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
Actually the PATH_INFO links should always contain index.php in them, do they?

FUDforum Core Developer
Re: Enable PATH_INFO, some links not worked [message #33216 is a reply to message #33215] Fri, 18 August 2006 13:55 Go to previous messageGo to next message
floyd is currently offline  floyd   Russian Federation
Messages: 6
Registered: July 2006
Karma: 0
Junior Member
sorry? of course the link are http://myhost/fudforum/index.php/f/1/

One question! How do links work? I cann't find any .htaccess file with rules for that links: http://myhost/fudforum/index.php/f/1/

Ilia, Excuse for troubling, I seem I know in what a problem, I shall check up and write about my experiment.

[Updated on: Fri, 18 August 2006 14:05]

Report message to a moderator

Re: Enable PATH_INFO, some links not worked [message #33217 is a reply to message #33216] Fri, 18 August 2006 14:03 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
The links don't require any .htaccess, when PATH_INFO works in the webserver it'll always pass index.php/foo/bar to index.php with /foo/bar being the PATH_INFO.

I've looked at Apache docs and it appears you need to add "AcceptPathInfo On" into your httpd.conf or try to put it inside .htaccess for this feature to work.


FUDforum Core Developer
Re: Enable PATH_INFO, some links not worked [message #33219 is a reply to message #33217] Fri, 18 August 2006 14:36 Go to previous message
floyd is currently offline  floyd   Russian Federation
Messages: 6
Registered: July 2006
Karma: 0
Junior Member
Ilia, thnks for your help!
It's really that problem was in Apache option "AcceptPathInfo On"!

[Updated on: Fri, 18 August 2006 14:38]

Report message to a moderator

  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: sqlite support not working at all.
Next Topic: Redirect to User Adminstration System
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sat Nov 23 22:14:07 GMT 2024

Total time taken to generate the page: 0.02538 seconds