Welcome, Guest. Please Login or Register.
August 29, 2025, 10:31:53 AM
Home Help Search Log in Register
News: If you are still using YaBB SE, please consider upgrading to SMF as soon as possible.

YaBB SE Community  |  English User Help  |  English Help  |  "Supplied argument is not a valid MySQL result resource" « previous next »
Pages: [1] 2 Reply Ignore Print
Author Topic: "Supplied argument is not a valid MySQL result resource"  (Read 614 times)
szybszy
Noobie
*
Posts: 36


me not llama

"Supplied argument is not a valid MySQL result resource"
« on: April 01, 2002, 06:23:51 AM »
Reply with quote

I can add messages but when I later click on them I get the followig message:

"2: Supplied argument is not a valid MySQL result resource
(/myserver/yabbse/Sources/Display.php ln 57)"

What should I do?

Thanks!!!
Logged
Jeff Lewis
Global Moderator
YaBB God
*****
Posts: 10149


I'm a llama!

WWW
Re:"Supplied argument is not a valid MySQL result resource"
« Reply #1 on: April 01, 2002, 01:51:34 PM »
Reply with quote

Right before line 57, look for the line that has mysql_query and add this below it:

echo "Error: ".mysql_error();

What error does it spit to the screen?
Logged

szybszy
Noobie
*
Posts: 36


me not llama

Re:"Supplied argument is not a valid MySQL result resource"
« Reply #2 on: April 03, 2002, 01:06:18 AM »
Reply with quote

Jeff, how do I find line 57? The text "mysql_query" shows up every second line and I don't want to mess up the whole file. I use Dreamweaver 4 and it doesn't seem to have an easy way to find the exact line. Is it a 57th line out of all lines or only code lines or only code lines without empty lines?

Thanks!
Logged
alexrolko
Guest
Re:"Supplied argument is not a valid MySQL result resource"
« Reply #3 on: April 03, 2002, 01:09:25 AM »
Reply with quote

to edit/look through PHP files i suggest you download editplus... http://www.editplus.com it shows you the line numbers. and is what the Dev's here use to code YaBB SE.
Logged
szybszy
Noobie
*
Posts: 36


me not llama

Re:"Supplied argument is not a valid MySQL result resource"
« Reply #4 on: April 03, 2002, 01:26:25 AM »
Reply with quote

Thanks Jeff and Alex,

I used whatever's left of my brain and found line 57 in Display.php and realized that it's related to "previous/next" module:

"$prevTopic = mysql_num_rows($result)-1;

so I simply turned it off in the Admin section and it works fine. I suppose it's the way to navigate to the nex message while reading one without going back to the board's main screen but I guess people can live without it....
Logged
Joseph Fung
Global Moderator
YaBB God
*****
Posts: 4512


Keep smiling: it makes others nervous.

WWW
Re:"Supplied argument is not a valid MySQL result resource"
« Reply #5 on: April 03, 2002, 02:23:57 AM »
Reply with quote

honestly, we'd much rather you post the errors for us so we can fix the problem - saving other users from having the same error.
Logged

[Cable]
Noobie
*
Posts: 4


I'm a llama!

WWW
Re:"Supplied argument is not a valid MySQL result resource"
« Reply #6 on: April 09, 2002, 10:28:18 AM »
Reply with quote

i've the same problem and get :
(after putting in the code from above)

Error: Can't create/write to file '\#sql124_5c_0.MYI' (Errcode: 13)

2: Supplied argument is not a valid MySQL result resource
(d:\http\forum\Sources\MessageIndex.php ln 221)

I have the same problem with Boardindex.php

Error: Can't create/write to file '\#sql124_62_0.MYI' (Errcode: 13)

2: Supplied argument is not a valid MySQL result resource
(d:\http\forum\Sources\BoardIndex.php ln 171)


it seems that yabb tries to write somewhere, it could not..

But where ?
if i knew i could change the rights

i use yabb 1.31 php mysql and apache
under NT4.0 sp6a
« Last Edit: April 09, 2002, 10:38:17 AM by [Cable] » Logged

Greetz,
[Cable]
Jeff Lewis
Global Moderator
YaBB God
*****
Posts: 10149


I'm a llama!

WWW
Re:"Supplied argument is not a valid MySQL result resource"
« Reply #7 on: April 09, 2002, 11:33:00 AM »
Reply with quote

That is a mySQL error, seems it's having trouble creating temp tables...  Make sure it's configured properly.
Logged

[Cable]
Noobie
*
Posts: 4


I'm a llama!

WWW
Re:"Supplied argument is not a valid MySQL result resource"
« Reply #8 on: April 09, 2002, 11:54:39 AM »
Reply with quote

sorry, for the other thread, but this one is from somebody else who "has solved"
his problem.. i thought..

But what rights should mysql/apache have in the database other then everything ?

yabb/php logs in with account mysql in mysql
that account can do everything..
?
Logged

Greetz,
[Cable]
[Cable]
Noobie
*
Posts: 4


I'm a llama!

WWW
Re:"Supplied argument is not a valid MySQL result resource"
« Reply #9 on: April 09, 2002, 12:13:33 PM »
Reply with quote

i solved,

thanks jeff !

mysql's temp map stood as '\'

i had to change it to d:\http\data\temp

now it works


thank you for the hint  :D
Logged

Greetz,
[Cable]
Jeff Lewis
Global Moderator
YaBB God
*****
Posts: 10149


I'm a llama!

WWW
Re:"Supplied argument is not a valid MySQL result resource"
« Reply #10 on: April 09, 2002, 12:34:24 PM »
Reply with quote

Your welcome!  Now this thread has two solved problems ;)
Logged

Wistman
Jr. Member
**
Posts: 84


I'm a llama!

Re:"Supplied argument is not a valid MySQL result resource"
« Reply #11 on: April 13, 2002, 07:25:01 PM »
Reply with quote

just a slightly marginal off topic question that arises for me from this discussion When you talk line numbers, does it include the 26 lines of information on the top of each file.

I ask because whenever I check an error line, it's either a blank line or hav no revelence to the error it's suppose to be.


BTW being on a Mac I can't use editplus and so use BBEdit
Logged
Hypocrite
YaBB God
*****
Posts: 692


For To End Yet Again

dimmuh@gmx.net WWW
Re:"Supplied argument is not a valid MySQL result resource"
« Reply #12 on: April 13, 2002, 07:37:42 PM »
Reply with quote

Yes, they count.
Logged
Jeff Lewis
Global Moderator
YaBB God
*****
Posts: 10149


I'm a llama!

WWW
Re:"Supplied argument is not a valid MySQL result resource"
« Reply #13 on: April 13, 2002, 09:34:34 PM »
Reply with quote

Yes they count.  I'm not Mac fan/user but...I am pretty sure BBEdit is FOR the Mac :)

http://www.bbedit.com/products.html
Logged

Stanley
Noobie
*
Posts: 15


I'm a llama!

Re:"Supplied argument is not a valid MySQL result resource"
« Reply #14 on: April 16, 2002, 07:54:27 AM »
Reply with quote

Hello All,

I'm a regular poster on several forums but this is my first attempt at running my own!  (I was so happy that the install seemed to work perfectly)

Now when I post I get the following error message:
2: Supplied argument is not a valid MySQL result resource
(/home/stanleyh/collectiblecrazy-www/yabbse/Sources/Post.php ln 744)


When I go back to the home page the posts are there but I receive this error every time I post and I recently visited another site with the same install of YaBBSE and it has the identical issue.  What am I doing wrong?

Stanley
Logged

Pages: [1] 2 Reply Ignore Print 
YaBB SE Community  |  English User Help  |  English Help  |  "Supplied argument is not a valid MySQL result resource" « previous - next »
 


Powered by MySQL Powered by PHP YaBB SE Community | Powered by YaBB SE
© 2001-2003, YaBB SE Dev Team. All Rights Reserved.
SMF 2.1.4 © 2023, Simple Machines
Valid XHTML 1.0! Valid CSS

Page created in 0.013 seconds with 16 queries.