Previous Thread
Next Thread
Print Thread
Hop To
Joined: Jun 2010
Posts: 2
stranger
stranger
Joined: Jun 2010
Posts: 2
Hi there, I'm one of two developers working on DreamLyrics Message Gaming.

http://www.dreamlyrics.com/forums/

The site used to run on UBB.classic, which apparently had in-built archiver tool (for creating offline archives of forums). We've been tasked with bringing this feature to the new UBB.threads site, but we're running short on man-hours.

Our plan is to simply use HTTrack to generate the archives, but we need spider-friendly URLs to be able to constrain HTTrack (otherwise it'll run off and archive the half the site ;)).

We've tried enabling spider-friendly URLs on the test site, but get the following error when loading any forum page:

CGI Error
The specified CGI application misbehaved by not returning a complete set of HTTP headers.


We're aware of the proviso in the CP:

"Note: The PATH_INFO environmental variable must be available for this feature to function properly."

The site is running v7.4.1 on an IIS server (we have no choice in this matter) and PHP info is reporting cgi_fix.pathinfo is enabled (1).

Can anyone give us some pointers on how to get spider-friendly URLs working?

Last edited by nemarsde; 06/14/2010 4:44 PM.
Joined: Jun 2006
Posts: 9,242
Likes: 1
R
Former Developer
Former Developer
R Offline
Joined: Jun 2006
Posts: 9,242
Likes: 1
Hmm, if you bring up a phpinfo() page is it actually filling in the PATH_INFO variable?

Joined: Jun 2010
Posts: 2
stranger
stranger
Joined: Jun 2010
Posts: 2
Hi Rick. From a phpinfo() page, the ORIG_PATH_INFO displays a path that matches the location of phpinfo.php file.

Joined: Jun 2006
Posts: 9,242
Likes: 1
R
Former Developer
Former Developer
R Offline
Joined: Jun 2006
Posts: 9,242
Likes: 1
Hmm, at that point it might require a bit of debugging to see what it's actually sending to the browser resulting in the error. If you want to open a support ticket with ftp and forum admin info we can debug a bit and take a look.

Joined: Dec 2003
Posts: 6,565
Likes: 78
Joined: Dec 2003
Posts: 6,565
Likes: 78
Is not the version 7.4.1 prior to the fix that was applied to use orig_path_info for the iis servers?
File was ubbthreads.inc.php
Should have a line like
PHP Code
$PATH_INFO = array_get($_SERVER, 'ORIG_PATH_INFO', '');
 

Last edited by Ruben; 06/15/2010 2:17 PM. Reason: Added comment

Blue Man Group
There is no such thing as stupid questions. Just stupid answers
Joined: Aug 2005
Posts: 4
P
Pak Offline
Stranger
Stranger
P Offline
Joined: Aug 2005
Posts: 4
Hi - I'm one of the other developers/administrators on that board.
Originally Posted by Ruben
Is not the version 7.4.1 prior to the fix that was applied to use orig_path_info for the iis servers?
File was ubbthreads.inc.php
Should have a line like
PHP Code
$PATH_INFO = array_get($_SERVER, 'ORIG_PATH_INFO', '');
 
Our copy of the ubbthreads.inc.php file does not have that line. Does that mean that if we upgrade to the current version of ubbthreads, we can get spider-friendly URLs working?

Joined: Dec 2003
Posts: 6,565
Likes: 78
Joined: Dec 2003
Posts: 6,565
Likes: 78
As I recall you can edit the line .
Your version probably is
PHP Code
$PATH_INFO = array_get($_SERVER, 'PATH_INFO', '');
 
Just edit it to what I posted and give it a try.


Blue Man Group
There is no such thing as stupid questions. Just stupid answers
Joined: Dec 2003
Posts: 6,565
Likes: 78
Joined: Dec 2003
Posts: 6,565
Likes: 78
FYI, The fix does not work on all windows servers depends on how the host set up the permissions.
Due to security issues with windows.
Thanking Bill Gates.

That is why I switched from a windows host to a linux host.
It never did work at all, No matter what value I used.


Blue Man Group
There is no such thing as stupid questions. Just stupid answers
Joined: Aug 2005
Posts: 4
P
Pak Offline
Stranger
Stranger
P Offline
Joined: Aug 2005
Posts: 4
I've edited the line to read
PHP Code
$PATH_INFO = array_get($_SERVER, 'ORIG_PATH_INFO', ''); 
I also disabled the "Verify that file exists" checkbox for the web site in IIS, and turned on spider-friendly URLs in the site, but when I browse to the main forums, I get the CGI error as before for the test site URL
Code
http://test.dreamlyrics.co.uk/forums/ubbthreads.php/forum_summary

Joined: Dec 2003
Posts: 6,565
Likes: 78
Joined: Dec 2003
Posts: 6,565
Likes: 78
Well then you can let Rick give a try as he suggested. But you will need to open a support ticket with access info.
I just suggested this fix since it works on some windows servers.
If the value is available. So it appears in your case it is not.

Memory reminds me the issue with iis is the script mapping value.
If you enable it it opens the site to security issues.
But it was dependent on what versions you were running. IIS5 or IIS6 or IISx.



Blue Man Group
There is no such thing as stupid questions. Just stupid answers
Joined: Aug 2005
Posts: 4
P
Pak Offline
Stranger
Stranger
P Offline
Joined: Aug 2005
Posts: 4
Hi Ruben
Originally Posted by Ruben
FYI, The fix does not work on all windows servers depends on how the host set up the permissions.
Due to security issues with windows.
Thanking Bill Gates.

That is why I switched from a windows host to a linux host.
It never did work at all, No matter what value I used.
Does that mean you don't know what permissions you need to get it to work, or that despite applying the permissions, nothing changed? If the former, could you let us know what permissions need to be applied, and to what?

Joined: Dec 2003
Posts: 6,565
Likes: 78
Joined: Dec 2003
Posts: 6,565
Likes: 78
It is hard to tell from my perspective.
When I was on a windows host I had limited access to the server settings.
My previous host did not even know what path_info was.
They were willing to change settings on my direction from research I did. But as I recall there was a roadblock that the version I was on did not recommend the changes needed from microsoft.
And cgi_fix was one of the values to address.
There was another value I found in pathinfo that looked promising ,can't recall what it was but it did not work either.

So I gave up on a futile attempt to get it working. And switched to a linux server.

There are some people here that use iss and have friendly urls working. But I don't think most of them know why it does work it just does.

So like I said Rick can peek under the hood if he has access and may find another value to use.

Bottom line is for a test looking here just add /pak to the url
You will see you do not get a 404 error.
Try it at your test site and you do.


Blue Man Group
There is no such thing as stupid questions. Just stupid answers
Joined: Dec 2003
Posts: 6,565
Likes: 78
Joined: Dec 2003
Posts: 6,565
Likes: 78
HERE is one post on the subject that may help.
It is a old post but...


Blue Man Group
There is no such thing as stupid questions. Just stupid answers
Joined: Jun 2006
Posts: 869
old hand
old hand
Joined: Jun 2006
Posts: 869
how do we tell if it is working or not?


http://clubadventist.com/forums

No longer following the carrot
Joined: Dec 2003
Posts: 6,565
Likes: 78
Joined: Dec 2003
Posts: 6,565
Likes: 78


Blue Man Group
There is no such thing as stupid questions. Just stupid answers
Joined: Jun 2006
Posts: 869
old hand
old hand
Joined: Jun 2006
Posts: 869
thanks!


http://clubadventist.com/forums

No longer following the carrot
Joined: Jul 2010
Posts: 1
G
stranger
stranger
G Offline
Joined: Jul 2010
Posts: 1
I agree with you.I just suggested this fix since it works on some windows servers.


Link Copied to Clipboard
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
Version 7.7.5 Images suddenly not displaying
by Stovebolt - 05/04/2024 11:19 AM
Bots
by Outdoorking - 04/13/2024 5:08 PM
Can you add html to language files?
by Baldeagle - 04/07/2024 2:41 PM
Do I need to rebuild my database?
by Baldeagle - 04/07/2024 2:58 AM
This is not a bug, but a suggestion
by Baldeagle - 04/05/2024 11:25 PM
Who's Online Now
4 members (Gizmo, Ruben, Baldeagle, 1 invisible), 677 guests, and 184 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
Los Angeles
Los Angeles
by isaac, August 6
3D Creations
3D Creations
by JAISP, December 30
Artistic structures
Artistic structures
by isaac, August 29
Stones
Stones
by isaac, August 19
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20240505)