• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!
  • 2026 staff recruitment is open! Check it out and consider applying!

Help with gesior thx

Willeee

New Member
Joined
Jan 13, 2011
Messages
42
Reaction score
1
Code:
Fatal error: Cannot redeclare microtime_float() (previously declared in /var/www/index.php:10) in /var/www/index.php on line 299

What to do? Rep++ If helped
 
Last edited:
Execute this on phpMyAdmin:

PHP:
ALTER TABLE `accounts` 
ADD `rlname` INT( 11 ) NOT NULL ;

Will create a column "rlname" in table accounts.
see if it works ...

If you get different errors, post here !
 
Last edited:
i got this error now :l
Code:
Notice: Undefined index: action in /var/www/index.php on line 14 Notice: Undefined index: account_login in /var/www/index.php on line 36 Notice: Undefined index: password_login in /var/www/index.php on line 37 Notice: Undefined variable: main_content in /var/www/latestnews.php on line 17 Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[42S22]: Column not found: 1054 Unknown column 'g.logo_gfx_name' in 'field list'' in /var/www/latestnews.php:29 Stack trace: #0 /var/www/latestnews.php(29): PDO->query('SELECT `g`.`id`...') #1 /var/www/index.php(64): include('/var/www/latest...') #2 {main} thrown in /var/www/latestnews.php on line 29

Should i post any index.php or something?
 
Replace your index.php
and
Execute this on phpMyAdmin:
PHP:
ALTER TABLE `z_news_ticket_tickers`
ADD `logo_gfx_name` INT( 11 ) NOT NULL ;

See if it works, put something there !
 
Last edited:
This is the only error left i got now =).
Code:
Fatal error: Cannot redeclare microtime_float() (previously declared in /var/www/index.php:10) in /var/www/index.php on line 299
Should i put the index.php here?
 
Please help me with
Code:
Fatal error: Cannot redeclare microtime_float() (previously declared in /var/www/index.php:10) in /var/www/index.php on line 299

i would be very VERY glad if someone helped me.. i would fucking love everything :3 .
 
Last edited:
This is the only thing that is at line 299 in my index php:
Code:
}

And this at line 10
Code:
list($usec, $sec) = explode(" ", microtime());
 
280-320 =
Code:
  window.location = path;
}
var';
if($logged) { $layout_header .= "loginStatus=1; loginStatus='true';"; } else { $layout_header .= "loginStatus=0; loginStatus='false';"; };
$layout_header .= "var activeSubmenuItem='".$subtopic."';  var IMAGES=0; IMAGES='".$config['server']['url']."/".$layout_name."/images'; var LINK_ACCOUNT=0; LINK_ACCOUNT='".$config['server']['url']."';</script>";
include($layout_name."/layout.php");
ob_end_flush();
?>
<?PHP
//start :)
//phpinfo();
//exit;
session_start();
ob_start("ob_gzhandler");
//require('./exaBD.php');
function microtime_float()
{
    list($usec, $sec) = explode(" ", microtime());
    return ((float)$usec + (float)$sec);
}
$time_start = microtime_float();
//##### CONFIG #####
include('config-and-functions.php');
$action = $_REQUEST['action'];
//##### LOGOUT #####
if($action == "logout") {
unset($_SESSION['account']);
unset($_SESSION['password']);
}
//##### LOGIN #####
//check is player logged
$logged = FALSE;
if(isset($_SESSION['account'])) {
	$account_logged = $ots->createObject('Account');
	$account_logged->load($_SESSION['account']);
	if($account_logged->isLoaded() && $account_logged->getPassword() == $_SESSION['password']) {
		$logged = TRUE;
		$group_id_of_acc_logged = $account_logged->getPageAccess();
	}
	else
	{
 
Remove:
PHP:
function microtime_float()
{
    list($usec, $sec) = explode(" ", microtime());
    return ((float)$usec + (float)$sec);
}
 
But now i got this error instead :l

Code:
Notice: Undefined index: action in /var/www/index.php on line 16 Notice: Undefined index: account_login in /var/www/index.php on line 40 Notice: Undefined index: password_login in /var/www/index.php on line 41 Notice: Undefined variable: main_content in /var/www/latestnews.php on line 17 Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[42S22]: Column not found: 1054 Unknown column 'g.logo_gfx_name' in 'field list'' in /var/www/latestnews.php:29 Stack trace: #0 /var/www/latestnews.php(29): PDO->query('SELECT `g`.`id`...') #1 /var/www/index.php(70): include('/var/www/latest...') #2 {main} thrown in /var/www/latestnews.php on line 29
 
Back
Top