1

(1 replies, posted in PunBB 1.2 troubleshooting)

I think I found the cause and a solution. It would seem that the get_remote_address() function wasn't returning the remote address. I changed it to this:

function get_remote_address()
{
    $remote_address = isset($_SERVER['SHELL']) ? '127.0.0.1' : $_SERVER['REMOTE_ADDR'];
    return $remote_address; // I added this line
}

and tried a test registration, and my IP appeared in the database. Weird. Any ideas as to why the unchanged code returns $remote_address in most cases, but not in mine? I should add that I've got another PunBB forum running on a seperate server without the return $remote_address in there and all is fine...

Thanks

Charles

2

(1 replies, posted in PunBB 1.2 troubleshooting)

Hi,

I've just started up a new forum and an announcement message went out today on a mailing list. Since then I've had several users complain that they've recieved the "A new user was registered with the same IP address as you..." error, even though no one has registered with the same IP address as them in the last hour. On further investigation, it looks like IP addresses aren't being logged, or aren't being logged properly. When logged in as admin, I don't see IP addresses next to posts, and there is simply a blank space where the IP should be in the IP stats. Update: I've just checked the users table and there are no IPs in there either.

Any ideas on what could be going on here? The forum is here: http://forums.nbn.org.uk. The base URL is entered correctly; exactly as it's written here, without trailing slash. Other than this, the forum is working fine.

Any help greatly appreciated.

Charles