Site Links
Home
Features
Documentation
Pricing & Order
Members Area
Support Options
Who's Online
5 registered (24hourcampfire, Bill B, ECNet, FordDoctor, 1 invisible), 15 Guests and 22 Spiders online.
Key: Admin, Global Mod, Mod
Featured Member
Registered: 01/10/04
Posts: 1703
Top Posters (30 Days)
Ruben Rocha 179
Gizmo 112
Rick 109
Thelockman 80
driv 43
AllenAyres 35
ntdoc 28
Ian 24
Sirdude 23
ScriptKeeper 20
Latest Photos
My Home System
test photo gallery
Bernese Mountain Dogs
My Daimler
Dorado and shark
Topic Options
Rate This Topic
#216334 - 08/09/08 07:49 AM 7.3 Bug: SERVER["PATH_INFO"] may not be used
nims2 Offline
journeyman

Registered: 07/04/07
Posts: 76
When migrating my box to the newest version of php, I noticed that friendly URL's are no longer working when I enabled them.

Looking through several sites and forum, i've found out that a setting in php.ini can fix this. BUT it appears that it is a bug in PHP that is being used by UBB, which should be.

The quick fix is to edit the php.ini of your site, and set:
cgi.fix_pathinfo=0
(disabling the original fix)

The comment in this settings tells it all:

; cgi.fix_pathinfo provides *real* PATH_INFO/PATH_TRANSLATED support for CGI. PHP's
; previous behaviour was to set PATH_TRANSLATED to SCRIPT_FILENAME, and to not grok
; what PATH_INFO is. For more information on PATH_INFO, see the cgi specs. Setting
; this to 1 will cause PHP CGI to fix it's paths to conform to the spec. A setting
; of zero causes PHP to behave as before. Default is zero. You should fix your scripts
; to use SCRIPT_FILENAME rather than PATH_TRANSLATED.
cgi.fix_pathinfo=0


So UBB, please change your code the way it is supposed to be wink.

Top
#216335 - 08/09/08 08:24 AM Re: 7.3 Bug: SERVER["PATH_INFO"] may not be used [Re: nims2]
Gizmo Moderator Offline

***

Registered: 06/04/06
Posts: 12006
Loc: Portland, OR; USA
I think Path_info_translated was a fix that rarely occoured that path_info wouldn't populate; seems we need to take that a step further with another if/else clause to work of of script_filename as well...
_________________________
UGN Security, Elite Web Gamers & VNC Web Design Owner
Longtime UBB Supporter, UBB7 Beta Tester & Resident Post-A-Holic

Top
#216642 - 08/28/08 03:39 PM Re: 7.3 Bug: SERVER["PATH_INFO"] may not be used [Re: Gizmo]
nims2 Offline
journeyman

Registered: 07/04/07
Posts: 76
I guess your right. BTW Is this fixed in the newest ubb release?

Top
#216647 - 08/28/08 09:41 PM Re: 7.3 Bug: SERVER["PATH_INFO"] may not be used [Re: nims2]
Gizmo Moderator Offline

***

Registered: 06/04/06
Posts: 12006
Loc: Portland, OR; USA
doubt it, as the translated check was only added in 7.2... You'd have to likely wait for Rick to update the topic when he fixes it
_________________________
UGN Security, Elite Web Gamers & VNC Web Design Owner
Longtime UBB Supporter, UBB7 Beta Tester & Resident Post-A-Holic

Top
#216653 - 08/29/08 08:11 AM Re: 7.3 Bug: SERVER["PATH_INFO"] may not be used [Re: Gizmo]
Rick Administrator Offline

*****

Registered: 06/04/06
Posts: 7898
Loc: Aberdeen, WA
I'm looking on a proper solution for this with the variety of way we parse all of the data. Not sure if this will get into 7.3.2, but we'll see.
_________________________
UBB.threads™ Developer
My Personal Website · StogieSmokers.com

Top
#216655 - 08/29/08 09:02 AM Re: 7.3 Bug: SERVER["PATH_INFO"] may not be used [Re: Rick]
AllenAyres Moderator Offline

****

Registered: 12/29/03
Posts: 1639
Loc: Texas
Yay smile I have a client's site that's having a bit of an issue with it (snakebit with about every aspect of his site smile )
_________________________
- Allen
- ThreadsDev | PraiseCafe

Top
#216719 - 09/02/08 09:21 AM Re: 7.3 Bug: SERVER["PATH_INFO"] may not be used [Re: AllenAyres]
Rick Administrator Offline

*****

Registered: 06/04/06
Posts: 7898
Loc: Aberdeen, WA
Well, the problem is that SCRIPT_FILENAME just contains the path to the script, it doesn't contain anything after it.

So, something like this:

http://www.ubbcentral.com/forums/ubbthreads.php/ubb/showflat/Number/216111

SCRIPT_FILENAME only contains:

http://www.ubbcentral.com/forums/ubbthreads.php/ubb/showflat

It chops off the actual data that we need to know what topic to show.
_________________________
UBB.threads™ Developer
My Personal Website · StogieSmokers.com

Top
#216729 - 09/02/08 12:49 PM Re: 7.3 Bug: SERVER["PATH_INFO"] may not be used [Re: Rick]
AllenAyres Moderator Offline

****

Registered: 12/29/03
Posts: 1639
Loc: Texas
That's something like what I'm seeing now, it cuts off after ubbthreads.php?
_________________________
- Allen
- ThreadsDev | PraiseCafe

Top
#216739 - 09/02/08 03:38 PM Re: 7.3 Bug: SERVER["PATH_INFO"] may not be used [Re: AllenAyres]
Gizmo Moderator Offline

***

Registered: 06/04/06
Posts: 12006
Loc: Portland, OR; USA
sounds like path_info just isn't being populated
_________________________
UGN Security, Elite Web Gamers & VNC Web Design Owner
Longtime UBB Supporter, UBB7 Beta Tester & Resident Post-A-Holic

Top


Shout Box

Today's Birthdays
brushie, cass, Monte G., twebman, White Gold Wielder
Recent Topics
Shrinking graemlins
by Djuma
Today at 05:48 PM
2 problems I'm seeing now.
by DougMM
Today at 04:39 PM
Which CSS Style Controls the bottom lines
by David DelMonte
Today at 01:51 PM
UBBThreads vs. vBulletin -- Defections & Why So Tough to Compare?
by WebMagic
Today at 12:28 PM
Font and column shifts occuring
by Bill B
Yesterday at 06:21 PM
Forum Stats
4261 Members
33 Forums
30532 Topics
154962 Posts

Max Online: 978 @ 06/24/07 08:19 PM