Title: error on index.php
Last modified: August 18, 2016

---

# error on index.php

 *  ajmseven
 * [21 years, 11 months ago](https://wordpress.org/support/topic/error-on-indexphp/)
 * 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)

1 [2](https://wordpress.org/support/topic/error-on-indexphp/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/error-on-indexphp/page/2/?output_format=md)

 *  [Mark (podz)](https://wordpress.org/support/users/podz/)
 * (@podz)
 * [21 years, 11 months ago](https://wordpress.org/support/topic/error-on-indexphp/#post-72287)
 * What is on line 9, and did this happen straight after the successful install,
   or have you changed anything at all ?
 *  Thread Starter Anonymous
 * [21 years, 11 months ago](https://wordpress.org/support/topic/error-on-indexphp/#post-72288)
 * I have changed the code in the “template” section.
 *  Thread Starter Anonymous
 * [21 years, 11 months ago](https://wordpress.org/support/topic/error-on-indexphp/#post-72289)
 * This is line 9:
    <?php while($row = mysql_fetch_object($result)) { start_b2();?
   >
 *  [Mark (podz)](https://wordpress.org/support/users/podz/)
 * (@podz)
 * [21 years, 11 months ago](https://wordpress.org/support/topic/error-on-indexphp/#post-72290)
 * 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 ?
 *  Thread Starter Anonymous
 * [21 years, 11 months ago](https://wordpress.org/support/topic/error-on-indexphp/#post-72291)
 * 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… :/
 *  Thread Starter Anonymous
 * [21 years, 11 months ago](https://wordpress.org/support/topic/error-on-indexphp/#post-72293)
 * 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*
 *  Thread Starter Anonymous
 * [21 years, 11 months ago](https://wordpress.org/support/topic/error-on-indexphp/#post-72294)
 * 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>
 *  Thread Starter Anonymous
 * [21 years, 11 months ago](https://wordpress.org/support/topic/error-on-indexphp/#post-72295)
 * Oh dang, it won’t all fit.
 *  [Mark (podz)](https://wordpress.org/support/users/podz/)
 * (@podz)
 * [21 years, 11 months ago](https://wordpress.org/support/topic/error-on-indexphp/#post-72296)
 * 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)](https://wordpress.org/support/users/podz/)
 * (@podz)
 * [21 years, 11 months ago](https://wordpress.org/support/topic/error-on-indexphp/#post-72297)
 * 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 ?
 *  Thread Starter Anonymous
 * [21 years, 11 months ago](https://wordpress.org/support/topic/error-on-indexphp/#post-72298)
 * 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).
 *  Thread Starter Anonymous
 * [21 years, 11 months ago](https://wordpress.org/support/topic/error-on-indexphp/#post-72299)
 * I downloaded it just today…so I haven’t upgraded.
 *  [Mark (podz)](https://wordpress.org/support/users/podz/)
 * (@podz)
 * [21 years, 11 months ago](https://wordpress.org/support/topic/error-on-indexphp/#post-72300)
 * 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.
 *  Thread Starter Anonymous
 * [21 years, 11 months ago](https://wordpress.org/support/topic/error-on-indexphp/#post-72301)
 * WP irc channel? And the tutorial’s offline. It comes up 404 now.
 *  [Mark (podz)](https://wordpress.org/support/users/podz/)
 * (@podz)
 * [21 years, 11 months ago](https://wordpress.org/support/topic/error-on-indexphp/#post-72302)
 * IRC : [http://wordpress.org/support/7/359](http://wordpress.org/support/7/359)
   
   What *was* the url ?

Viewing 15 replies - 1 through 15 (of 16 total)

1 [2](https://wordpress.org/support/topic/error-on-indexphp/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/error-on-indexphp/page/2/?output_format=md)

The topic ‘error on index.php’ is closed to new replies.

 * 16 replies
 * 2 participants
 * Last reply from: Anonymous
 * Last activity: [21 years, 11 months ago](https://wordpress.org/support/topic/error-on-indexphp/page/2/#post-72303)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
