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, 566 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 - Unable to save Faq Questions? Read this! [ ]
 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
Raven
General
General


Joined: Mar 22, 2003
Posts: 5233

Location: USA

PostPosted: Sat Jul 05, 2003 12:09 pm Reply with quoteBack to top

If you find that you are unable to save FAQ Q and A's, do this:

Check the next auto increment value. If it says 127, you will not be able to save any more entries. This is because the default nuke sql creates the field 'id' as a SIGNED tinyint, which means the values range from -128 to +127. The quick fix is to change it to UNSIGNED, using phpMyAdmin. This will give you a max value of 255. This is short sightedness on the part of the author, in a way. It assumes your FAQ's won't grow very big! Changing it to a smallint, unsigned will remedy it forever, unless you plan to have more than 65535 entries Smile.

_________________
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
gr82meetu78
Nuke Soldier
Nuke Soldier


Joined: Nov 09, 2003
Posts: 16


PostPosted: Tue Nov 11, 2003 11:25 pm Reply with quoteBack to top

Thats not exactly accurate.
If you are on a 32 bit Intel based processor thats correct, but some people aren't, for instance if you are on the new AMD 64 bit processor (running in full 64 bit mode) that number doubles, same thing with Itanium too I think. Also I think that SMNP (multi threaded multi processor systems) will give a different value.

If heaven forbid you are on a 16 bit processor (unlikely but I did see one not too long ago) that number is cut in half.

But the fix is absolutely right on, you can change that value from tiny int to int and get a MUCH bigger address space with which to work. Mr. Green
Find all posts by gr82meetu78View user's profileSend private messageVisit poster's website
Doc34thFIST
Nuke Cadet
Nuke Cadet


Joined: Nov 02, 2003
Posts: 4


PostPosted: Sun Dec 07, 2003 8:54 pm Reply with quoteBack to top

Hello,

Ok i have this error which stops us from posting to the FAQ as admins.

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


Now i went into the php admin and saw aht it was a tinyint with a 3 tinyint(3).

Ok i am editing cuz i found the signed part. Ok i did that but i am still getting the error from above.
This is on the 7.0 PHP_nuke with no faq's at all
Thank you for taking the time to help
Find all posts by Doc34thFISTView user's profileSend private message
w00tie
Nuke Cadet
Nuke Cadet


Joined: Dec 05, 2003
Posts: 8


PostPosted: Mon Dec 08, 2003 1:54 am Reply with quoteBack to top

same problem here, doc
Find all posts by w00tieView user's profileSend private message
Doc34thFIST
Nuke Cadet
Nuke Cadet


Joined: Nov 02, 2003
Posts: 4


PostPosted: Tue Dec 09, 2003 11:01 am Reply with quoteBack to top

Can some one help me please?
Find all posts by Doc34thFISTView user's profileSend private message
kornyman14
Nuke Cadet
Nuke Cadet


Joined: Dec 04, 2003
Posts: 5


PostPosted: Sun Dec 14, 2003 9:12 pm Reply with quoteBack to top

EASY fix... in the table structure make sure faq_Answers and faq_Categories are both capitalized... by default they ARE NOT!
Find all posts by kornyman14View user's profileSend private message
Doc34thFIST
Nuke Cadet
Nuke Cadet


Joined: Nov 02, 2003
Posts: 4


PostPosted: Sun Dec 14, 2003 9:46 pm Reply with quoteBack to top

Thank you very much it worked
Find all posts by Doc34thFISTView user's profileSend private message
ffbguru
Nuke Cadet
Nuke Cadet


Joined: Dec 15, 2003
Posts: 1


PostPosted: Mon Dec 15, 2003 12:57 am Reply with quoteBack to top

Worked like a champ. Thanks for the help.
Find all posts by ffbguruView user's profileSend private message
tunamaxx
Nuke Cadet
Nuke Cadet


Joined: May 21, 2003
Posts: 5


PostPosted: Tue Dec 16, 2003 3:41 pm Reply with quoteBack to top

This may sound like a dumb question, but I just solved the same issue using this fix that says to uncapitalize all instances of _faqCategories & _faqAnswer in a few files.

So what is the *best* way to do it? Modify the files or the database?
Find all posts by tunamaxxView user's profileSend private message
Ewout
Private
Private


Joined: Jan 17, 2004
Posts: 47


PostPosted: Sun Feb 22, 2004 4:51 am Reply with quoteBack to top

This is far more work to do.......

just apply these lines on your DB

Code:
ALTER TABLE `nuke_faqanswer` RENAME `nuke_faqAnswer`

and
Code:
ALTER TABLE `nuke_faqcategories` RENAME `nuke_faqCategories`
Find all posts by EwoutView user's profileSend private message
djmillett
Nuke Cadet
Nuke Cadet


Joined: May 28, 2003
Posts: 7


PostPosted: Sat Mar 06, 2004 2:42 pm Reply with quoteBack to top

Thank you Ewout! Worked great.
Find all posts by djmillettView user's profileSend private messageVisit poster's website
Vaccafoeda
Nuke Soldier
Nuke Soldier


Joined: Jan 21, 2004
Posts: 18


PostPosted: Fri Mar 12, 2004 5:52 pm Reply with quoteBack to top

I've altered both tables, but I still get the same error as stated above...

Using Php Nuke 7.0
Find all posts by VaccafoedaView user's profileSend private message
XtraX
Lieutenant
Lieutenant


Joined: Aug 23, 2003
Posts: 195


PostPosted: Fri Mar 12, 2004 6:44 pm Reply with quoteBack to top

Ok so you edited the MYSQL Table to faAnswer and FaqCategories go into the admin>modules> folder and find AdminFaq.php check to make sure they are the same there as well as the module>faq it self this should do the trick

XtraX
Find all posts by XtraXView user's profileSend private message
Vaccafoeda
Nuke Soldier
Nuke Soldier


Joined: Jan 21, 2004
Posts: 18


PostPosted: Fri Mar 12, 2004 8:06 pm Reply with quoteBack to top

Yep, still get this error :

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

I edited every notion of Faq_Categories and Faq_answers in the adminfaq.php and the index.php in the modules>faq directory.

Any thing that I missed?
Find all posts by VaccafoedaView user's profileSend private message
Vaccafoeda
Nuke Soldier
Nuke Soldier


Joined: Jan 21, 2004
Posts: 18


PostPosted: Fri Mar 12, 2004 8:19 pm Reply with quoteBack to top

Ok, I got it fixed...

For some reason in the faq_categories table there was a...

' <--- can barely see it, but it was at the end of categories, once I took it out everything worked fine.
Find all posts by VaccafoedaView 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.218 Seconds - 266 pages served in past 5 minutes. Nuke Cops Founded by Paul Laudanski (Zhen-Xjell)
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::