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, 57 guest(s) and 2 member(s) that are online.

You are Anonymous user. You can register for free by clicking here
Nuke Cops :: View topic - Using Sql Debug- Not sure how to fix problems [ ]
 Forum FAQ  •  Search  •   •  Memberlist  •  Usergroups   •  Register  •  Profile •    •  Log in to check your private messages  •  Log in

 
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
Author Message
Java31
Nuke Soldier
Nuke Soldier


Joined: Aug 01, 2003
Posts: 10


PostPosted: Fri Aug 01, 2003 10:31 am Reply with quoteBack to top

Im getting lots of warnings and sql querys when i turned on my sql debug. But since i know nothing about mysql im not sure how to fix all these problems. I added the phpbb2 user menu block and i want to use it but ive got alot of warning errors with it.

Here are some of the sql warnings:

SQL query: DELETE FROM nuke_session WHERE time < 1059760480
SQL query: SELECT time FROM nuke_session WHERE username='172.XXX.XX.XXX'

Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/tnbreede/public_html/includes/sql_layer.php on line 346
SQL query: INSERT INTO nuke_session (username, time, host_addr, guest) VALUES ('172.XXX.XX.XXX', '1059761380', '172.XXX.XX.XXX', '1')
SQL query: select uname from nuke_users order by uid DESC limit 0, 1

Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in /home/tnbreede/public_html/includes/sql_layer.php on line 286
SQL query: select uid from nuke_users

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/tnbreede/public_html/includes/sql_layer.php on line 238
SQL query: SELECT username, guest FROM nuke_session where guest=0

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/tnbreede/public_html/includes/sql_layer.php on line 238
SQL query: SELECT uid FROM nuke_users order by uid DESC limit 0, 1

Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in /home/tnbreede/public_html/includes/sql_layer.php on line 286

Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/tnbreede/public_html/includes/sql_layer.php on line 346
SQL query: SELECT COUNT(UID) AS userCount from nuke_users WHERE user_regdate LIKE '%Aug%1%2003%'

Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in /home/tnbreede/public_html/includes/sql_layer.php on line 286
SQL query: SELECT COUNT(UID) AS userCount from nuke_users WHERE user_regdate LIKE '%Jul%31%2003%'

Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in /home/tnbreede/public_html/includes/sql_layer.php on line 286
SQL query: SELECT username FROM nuke_session where guest=1

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/tnbreede/public_html/includes/sql_layer.php on line 238
SQL query: SELECT username FROM nuke_session where guest=0

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/tnbreede/public_html/includes/sql_layer.php on line 238



And at the very top of my page i have this showing:

SQL query: select radminsuper from nuke_authors where aid='SiteAdmin'


ANd in the admin section i have this showing up using the iptracker script:

SQL query: create table if not exists nuke_iptracking ( ipid int(10) NOT NULL auto_increment, date_time datetime NOT NULL, ip_address varchar(15) NOT NULL, hostname varchar(100) NOT NULL, page varchar(150) NOT NULL, PRIMARY KEY (ipid), KEY ipid (ipid) )
SQL query: create index i1iptracking on nuke_iptracking (ip_address, hostname)
SQL query: alter table nuke_iptracking add username varchar(25) after ipid
SQL query: insert into nuke_iptracking (username, date_time, ip_address, hostname, page) values('SiteAdmin', '2003-08-01 14:09:40', '172.XXX.XXX.XXX', 'CCCCCCC.ipt.aol.com', '/admin.php?op=BlocksAdmin')
SQL query: select count(*) from nuke_iptracking


ANd finally in my blocks administration i have this showing up:
SQL query: select bid, bkey, title, url, bposition, weight, active, blanguage, blockfile, view from nuke_blocks order by bposition, weight
SQL query: select bid from nuke_blocks where weight='0' AND bposition='l'
SQL query: select bid from nuke_blocks where weight='2' AND bposition='l'

SQL query: select bid from nuke_blocks where weight='1' AND bposition='l'
SQL query: select bid from nuke_blocks where weight='3' AND bposition='l'
SQL query: select bid from nuke_blocks where weight='2' AND bposition='l'
SQL query: select bid from nuke_blocks where weight='4' AND bposition='l'
SQL query: select bid from nuke_blocks where weight='3' AND bposition='l'
SQL query: select bid from nuke_blocks where weight='5' AND bposition='l'
SQL query: select bid from nuke_blocks where weight='4' AND bposition='l'
SQL query: select bid from nuke_blocks where weight='6' AND bposition='l'
SQL query: select bid from nuke_blocks where weight='5' AND bposition='l'
SQL query: select bid from nuke_blocks where weight='7' AND bposition='l'

SQL query: select bid from nuke_blocks where weight='6' AND bposition='l'
SQL query: select bid from nuke_blocks where weight='8' AND bposition='l'
SQL query: select bid from nuke_blocks where weight='7' AND bposition='l'
SQL query: select bid from nuke_blocks where weight='9' AND bposition='l'
SQL query: select bid from nuke_blocks where weight='8' AND bposition='l'
SQL query: select bid from nuke_blocks where weight='10' AND bposition='l'
SQL query: select bid from nuke_blocks where weight='0' AND bposition='r'
SQL query: select bid from nuke_blocks where weight='2' AND bposition='r'
SQL query: select bid from nuke_blocks where weight='1' AND bposition='r'
SQL query: select bid from nuke_blocks where weight='3' AND bposition='r'
SQL query: select bid from nuke_blocks where weight='2' AND bposition='r'
SQL query: select bid from nuke_blocks where weight='4' AND bposition='r'

SQL query: select bid from nuke_blocks where weight='3' AND bposition='r'
SQL query: select bid from nuke_blocks where weight='5' AND bposition='r'
SQL query: select bid from nuke_blocks where weight='4' AND bposition='r'
SQL query: select bid from nuke_blocks where weight='6' AND bposition='r'

SQL query: select bid from nuke_blocks where weight='5' AND bposition='r'
SQL query: select bid from nuke_blocks where weight='7' AND bposition='r'
SQL query: select bid from nuke_blocks where weight='6' AND bposition='r'
SQL query: select bid from nuke_blocks where weight='8' AND bposition='r'




Anyone know how to fix these problems? I also downloaded the script everything showed up fine there. Nothing missing. And i changed my show errors on the sql_layer page.

Thanks,

MK
Find all posts by Java31View user's profileSend private message
Raven
General
General


Joined: Mar 22, 2003
Posts: 5233

Location: USA

PostPosted: Sat Aug 02, 2003 12:15 am Reply with quoteBack to top

Those 'warnings' mean that the attempt to execute the sql query against a certain table (users) was unsuccessful. This can be for various reasons. You don't say what version of nuke you are running, but if you are running v6.5 or later, the script you are running is for pre v6.5 nuke. I know this because this statement SELECT COUNT(UID) will cause that error, since the column UID was changed to USER_ID in 6.5 and later. All of the other things you list are not errors but just successful query messages.

_________________
Those who hear not the music think the dancers mad.
Raven Web Hosting|My Scripts & Stuff
Find all posts by RavenView user's profileSend private messageVisit poster's website
Java31
Nuke Soldier
Nuke Soldier


Joined: Aug 01, 2003
Posts: 10


PostPosted: Sat Aug 02, 2003 8:05 am Reply with quoteBack to top

I just downloaded this version a cpl days ago. Its the newest version of Php-Nuke. Not sure if the script is for it dont remember where i got it from.
Find all posts by Java31View user's profileSend private message
Raven
General
General


Joined: Mar 22, 2003
Posts: 5233

Location: USA

PostPosted: Sat Aug 02, 2003 8:10 am Reply with quoteBack to top

Well, as I said, the script is using pre v6.5 code. If you are using v6.5 tables it will not work. You will need to either modify it yourself or contact the author of the script as we do not support 3rd party scripts here, per se.

_________________
Those who hear not the music think the dancers mad.
Raven Web Hosting|My Scripts & Stuff
Find all posts by RavenView user's profileSend private messageVisit poster's website
Display posts from previous:      
Post new topic  Reply to topicprinter-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
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.181 Seconds - 211 pages served in past 5 minutes. Nuke Cops Founded by Paul Laudanski (Zhen-Xjell)
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::