WordPress.org

Ready to get started?Download WordPress

Forums

error on index.php (17 posts)

  1. Anonymous
    Unregistered
    Posted 9 years ago #

    This error appears on the index.php page:
    Warning: mysql_fetch_object(): supplied argument is not a valid MySQL result resource in /home/alyssajm/public_html/b2/index.php on line 9
    What's wrong?

  2. Mark (podz)
    Support Maven
    Posted 9 years ago #

    What is on line 9, and did this happen straight after the successful install, or have you changed anything at all ?

  3. Anonymous
    Unregistered
    Posted 9 years ago #

    I have changed the code in the "template" section.

  4. Anonymous
    Unregistered
    Posted 9 years ago #

    This is line 9:
    <?php while($row = mysql_fetch_object($result)) { start_b2(); ?>

  5. Mark (podz)
    Support Maven
    Posted 9 years ago #

    I am confused ....... in the other thread - and I assume it was you - the problem installing WordPress was sorted.
    If that was the case, and wordpress was in fact installed, where has this line 9 come from ?
    And if it did work, then you made a change, and it now does not work, have you tried reversing the change you made ?

  6. Anonymous
    Unregistered
    Posted 9 years ago #

    The problem with the other thread was the way I filled out my config file. I was just doing that wrong and made a simple mistake, and it is now installed. That had nothing to do with this error. I don't know what I changed... :/

  7. Anonymous
    Unregistered
    Posted 9 years ago #

    I don't have what it was before I changed it. It was storming here so I had to shut down the computer. I should have saved it! *bangs head against wall*

  8. Anonymous
    Unregistered
    Posted 9 years ago #

    This is what I have now that I changed to from whatever it was before:
    <?php
    /* Don't remove this line. */
    require('./wp-blog-header.php');
    ?>
    <b><center><u>.script</u></center></b><br>
    <!-- // b2 loop start -->
    <?php while($row = mysql_fetch_object($result)) { start_b2(); ?>
    <?php the_title(); ?>
    <?php the_content(); ?>
    <?php the_author() ?> flooed @ <?php the_time() ?> on <?php the_date("","",""); ?> "><?php comments_number("floo me?", "1 flooer", "% flooers") ?> <?php include ("b2comments.php"); ?>
    <!-- // this is just the end of the motor - don't touch that line either -->
    <?php } ?>
    <style>
    <!--
    body,tr,td {font-family:verdana, helvetica;color:#000000;font-size:7pt;line-height:11pt;letter-spacing:1pt;}
    -->
    <!--
    BODY{scrollbar-track-color: #FE6A24;
    scrollbar-arrow-color:#FE6A24;
    scrollbar-face-color: #000000;
    scrollbar-highlight-color: #FE6A24;
    scrollbar-3dlight-color: #FE6A24;
    scrollbar-darkshadow-color: #FE6A24;
    scrollbar-shadow-color: #FE6A24;
    color: 000000;
    font-size: 7pt;
    font-family: verdana, helvetica;
    font-weight: regular;
    background-color: transparent;
    line-height: 15px;
    margin: 0px 0px 0px 0px;
    padding: 0px 0px 0px 0px;
    }
    -->
    <!--
    body,tr,td {font-family:verdana, helvetica;color:#000000;font-size:7pt;line-height:11pt;letter-spacing:1pt;}
    -->
    <!--
    A:link {color: #FE3A22; text-decoration: none;}
    A:visited {color: #FE3A22; text-decoration: none;}
    A:active {color: #FE3A22; text-decoration: none;}
    A:hover { color: #FE3A22; text-decoration: underline;}
    -->
    </style>

  9. Anonymous
    Unregistered
    Posted 9 years ago #

    Oh dang, it won't all fit.

  10. Mark (podz)
    Support Maven
    Posted 9 years ago #

    This is a b2 blog, not a wordpress blog ?
    I ask because I don't have a line like that one above in my index.php
    If nothing else, would upgrading it to WordPress be an option ?

  11. Mark (podz)
    Support Maven
    Posted 9 years ago #

    That looks like you have part of WP code running, and part of b2 running as well. They don't get on well, despite their relationship in the past ...
    Have you upgraded but kept index.php the same ?

  12. Anonymous
    Unregistered
    Posted 9 years ago #

    Well...I downloaded it from wordpress. Should the b2comments.php be different? I got it from this tutorial (which is somehow now offline, though it was online earlier).

  13. Anonymous
    Unregistered
    Posted 9 years ago #

    I downloaded it just today...so I haven't upgraded.

  14. Mark (podz)
    Support Maven
    Posted 9 years ago #

    I'm not familiar with how much b2 code will run in 1.2mingus ... can you get to the WP irc channel and ask there ?
    A pointer to the tutorial may be useful too.

  15. Anonymous
    Unregistered
    Posted 9 years ago #

    WP irc channel? And the tutorial's offline. It comes up 404 now.

  16. Mark (podz)
    Support Maven
    Posted 9 years ago #

    IRC : http://wordpress.org/support/7/359
    What *was* the url ?

  17. Anonymous
    Unregistered
    Posted 9 years ago #

    http://www.farandaway.org/stuff/tutorials/b2_template.html
    It's b2. So I need that for wordpress.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.