Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> phpnuke 7.0
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

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







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

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

www.porcupinepc.com/forums
 
Raven
Site Admin/Owner



Joined: Aug 27, 2002
Posts: 17088

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

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
Agent001Fox
Hangin' Around



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

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

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







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

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`
 
Agent001Fox







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

That did it! Thanx for your quik reply and good help! Wink
You are the king... Razz
 
Raven







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

Make sure you do the same for faqcategories.
 
Agent001Fox







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

Already done that.... Very Happy
 
Psycho
Worker
Worker



Joined: May 27, 2006
Posts: 157

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

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







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

What version of nuke and fix pack are you using?
 
Psycho







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

version 7.6 and i dont know what the fix pack is let alone using it.
 
Display posts from previous:       
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> phpnuke 7.0

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
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©