Login     Sign up
Fatal error in mydomain.com/member
Eliz zeta (@eliz)
Join date: Nov 29th 2010
Community posts: 153
View Profile
Send Message

i get this error in this url : mydomain.com/member
(facebook theme)

Fatal error: Call to undefined method member::index() in /home/****/public_html/parejas.name/index.php on line 30

this is the code of index, line 30 is the last : $app->index();

function microtime_float()
{
list($usec, $sec) = explode(" ", microtime());
return ((float)$usec + (float)$sec);
}

//
$time_start = microtime_float();

require_once './includes/boot.inc.php';

// load application
$app = new $parr[0]();
$app->name = $parr[0];
if (is_numeric($parr[1])) {
$app->index($parr[1],$parr[2]);
}
else {
if (!$parr[1]) {
$app->index();
}
else {
$app->$parr1;
}
}

// end
stop_here();
?>

163 months ago
Jcow Master (@falcone)
Join date: Sep 2nd 2010
Community posts: 917
View Profile
Send Message

that is because the class member doesn't have a function called index.

i have some code on my forum to avoid this kind of error messages.

163 months ago
Eliz zeta (@eliz)
Join date: Nov 29th 2010
Community posts: 153
View Profile
Send Message

ok falcone, your the man ยก i will check it .

163 months ago