WordPress.org

Support

Support » Themes and Templates » error on index.php

error on index.php

  • 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?

Viewing 15 replies - 1 through 15 (of 16 total)
  • Mark (podz)
    Support Maven

    @podz

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

    I have changed the code in the “template” section.

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

    Mark (podz)
    Support Maven

    @podz

    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 ?

    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… :/

    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*

    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>

    Oh dang, it won’t all fit.

    Mark (podz)
    Support Maven

    @podz

    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 ?

    Mark (podz)
    Support Maven

    @podz

    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 ?

    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).

    I downloaded it just today…so I haven’t upgraded.

    Mark (podz)
    Support Maven

    @podz

    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.

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

    Mark (podz)
    Support Maven

    @podz

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

Viewing 15 replies - 1 through 15 (of 16 total)
  • The topic ‘error on index.php’ is closed to new replies.