UseBB Community

The official board for UseBB help and discussion

UseBB Community » Bug Reports » [FIXED] Bugs with the Abyss Web Server

[FIXED] Bugs with the Abyss Web Server

Page: 1

Author Post
Member
Registered: Feb 2007
Posts: 10
Location: London, England
So, these 302's I'm getting are odd. They happen most consistently when logging in and out of UseBB but occasionally at other times and, if I set the "Advanced settings" - "Single Forum" they happen continiously, Sometimes a browser refresh will display the page correctly sometimes not. I wonder if they are related to the fact that I am using Abbys web server, or that I am logging in locally (or at least from another PC on the LAN).

Here's a couple of entries from the server log when logging in

Go to login form = OK
Fill in and click [Login] = 302
Reload /usebb/index.php = OK and logged in.

Server log...
192.168.2.2 - - [21/Feb/2007:13:53:17 +0000] "GET /cgi-bin/useBB/panel.php?act=login HTTP/1.1" 200 2967 "" "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727)"
192.168.2.2 - - [21/Feb/2007:13:53:21 +0000] "GET /cgi-bin/useBB/sources/javascript.js HTTP/1.1" 200 5534 "" "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727)"
192.168.2.2 - - [21/Feb/2007:13:53:22 +0000] "POST /cgi-bin/useBB/panel.php?act=login HTTP/1.1" 302 102 "" "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727)"

The login is performed OK (if I manually go back to /UseBB/INdex.php all is OK).

And here, moving to the admin panel:

192.168.2.2 - - [21/Feb/2007:14:02:46 +0000] "GET /cgi-bin/useBB/templates/default/admin.css HTTP/1.1" 200 4435 "" "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727)"
192.168.2.2 - - [21/Feb/2007:14:02:50 +0000] "GET /cgi-bin/useBB/sources/javascript.js HTTP/1.1" 200 5534 "" "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727)"
192.168.2.2 - - [21/Feb/2007:14:02:50 +0000] "POST /cgi-bin/useBB/admin.php HTTP/1.1" 302 102 "" "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727)"

Then a browser refresh and all is well....
192.168.2.2 - - [21/Feb/2007:14:02:54 +0000] "GET /cgi-bin/useBB/admin.php HTTP/1.1" 200 4628 "" "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727)"
192.168.2.2 - - [21/Feb/2007:14:03:00 +0000] "GET /cgi-bin/useBB/sources/javascript.js HTTP/1.1" 200 5534 "" "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727)"
192.168.2.2 - - [21/Feb/2007:14:04:25 +0000] "GET /cgi-bin/useBB/templates/default/gfx/topmenu_bg_reverse.png HTTP/1.1" 304 0 "" "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727)"

This is all a bit beyond me so any suggestions would be appreciated!

Mark.
« Last edit by Dietrich on Wed Feb 21, 2007 6:51 pm. »
Developer
Registered: Apr 2004
Posts: 2243
Location: Belgium
This issue also exists with IIS. A quick fix is to disable the Location header in PHP and only use the <meta /> redirect in HTML by commenting out the lines:

if ( strpos($_SERVER['SERVER_SOFTWARE'], 'Microsoft-IIS') === false )
header('Location: '.$url);


in sources/functions.php near line 2538.

However, there must be a better solution for this (also for IIS) but I haven't figured this out yet. Perhaps, things work as expected when a status code 303 is used along with the Location header.
Member
Registered: Feb 2007
Posts: 10
Location: London, England
Dietrich wrote
A quick fix is to disable the Location header in PHP and only use the <meta /> redirect in HTML by commenting out the lines:

if ( strpos($_SERVER['SERVER_SOFTWARE'], 'Microsoft-IIS') === false )
header('Location: '.$url);


This does indeed stop the 302 error - however (sorry!) I still don't get to the page I should because now IE is telling me that it is httpS (eg. the page url showing in IE is https:///usebbs/index.php - very strange. Undoing the edit in functions.php restores HTTP:// but returns me to the 302 problem. Server log reveals nothing of interest.

Wish I knew more about PHP and Abyss but I'm basic on both (and that's flattering myself) so it's up to you :D
Developer
Registered: Apr 2004
Posts: 2243
Location: Belgium
Could you upload a file with
<?php phpinfo(); ?>

and post the link here?
Member
Registered: Feb 2007
Posts: 10
Location: London, England
Dietrich wrote
Could you upload a file with
<?php phpinfo(); ?>

and post the link here?


http://TheColeBunker.com/cgi-bin/info.php

Let me know when you have it and I'll delete it!
Developer
Registered: Apr 2004
Posts: 2243
Location: Belgium
I fixed this in CVS, along with a workaround for the redirection problem.

You can download a new sources/functions.php using the download link (Links to HEAD).
Member
Registered: Feb 2007
Posts: 10
Location: London, England
Dietrich wrote
I fixed this in CVS, along with a workaround for the redirection problem.


8) You are da MAN 8)

Words fail me (well, apart from these). Thankyou!

BTW: In that brief spell four IP's hit my info.php - you were one (I assume). Time will tell who the rest were :shock:

I guess you can add Abyss to the list that UseBB works with now.

Again my thanks.

Mark.
Developer
Registered: Apr 2004
Posts: 2243
Location: Belgium
I may have reloaded that page a few times. ;)

Abyss will be added to the list once 1.0.5 is released.
Member
Registered: Feb 2007
Posts: 10
Location: London, England
Dietrich wrote
I may have reloaded that page a few times. ;)


No, there were hits from several different IP's. I'm guessing that you were the Linux/Firefox user.

But there were others creeping around, including "Yahoo! Slurp; ://help.yahoo.com/help/us/ysearch/slurp" which maybe the Yahoo crawler since it grabbed robots.txt as well but I wonder why it went for info.php. Ah well, life online is never dull :D

Getting a bit off topic now..

Mark.
Member
Registered: Jan 2007
Posts: 13
Location: Assen, The Netherlands
It was me i guess :) just checking your webspace :)

Page: 1

UseBB Community » Bug Reports » [FIXED] Bugs with the Abyss Web Server

UseBB Community is powered by UseBB 1 Forum Software