Quote:
Today at 12:02 PM Blaine0002 said this in Post #2237
ahh! bytsys, i was trying to fix the $key error and now im getting an error message
Fatal error: Cannot redeclare getlevel() (previously declared in /home/gusxtwo/public_html/forums/admin/functions.php:472) in /home/gusxtwo/public_html/forums/admin/functions.php on line 492
|
Did you re-run the install file? It looks like you have getlevel() in there twice. To fix it, do the following:
In admin/functions.php, find the following twice:
PHP Code:
// ###################### Start getlevel #######################
// This function is for the RPG Integration Hack by Bitsys.
// It calculates the level of a person, given their experience
// and the rate of experience gain. It can return float or int.
function getlevel($experience, $exprate=3, $returnfloat=0) {
if($returnfloat) {
if($experience > 0) {
return pow( log10( $experience), floor( $exprate));
} else {
return 0;
}
} else {
if($experience > 0) {
return floor( pow( log10( $experience), floor( $exprate))) + 1;
} else {
return 1;
}
}
}
When you have found it twice, delete one of the instances of it.
If that fixes it, then we can try to figure out what is wrong with the $key.