Topic: Can't logon to Administrator
Hi, I just installed a punBB forum (www.smashedcampus.com/SmashedCI/punbb/). I logged in as Administrator but when I try to go to the admin panel I get the following error:
You are not logged in. Please login or register.
PunBB Forums → PunBB 1.2 troubleshooting → Can't logon to Administrator
Hi, I just installed a punBB forum (www.smashedcampus.com/SmashedCI/punbb/). I logged in as Administrator but when I try to go to the admin panel I get the following error:
I'm not sure (since that's not an error) but perhaps it has something to do with your modifications?
I posted the wrong thing, sorry! This is the error:
An error was encountered
Error: Unable to fetch online count.
Enable debug mode, paste the full error
File: /mnt/w0703/d14/s24/b028dad5/www/smashedcampus.com/SmashedCI/punbb/admin_index.php
Line: 96
PunBB reported: Unable to fetch online count
Database reported: Lost connection to MySQL server during query (Errno: 2013)
That's an issue with your host (which I would guess is Netfirms, since they seem to be the only host with this issue)
http://punbb.org/forums/viewtopic.php?pid=82594#p82594
http://punbb.org/forums/viewtopic.php?pid=82621#p82621
http://punbb.org/forums/viewtopic.php?pid=82623#p82623
You'll need to make at least the first change, the second and third are necessary only if you continue to get errors
I made all those changes, but after the last one I got this error:
File: /mnt/w0703/d14/s24/b028dad5/www/smashedcampus.com/SmashedCI/punbb/header.php
Line: 162
PunBB reported: Unable to fetch reports info
Database reported: Lost connection to MySQL server during query (Errno: 2013)
That's odd: I'm curious though, since that makes me think the underlying problem isn't with the queries.
Try undoing all of those changes and doing the following:
FIND
// Get the server load averages (if possible)
if (@file_exists('/proc/loadavg') && is_readable('/proc/loadavg'))
{
// We use @ just in case
$fh = @fopen('/proc/loadavg', 'r');
$load_averages = @fread($fh, 64);
@fclose($fh);
$load_averages = @explode(' ', $load_averages);
$server_load = isset($load_averages[2]) ? $load_averages[0].' '.$load_averages[1].' '.$load_averages[2] : 'Not available';
}
else if (!in_array(PHP_OS, array('WINNT', 'WIN32')) && preg_match('/averages?: ([0-9\.]+),[\s]+([0-9\.]+),[\s]+([0-9\.]+)/i', @exec('uptime'), $load_averages))
$server_load = $load_averages[1].' '.$load_averages[2].' '.$load_averages[3];
else
$server_load = 'Not available';
REPLACE WITH
$server_load = 'Not available';
Bingo bango.
Thanks for the help Smarty's.
Wow, that worked?
OK, I'll just make sure we figure out why this is for 1.3
codelearn: If it's not too much trouble, could you run the following PHP script
<?php
exec('uptime')
and report back what the output was? It should help us figured out why admin_index.php is failing for your host
PunBB Forums → PunBB 1.2 troubleshooting → Can't logon to Administrator
Powered by PunBB, supported by Informer Technologies, Inc.