You are missing our premiere tool bar navigation system! Register and use it for FREE!

NukeCops  
•  Home •  Downloads •  Gallery •  Your Account •  Forums • 
Readme First
- Readme First! -

Read and follow the rules, otherwise your posts will be closed
Modules
· Home
· FAQ
· Buy a Theme
· Advertising
· AvantGo
· Bookmarks
· Columbia
· Community
· Donations
· Downloads
· Feedback
· Forums
· PHP-Nuke HOWTO
· Private Messages
· Search
· Statistics
· Stories Archive
· Submit News
· Surveys
· Theme Gallery
· Top
· Topics
· Your Account
Who's Online
There are currently, 317 guest(s) and 0 member(s) that are online.

You are Anonymous user. You can register for free by clicking here
Nuke Cops :: View topic - NukeLadder [ ]
 Forum FAQ  •  Search  •   •  Memberlist  •  Usergroups   •  Register  •  Profile •    •  Log in to check your private messages  •  Log in

 
Post new topic  This topic is locked: you cannot edit posts or make replies.printer-friendly view
View previous topic Log in to check your private messages View next topic
Author Message
Lestat
Sergeant
Sergeant


Joined: Aug 31, 2003
Posts: 127


PostPosted: Sat Aug 30, 2003 9:57 pm Reply with quoteBack to top

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

You can view the errors I am getting here (debug mode is on)
http://www.theaon.com/league1/modules.php?name=Ladders&file=article&sid=1

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
Find all posts by LestatView user's profileSend private message
Mesum
Support Staff
Support Staff


Joined: Mar 11, 2003
Posts: 842

Location: Chicago

PostPosted: Sat Aug 30, 2003 10:02 pm Reply with quoteBack to top

Yeah..... module is not active.

_________________
Only FREE Dating site for Desis.
Find all posts by MesumView user's profileSend private messageVisit poster's websiteAIM AddressYahoo MessengerMSN Messenger
Lestat
Sergeant
Sergeant


Joined: Aug 31, 2003
Posts: 127


PostPosted: Sat Aug 30, 2003 10:06 pm Reply with quoteBack to top

you sure all visitors can view it. And also is active.
Find all posts by LestatView user's profileSend private message
Lestat
Sergeant
Sergeant


Joined: Aug 31, 2003
Posts: 127


PostPosted: Sat Aug 30, 2003 10:25 pm Reply with quoteBack to top

OK all is active now I seen what you were talking about now. sowwy! click it now.
Find all posts by LestatView user's profileSend private message
Lestat
Sergeant
Sergeant


Joined: Aug 31, 2003
Posts: 127


PostPosted: Sun Aug 31, 2003 7:28 am Reply with quoteBack to top

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);

if (stristr($REQUEST_URI,"mainfile")) {
    Header("Location: modules.php?name=Ladders&file=article&sid=$sid");
} elseif (!isset($sid) && !isset($tid)) {
    Header("Location: index.php");
}

if ($save AND is_user($user)) {
    cookiedecode($user);
    sql_query("update ".$user_prefix."_users set umode='$mode', uorder='$order', thold='$thold' where uid='$cookie[0]'", $dbi);
    getusrinfo($user);
    $info = base64_encode("$userinfo[uid]:$userinfo[uname]:$userinfo[pass]:$userinfo[laddernum]:$userinfo[umode]:$userinfo[uorder]:$userinfo[thold]:$userinfo[noscore]");
    setcookie("user","$info",time()+$cookieusrtime);
}

if ($op == "Reply") {
    Header("Location: modules.php?name=Ladders&file=comments&op=Reply&pid=0&sid=$sid&mode=$mode&order=$order&thold=$thold");
}

$result = sql_query("select catid, aid, time, title, hometext, bodytext, game, informant, notes, acomm, haspoll, pollID, score, ratings FROM ".$prefix."_ladders where sid=$sid", $dbi);
list($catid, $aid, $time, $title, $hometext, $bodytext, $game, $informant, $notes, $acomm, $haspoll, $pollID, $score, $ratings) = sql_fetch_row($result, $dbi);

if ($aid == "") {
    Header("Location: modules.php?name=Ladders");
}

sql_query("UPDATE ".$prefix."_ladders SET counter=counter+1 where sid=$sid", $dbi);

$artpage = 1;
$pagetitle = "- $title";
require("header.php");
$artpage = 0;

formatTimestamp($time);
$title = stripslashes($title);
$hometext = stripslashes($hometext);
$bodytext = stripslashes($bodytext);
$notes = stripslashes($notes);

if ($notes != "") {
    $notes = "<br><br><b>"._NOTE."</b> <i>$notes</i>";
} else {
    $notes = "";
}
if($bodytext == "") {
    $bodytext = "$hometext$notes<br>";
   
} else {
    $bodytext = "$hometext<br><br>$bodytext$notes";
}

if($informant == "") {
    $informant = $anonymous;
}

getGames2($sid);

if ($catid != 0) {
    $resultx = sql_query("select title from ".$prefix."_ladders_cat where catid='$catid'", $dbi);
    list($title1) = sql_fetch_row($resultx, $dbi);
    $title = "<a href=\"modules.php?name=Ladders&amp;file=categories&amp;op=newindex&amp;catid=$catid\"><font class=\"laddercat\">$title1</font></a>: $title";
   
}
OpenTable();
echo "<table width=\"100%\" border=\"0\"><tr><td valign=\"top\" width=\"100%\">\n";
include('standings.php'); themestandings($aid, $informant, $datetime, $title, $bodytext, $game, $gamename, $gameimage, $gametext);
echo "</td><td>&nbsp;</td><td valign=\"top\">\n";
CloseTable();
if ($multilingual == 1) {
    $querylang = "AND (blanguage='$currentlang' OR blanguage='')";
} else {
    $querylang = "";
}
echo "</td></tr></table>\n";
cookiedecode($user);
if ((($mode != "nocomments") OR ($acomm == 0)) AND ($articlecomm == 1)) {

   include("modules/Ladders/comments.php");
   
}

include ("footer.php");
?>
Find all posts by LestatView user's profileSend private message
sting
Site Admin
Site Admin


Joined: Jul 24, 2003
Posts: 1986

Location: Apparently ALWAYS Online. . .

PostPosted: Sun Aug 31, 2003 5:02 pm Reply with quoteBack to top

Any other staff members out there that can possibly assist with this one?

(bumped)

Thanks,
-sting

_________________
Is it paranoia if they are really out to get you?

-------------------------------------------------------
sting usually hangs out at nukehaven.net
Find all posts by stingView user's profileSend private messageVisit poster's websiteAIM AddressYahoo MessengerMSN MessengerICQ Number
Lestat
Sergeant
Sergeant


Joined: Aug 31, 2003
Posts: 127


PostPosted: Mon Sep 01, 2003 12:09 am Reply with quoteBack to top

Yes can another staff member help me please been awaiting a respnse for awhile now. Atleast sting took the time too look at thanks.
Find all posts by LestatView user's profileSend private message
Lestat
Sergeant
Sergeant


Joined: Aug 31, 2003
Posts: 127


PostPosted: Mon Sep 01, 2003 10:03 am Reply with quoteBack to top

Anyone out there? Shocked
Is everyone stumped on this one? Is there anymore details I need to post?
Find all posts by LestatView user's profileSend private message
Mesum
Support Staff
Support Staff


Joined: Mar 11, 2003
Posts: 842

Location: Chicago

PostPosted: Mon Sep 01, 2003 10:18 pm Reply with quoteBack to top

Ok, I am no guru, but for the sake of helping someone like me out.... I will install this script on my site, play with it and see what's up.

_________________
Only FREE Dating site for Desis.
Find all posts by MesumView user's profileSend private messageVisit poster's websiteAIM AddressYahoo MessengerMSN Messenger
Mesum
Support Staff
Support Staff


Joined: Mar 11, 2003
Posts: 842

Location: Chicago

PostPosted: Mon Sep 01, 2003 10:19 pm Reply with quoteBack to top

Sting, you shocked me brother, this is your first time when you did not post a link to NukeResources.com...... Or so I have seen so far.

_________________
Only FREE Dating site for Desis.
Find all posts by MesumView user's profileSend private messageVisit poster's websiteAIM AddressYahoo MessengerMSN Messenger
Lestat
Sergeant
Sergeant


Joined: Aug 31, 2003
Posts: 127


PostPosted: Tue Sep 02, 2003 5:02 am Reply with quoteBack to top

Excellent someone to help out. YaY!

sorry was excited been 2 days since a response. I would appreciate anyone's help on this one. I am stumped.
Find all posts by LestatView user's profileSend private message
sting
Site Admin
Site Admin


Joined: Jul 24, 2003
Posts: 1986

Location: Apparently ALWAYS Online. . .

PostPosted: Tue Sep 02, 2003 5:59 am Reply with quoteBack to top

Mesum wrote:
Sting, you shocked me brother, this is your first time when you did not post a link to NukeResources.com...... Or so I have seen so far.


Laughing Sorry, must have forgotten that. Will have to start posting it in my tagline.

Oh yeah, I almost forgot - you could check http://www.google.com as well.

-sting

_________________
Is it paranoia if they are really out to get you?

-------------------------------------------------------
sting usually hangs out at nukehaven.net
Find all posts by stingView user's profileSend private messageVisit poster's websiteAIM AddressYahoo MessengerMSN MessengerICQ Number
Lestat
Sergeant
Sergeant


Joined: Aug 31, 2003
Posts: 127


PostPosted: Tue Sep 02, 2003 12:18 pm Reply with quoteBack to top

Any luck?
Find all posts by LestatView user's profileSend private message
lowflow
Private
Private


Joined: Jun 20, 2003
Posts: 37


PostPosted: Tue Sep 02, 2003 6:48 pm Reply with quoteBack to top

I am getting the same error on the Create team page, the email it sends be directs to a 404page. Any help would be greatly appreciated!

Okay nm I fixed the 404error. It was a misspelling in the variables file. Now im just getting this error :

Fatal error: Call to a member function on a non-object in /home/lowflow/public_html/skyraiders/mainfile.php on line 301
Find all posts by lowflowView user's profileSend private messageICQ Number
Lestat
Sergeant
Sergeant


Joined: Aug 31, 2003
Posts: 127


PostPosted: Tue Sep 02, 2003 11:10 pm Reply with quoteBack to top

Yeah I get same error just on a different line. What version you running?
Find all posts by LestatView user's profileSend private message
Display posts from previous:      
Post new topic  This topic is locked: you cannot edit posts or make replies.printer-friendly view
View previous topic Log in to check your private messages View next topic
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



Powered by phpBB © 2001, 2005 phpBB Group

Ported by Nuke Cops © 2003 www.nukecops.com
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::
Powered by TOGETHER TEAM srl ITALY http://www.togetherteam.it - DONDELEO E-COMMERCE http://www.DonDeLeo.com - TUTTISU E-COMMERCE http://www.tuttisu.it
Web site engine's code is Copyright © 2002 by PHP-Nuke. All Rights Reserved. PHP-Nuke is Free Software released under the GNU/GPL license.
Page Generation: 0.048 Seconds - 162 pages served in past 5 minutes. Nuke Cops Founded by Paul Laudanski (Zhen-Xjell)
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::