Hey all I am having issues with nukeladder can anyone help me out here. If you need the download of the nukeladder click here http://www.fraghq.com/Nukeladder10.zip
I keep getting errors throughout this module even though it all works fine. Well still a few bugs here and there. But if anyone can fix this mod and make compatable with 6.5 and up. Would appreciate all the help I can get. I am running 6.7 on one site that I would like to have it on.
this is the error I get on the link above. which is on 6.5
Code:
Fatal error: Call to a member function on a non-object in /home/"database"/public_html/league1/mainfile.php on line 522
but on the 6.7 i get an error
Code:
Fatal error: Call to a member function on a non-object in /usr/home/"database"/htdocs/mainfile.php on line 520
any help would be great.
Last edited by Lestat on Sat Aug 30, 2003 10:11 pm; edited 4 times in total
you sure all visitors can view it. And also is active.
Lestat Sergeant
Joined: Aug 31, 2003
Posts: 127
Posted:
Sat Aug 30, 2003 10:25 pm
OK all is active now I seen what you were talking about now. sowwy! click it now.
Lestat Sergeant
Joined: Aug 31, 2003
Posts: 127
Posted:
Sun Aug 31, 2003 7:28 am
does anyone know what would cause this error?
debug mode:
Code:
SQL query: select catid, aid, time, title, hometext, bodytext, game, informant, notes, acomm, haspoll, pollID, score, ratings FROM nuke_ladders where sid=1
SQL query: UPDATE nuke_ladders SET counter=counter+1 where sid=1
SQL query: SELECT game FROM nuke_ladders where sid=1
SQL query: SELECT gameid, gamename, gameimage, gametext FROM nuke_games where gameid=2
Error
Code:
Fatal error: Call to a member function on a non-object in /home/theaon2/public_html/league1/mainfile.php on line 522
mainfile.php
Code:
function cookiedecode($user) {
global $cookie, $prefix, $db, $user_prefix;
$user = base64_decode($user);
$cookie = explode(":", $user);
$sql = "SELECT user_password FROM ".$user_prefix."_users WHERE username='$cookie[1]'";
$result = $db->sql_query($sql);
$row = $db->sql_fetchrow($result);
$pass = $row[user_password];
if ($cookie[2] == $pass && $pass != "") {
return $cookie;
} else {
unset($user);
unset($cookie);
}
}
Line 522
Code:
$result = $db->sql_query($sql);
article.php
Code:
<?php
function getgames2($s_sid) {
global $gamename, $gameimage, $gametext, $prefix, $dbi;
$sid = $s_sid;
$result = sql_query("SELECT game FROM ".$prefix."_ladders where sid=$sid", $dbi);
list($game) = sql_fetch_row($result, $dbi);
$result = sql_query("SELECT gameid, gamename, gameimage, gametext FROM ".$prefix."_games where gameid=$game", $dbi);
list($gameid, $gamename, $gameimage, $gametext) = sql_fetch_row($result, $dbi);
}
/************************************************************************/
/* PHP-NUKE: Web Portal System */
/* =========================== */
/* */
/* Copyright (c) 2002 by Francisco Burzi */
/* http://phpnuke.org */
/* */
/* This program is free software. You can redistribute it and/or modify */
/* it under the terms of the GNU General Public License as published by */
/* the Free Software Foundation; either version 2 of the License. */
/************************************************************************/
if (!eregi("modules.php", $_SERVER['PHP_SELF'])) {
die ("You can't access this file directly...");
}
require_once("mainfile.php");
$module_name = basename(dirname(__FILE__));
get_lang($module_name);
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum