The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

forum problem

Discussion in 'General Discussion' started by Markwaugh, Oct 25, 2003.

  1. Markwaugh

    Markwaugh Well-Known Member

    Joined:
    Aug 12, 2003
    Messages:
    151
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Sydney, Australia
    Hello guys !

    I have had a problem with my forum logging in the last few months I didnt think much of it as it didnt really bother me, but I made my friend a forum and it is doing the same, I used the control panel script to make a phpbb
    forum, but as soon as you log in and press enter to log in under your name it goes to a error page you have to press back and refesh and then you are loged in, it isnt phbb as it happens on two diffrent scripts for phpbb

    any ideas would be higlyu appreciated. thanks in advance,
     
  2. mickeymouse

    mickeymouse Well-Known Member

    Joined:
    Sep 16, 2003
    Messages:
    389
    Likes Received:
    0
    Trophy Points:
    16
    Dear Markwaugh,

    This problem may be because of the redirection of file. Please try this code in your
    ./includes/function.php file

    Please replace:

    function redirect($url)
    {
    ......
    }
    with
    function redirect($url)
    {
    global $board_config;

    $server_protocol = ($board_config[\'cookie_secure\']) ? \'https://\' : \'http://\';
    $server_name = preg_replace(\'/^/?(.*?)/?$/\', \'1\', trim($board_config[\'server_name\']));
    $server_port = ($board_config[\'server_port\'] 80) ? \':\' . trim($board_config[\'server_port\']) . \'/\' : \'/\';
    $script_name = preg_replace(\'/^/?(.*?)/?$/\', \'1\', trim($board_config[\'script_path\']));
    //$url = preg_replace(\'/^/?(.*?)/?$/\', \'/1\', trim($url));

    // Redirect via an HTML form for PITA webservers
    if (@preg_match(\'/Microsoft|WebSTAR|Xitami/\', getenv(\'SERVER_SOFTWARE\')))
    {
    header(\'Refresh: 0; URL=\' . $server_protocol . $server_name . $server_port . $script_name . $url);
    echo \'RedirectIf your browser does not support meta redirection please click HERE to be redirected\';
    exit;
    }

    // Behave as per HTTP/1.1 spec for others
    header(\'Location: \' . $url);
    exit;
    }
    Please try this code. Please commant the original code. Dont delete it.

    Regards,
     
  3. henhen

    henhen Member

    Joined:
    Aug 13, 2003
    Messages:
    16
    Likes Received:
    0
    Trophy Points:
    1
    still cant fix.. any ideas ?
     
  4. serveandshare

    serveandshare Registered

    Joined:
    Apr 5, 2008
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    similar problem

    I cannot login to my phpbb admin.

    I receive a "Bad Gateway The following error occurred:
    Code:
      " blah blah blah.
    
    I tried to do a repair on cpanel, that didnt work. (I don't even know if that is what it is for)
    
    when the forum was first installed everything worked fine.   Then this happened. 
    
    
    whaddya figure?:confused:
     
Loading...

Share This Page