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

You are Anonymous user. You can register for free by clicking here
Nuke Cops :: View topic - Center Forum Block getting mysql_fetch_rows() warning [ ]
 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
Bradleyscott
Nuke Cadet
Nuke Cadet


Joined: Aug 05, 2005
Posts: 2


PostPosted: Mon Aug 08, 2005 1:30 pm Reply with quoteBack to top

I have Nuke 7.6 running (just installed). I haven't used 7.6 yet the last I had was 6.5.

Well I cannot find the updated Center Forum Block for 7.6 (i have a hard time finding anything for Nuke since everything is so spread all over for different versions of nuke, etc).

So after exhausting hours of searching for the updated Center forums Block (non scrolling). I went ahead an used the 6.5b6+ version. It works, except it is giving me the following warnings:

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

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

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


That appears above the block output that does render below.


The site it is on is the follwing:

http://www.xfactorleagues.com/index.php

The site used to be an all phpnuke site, but then I tried Xoops for a bit and now am ready to switch back and start anew. All I need to finish off this site (before the design anyway) is to get the Recent Forum Posts Center Block working...

Thanks for your help,

Brad
Find all posts by BradleyscottView user's profileSend private message
Bradleyscott
Nuke Cadet
Nuke Cadet


Joined: Aug 05, 2005
Posts: 2


PostPosted: Tue Aug 09, 2005 3:41 pm Reply with quoteBack to top

Well after doing another full day of research I finally found the piece of code that helped me break this wide open....

Code:
case "MySQL":
        if ( $row = mysql_fetch_row($res)) {
        return $row;


That was the area in the sql_layer.php file where there was an issue. It was giving me a generic warning.

so I added the following:

Code:
} else {
    print (mysql_error());
    }
    break;;


This basically gave me a specific error message. That is when I found that it was the user table prefix that was messed up. It was reading the regular prefix and not my user prefix (different for multiple nuke installs).

So after changing the $prefix_ to the user prefix variable, I was good and the problem is solved.
Find all posts by BradleyscottView user's profileSend private message
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.335 Seconds - 308 pages served in past 5 minutes. Nuke Cops Founded by Paul Laudanski (Zhen-Xjell)
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::