thanks Mark,

that did it !

Same thing here, only slightly different.
I have 2 instances of punbb 1.2.10 running on the same server, one runs without any glitches but the other constantly reports Error: Unable to write configuration cache file to cache directory. Please make sure PHP has write access to the directory 'cache'.
Both cache directories are 777 and inside these the files are chmoded 644 it will work on one instance but not on the other until I chmod the files to 777 in that faulty directory. Strange, any idea why ?

thanks Connorhd I managed to login via safari, but with Firefox mac after deleting the cookies  even a newly created user can't login
I always get the succesful splash screen then it kicks me to the guest page.

I've seen one user login in successfully and another just requested a new pass and still can't login,
delete the second install, renamed the cookie in config.php, repaired the tables etc

I'm puzzled ):-§

I had one install of 1.21 (or 1.22) running in directory x then I installed a version 1.2.6 in a directory y (diferent db)
the new install works fine but when I try login in on the first install it says it logs in succesfully but treats me as a guest, tried resetting the password through pun or directly in phpmyadmin but nogo, nobody can register anymore
-edit- even a new user remains treated as a guest, (forums are hidden)

thanks!

5

(13 replies, posted in PunBB 1.2 troubleshooting)

I've redone it from scratch and it was me at fault at some point
the code after the mod looks like

function get_remote_address()
{
    $remote_address = isset($_SERVER['SHELL']) ? '127.0.0.1' : $_SERVER['REMOTE_ADDR'];

    // If HTTP_X_FORWARDED_FOR is set, we try to grab the first non-LAN IP
    if (!empty($_SERVER['HTTP_X_FORWARDED_FOR']))
    {
        if (preg_match_all('/[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}/', $_SERVER['HTTP_X_FORWARDED_FOR'], $address_list))
        {
            $lan_ips = array('/^0\./', '/^127\.0\.0\.1/', '/^192\.168\..*/', '/^172\.((1[6-9])|(2[0-9])|(3[0-1]))\..*/', '/^10\..*/', '/^224\..*/', '/^240\..*/');
            $address_list = preg_replace($lan_ips, null, $address_list[0]);

            while (list(, $cur_address) = each($address_list))
            {
                if ($cur_address)
                {
                    $remote_address = $cur_address;
                    break;
                }
            }
        }
    }

    return $remote_address;
}

and it seems to behave properly now smile

6

(13 replies, posted in PunBB 1.2 troubleshooting)

Smartys wrote:
#


    $remote_address = isset($_SERVER['SHELL']) ? '127.0.0.1' : $_SERVER['REMOTE_ADDR'];

That's from the email digest code

double $ signs doesn't make you richer in php, one leftover $  was an error but it is still there ...

7

(13 replies, posted in PunBB 1.2 troubleshooting)

argh that did it and so the error message is gone but with it the email-digest too !

8

(13 replies, posted in PunBB 1.2 troubleshooting)

thanks smartys, that did it !
hell this place is even more reactive than textdrive !

thanks a zill !

-m

9

(13 replies, posted in PunBB 1.2 troubleshooting)

upgraded to 1.2 and 1.21 installed trell's mod email-digest it all runs fine but I just noticed that when logging as a guest I get this  error
Notice: Undefined variable: remote_address in /home/user/public_html/ww2/include/functions.php on line 676

Notice: Undefined variable: remote_address in /home/user/public_html/ww2/include/functions.php on line 697

any hint ?