PHP Web Host - Quality Web Hosting For All PHP Applications Just Great Software
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
Post new topic   Reply to topic
Author Message
porcupinepc
Involved
Involved


Joined: Sep 20, 2003
Posts: 261
Location: Schumacher, Ontario CANADA

PostPosted: Wed Dec 10, 2003 9:54 pm Reply with quote Back to top

I was just in the process of adding a FAQ in the admin screen (Nuke 7) and the following showed:

Active FAQs

ID Categories Language Functions

Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in /usr/local/psa/home/vhosts/porcupinepc.com/httpdocs/forums/includes/sql_layer.php on line 286

Line #286 insql_layer.php is:

$row = mysql_fetch_row($res);

Any idea?

Joe
View user's profile Send private message Send e-mail Visit poster's website ICQ Number
porcupinepc
Involved
Involved


Joined: Sep 20, 2003
Posts: 261
Location: Schumacher, Ontario CANADA

PostPosted: Wed Dec 10, 2003 10:34 pm Reply with quote Back to top

Well i found some additional help on another site and thought i would pass it along to the users here:

To start, edit the file sql_layer.php

Go to line 300 and look for the following:

case "MySQL":
$row = mysql_fetch_row($res);
return $row;
break;;

Now, change the code to the following:

case "MySQL":
if ($row = mysql_fetch_row($res)) {
return $row;
} else {
print (mysql_error());
}
break;;

This will show in detail what the problem code is.

Now, here is the solution to the bug:

The problem is with capitalization in the database, find the 2 FAQ tables in the nuke database (nuke_faqanswer and nuke_faqcategories) and make sure the "C" in categories and the "A" in answers are capitalized. Problem solved.


Regards

Joe Robertson
System Admin
Only registered users can see links on this board!
Get registered or login to the forums!
View user's profile Send private message Send e-mail Visit poster's website ICQ Number
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 15235
Location: Kansas

PostPosted: Wed Dec 10, 2003 11:17 pm Reply with quote Back to top

This has been there since v6.5. As with the avatar issue, FB continues to not address the known bugs. Too bad.
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
Agent001Fox
Hangin' Around


Joined: Dec 17, 2003
Posts: 29
Location: Stockholm - Sweden

PostPosted: Wed Jan 14, 2004 6:35 am Reply with quote Back to top

How can I change the table name through PhpMyAdmin?
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 15235
Location: Kansas

PostPosted: Wed Jan 14, 2004 6:42 am Reply with quote Back to top

Depends on your version of phpmyadmin. You need to see a tab called Operations. If there is a Properties icon on the line that has the table name then click on that. Or, just clicking the table name in the left frame should do the same thing. That should bring up that tab. Or, just run this query in the SQL window
Code:
ALTER TABLE `nuke_faqanswer` RENAME `nuke_faqAnswer`
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
Agent001Fox
Hangin' Around


Joined: Dec 17, 2003
Posts: 29
Location: Stockholm - Sweden

PostPosted: Wed Jan 14, 2004 6:46 am Reply with quote Back to top

That did it! Thanx for your quik reply and good help! Wink
You are the king... Razz
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 15235
Location: Kansas

PostPosted: Wed Jan 14, 2004 6:51 am Reply with quote Back to top

Make sure you do the same for faqcategories.
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
Agent001Fox
Hangin' Around


Joined: Dec 17, 2003
Posts: 29
Location: Stockholm - Sweden

PostPosted: Wed Jan 14, 2004 6:57 am Reply with quote Back to top

Already done that.... Very Happy
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
Psycho
Worker
Worker


Joined: May 27, 2006
Posts: 157

PostPosted: Tue May 30, 2006 5:26 am Reply with quote Back to top

I renamed the faq_answer and faq_categories and i still get same message with the sql_layer.php thing!
View user's profile Send private message Send e-mail
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 15235
Location: Kansas

PostPosted: Tue May 30, 2006 5:37 am Reply with quote Back to top

What version of nuke and fix pack are you using?
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
Psycho
Worker
Worker


Joined: May 27, 2006
Posts: 157

PostPosted: Fri Jun 09, 2006 12:32 pm Reply with quote Back to top

version 7.6 and i dont know what the fix pack is let alone using it.
View user's profile Send private message Send e-mail
Display posts from previous:       
Post new topic   Reply to topic

View next topic
View previous 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
Forums ©
 

All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2002-2008 by Raven
Proud to be listed at Lobo Links Web Directory

You can syndicate our news using the file xml

CSE HTML Validator Helped Clean up This Page! [Valid RSS] valid RSS 2.0 Valid robots.txt Stop Spam Harvesters, Join Project Honey Pot

Website engines core code is © copyright by PHP-Nuke but has been heavily patched and modified by myself and others.
PHP-Nuke is a free software released under the GNU/GPL.


:: fisubice phpbb2 style by Daz :: PHP-Nuke theme by www.nukemods.com ::

:: fisubice Theme Recoded To 100% W3C CSS & HTML 4.01 Transitional Compliance by Raven and 64bitguy ::

:: W3C CSS Compliance Validation :: W3C HTML 4.01 Transitional Compliance Validation ::

zerosum