boardom Forum Index boardom
b2 message board
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Warning: mysql_fetch_object(): supplied argument is not a va

 
Post new topic   Reply to topic    boardom Forum Index -> Installation issues
View previous topic :: View next topic  
Author Message
mizchrissy



Joined: 15 Sep 2002
Posts: 2

PostPosted: Sun Sep 15, 2002 3:36 am    Post subject: Warning: mysql_fetch_object(): supplied argument is not a va Reply with quote

veryyyy confused
Back to top
View user's profile Send private message Visit poster's website
michel v
Site Admin


Joined: 25 Jan 2002
Posts: 799
Location: Corsica

PostPosted: Mon Sep 16, 2002 9:43 pm    Post subject: Reply with quote

Please be more descriptive.
It's not like people are psychic who can read your mind just from this forum... Smile

My first guess, however, is that you didn't fill b2's config file with the right mysql details. In this case, just ask your webhost for the correct settings.
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger
phona



Joined: 07 Feb 2002
Posts: 35
Location: Australia

PostPosted: Wed Sep 18, 2002 9:39 am    Post subject: same thing i think? Reply with quote

Okay I just installed one and I think I got the smae thing:

Warning: mysql_fetch_object(): supplied argument is not a valid MySQL result resource in /home/phona/public_html/pride/index.php on line 35



the line in question seems o be

Code:
<?php while($row = mysql_fetch_object($result)) { start_b2(); ?>


but I don't know whatb to do to fix it. is it just that I've enetered the wrong info most likey?[/quote]
Back to top
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger
macshack



Joined: 17 Jul 2002
Posts: 1204
Location: Phoenix, Az

PostPosted: Wed Sep 18, 2002 3:57 pm    Post subject: Reply with quote

Hi all,

This sounds familure.

I'm going to ask you a question and have you look at a file.

First when did you dowload b2 and from where?

And what does the line at or near line116 of blog.header.php look like... maybe something like:
Code:

f ((!isset($cat)) || ($cat == 'all') || ($cat == '0')) {

If so, change it to look like:
Code:

if ((empty($cat)) || ($cat == 'all') || ($cat == '0')) {

Now if the above is not true or it did not correct the issue, change the line near the bottom from (un comment echo $request):
Code:

//echo $request;

to:
Code:

//echo $request;

This should display the query string at the top of the page when you attempt to access the index.php page. Then post the results here so we can look at the query.

michael e
Back to top
View user's profile Send private message Send e-mail
phona



Joined: 07 Feb 2002
Posts: 35
Location: Australia

PostPosted: Thu Sep 19, 2002 9:02 am    Post subject: Reply with quote

thanks Smile

I did the first one and it worked nicely Smile

thanks Smile
Back to top
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger
chichy



Joined: 17 Nov 2003
Posts: 3
Location: Australia

PostPosted: Mon Nov 17, 2003 8:09 am    Post subject: Reply with quote

I get a simular error too. b2 was working perfect with the default layout. I changed it a bit, so only the blog was visible, and it still worked. I downloaded a plug b2 commenters hack, no problems there. But when I added the rest of my layout, I got this error:
Code:
Warning: mysql_fetch_object(): supplied argument is not a valid MySQL result resource in /home/chichy/public_html/index.php on line 45


I think this is because I might have forgotten or mucked up a code, I'll post the index.php file as well. By the way, I tried both of the code changes but none worked.
Code:
<HTML>
<head>
<title>   ~ EqueTTeNeT   +,.,+VeRSiOn 3+,.,+  ~</title>
<META NAME="keywords"
CONTENT="Personal, helpfull, handy, cool">
<META NAME="description"
CONTENT="Tutorials, reads, javascript games, quizzes, fun stuff, and more! Read the blog, post a comment! Visit Equette.net today!">
<META NAME="revisit-after" CONTENT="3 days">
<META NAME="robots" CONTENT="FOLLOW,INDEX">
<SCRIPT LANGUAGE="JavaScript">
<!-- Idea by:  Nic Wolfe ([email protected]) -->
<!-- Thank you http://www.peachie.nu -->

<!-- Begin
function popUp(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=0,width=350,height=400');");
}
// End -->
</script>

<script language="JavaScript">
<!--
defaultStatus = "     +     +     +      E    Q    U    E    T    T    E     .    N    E    T       +      +     +";
-->
</script>
</head>
<body><LINK REL=stylesheet HREF="mycss.css" TYPE="text/css">
<body scroll="no">
<body background="bg.bmp">
<center><img src="layoutpic.gif"></center>
<div  style="position: absolute; top: 60px; left: 50px; width: 313px; height: 529px; scrolling:auto;
  scrollbar-arrow-color: #0B5567;
  scrollbar-track-color: #ff0000;
  scrollbar-face-color: #ff0000;
  scrollbar-highlight-color: #ff0000;
  scrollbar-3dlight-color: #ff0000;
  scrollbar-darkshadow-color: #ff0000;
  scrollbar-shadow-color: #ff0000; border:1 solid #000000; background-color:#C1C1C1; overflow:auto; FILTER: chroma(color=#ff0000) alpha(opacity=65)">
<div id="content">


<!-- // b2 loop start -->
   <?php while($row = mysql_fetch_object($result)) { start_b2(); ?>

<div class="storyContent">
<?php the_content(); ?>

<div class="rightFlush">
♥ Tania <?php comments_popup_link("[0]", "[1]", "[%]") ?>

<!-- this includes the comments and a form to add a new comment -->
<?php include ("b2comments.php"); ?>

</div>

</div>
<!-- // this is just the end of the motor - don't touch that line either :) -->
   <?php } ?>


</div>
</div>
<div style="position: absolute; top: 400px; left: 620px; width: 200px; height: 200px; scrolling:auto;
  scrollbar-arrow-color: #0B5567;
  scrollbar-track-color: #ff0000;
  scrollbar-face-color: #ff0000;
  scrollbar-highlight-color: #ff0000;
  scrollbar-3dlight-color: #ff0000;
  scrollbar-darkshadow-color: #ff0000;
  scrollbar-shadow-color: #ff0000; overflow:auto; FILTER: chroma(color=#ff0000)">
<img src="bullet.bmp"> <A HREF="javascript:popUp('tania.html')">Tania</A><br>
<img src="bullet.bmp"> <A HREF="javascript:popUp('visitor.html')">Visitor</A><br>
<img src="bullet.bmp"> <A HREF="javascript:popUp('reads.html')">Reads</A><br>
<img src="bullet.bmp"> <A HREF="javascript:popUp('downloads.html')">Downloads</A><br>
<img src="bullet.bmp"> <A HREF="javascript:popUp('tutorials.html')">Tutorials</A><br>
<img src="bullet.bmp"> <A HREF="javascript:popUp('domain.html')">Domain</A><br>
<img src="bullet.bmp"> <A HREF="javascript:popUp('hosting.html')">Hosting</A><br>
<img src="bullet.bmp"> <A HREF="javascript:popUp('exits.html')">Exits</A><br>
</div>
</body>
</HTML>


If you can help, thank you Smile[/b]
_________________
Meow,
Chichy
Back to top
View user's profile Send private message
chichy



Joined: 17 Nov 2003
Posts: 3
Location: Australia

PostPosted: Mon Dec 29, 2003 10:48 am    Post subject: Reply with quote

I must have made a very stupid mistake :S I'll start everything from scratch.
_________________
Meow,
Chichy
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    boardom Forum Index -> Installation issues All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
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 2 © 2001, 2002 phpBB Group