Title: WordPress error.
Last modified: August 19, 2016

---

# WordPress error.

 *  [miss_e](https://wordpress.org/support/users/miss_e/)
 * (@miss_e)
 * [17 years, 3 months ago](https://wordpress.org/support/topic/wordpress-error-11/)
 * I keep getting errors when I post a blog. I don’t understand why…here is the 
   error I get
 * **Warning: include(/home/b5connec/public_html/wordpress/wp-comments.php) [function.
   include]: failed to open stream: No such file or directory in /home/b5connec/
   public_html/index.php on line 185**
 * Warning: include() [function.include]: Failed opening ‘/home/b5connec/public_html/
   wordpress/wp-comments.php’ for inclusion (include_path=’.:/usr/lib/php:/usr/local/
   lib/php’) in /home/b5connec/public_html/index.php on line 185

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

 *  [whooami](https://wordpress.org/support/users/whooami/)
 * (@whooami)
 * [17 years, 3 months ago](https://wordpress.org/support/topic/wordpress-error-11/#post-998393)
 * /home/b5connec/public_html/wordpress/wp-comments.php
 * that file isnt there, or wordpress cant read it. pretty simple.
 *  Thread Starter [miss_e](https://wordpress.org/support/users/miss_e/)
 * (@miss_e)
 * [17 years, 3 months ago](https://wordpress.org/support/topic/wordpress-error-11/#post-998394)
 * Okay well I had “wp-comments.php” and the FILE is “wp-comments-post.php”
    and
   now that I changed it, this is what I get:
 * **Warning: Cannot modify header information – headers already sent by (output
   started at /home/b5connec/public_html/index.php:1) in /home/b5connec/public_html/
   wordpress/wp-comments-post.php on line 9**
 * Warning: Cannot modify header information – headers already sent by (output started
   at /home/b5connec/public_html/index.php:1) in /home/b5connec/public_html/wordpress/
   wp-comments-post.php on line 10
 * Warning: Cannot modify header information – headers already sent by (output started
   at /home/b5connec/public_html/index.php:1) in /home/b5connec/public_html/wordpress/
   wp-comments-post.php on line 11
 *  [whooami](https://wordpress.org/support/users/whooami/)
 * (@whooami)
 * [17 years, 3 months ago](https://wordpress.org/support/topic/wordpress-error-11/#post-998395)
 * no, thats not right.
 * whats inside this file:
 * /home/b5connec/public_html/index.php
 * ????
 * youve done something wrong.
 * comments.php is a theme file. Had i been paying closer attn I would have caught
   that the first time I read this thread. wordpress shouldn’t be looking for that
   file there, unless you have a theme’s index.php in the root of your install, 
   which is wrong.
 *  Thread Starter [miss_e](https://wordpress.org/support/users/miss_e/)
 * (@miss_e)
 * [17 years, 3 months ago](https://wordpress.org/support/topic/wordpress-error-11/#post-998399)
 * the index.php file is the homepage of my site.
 * I don’t know if it’s wrong or not…..would you like me to post something so you
   can see?
 *  [whooami](https://wordpress.org/support/users/whooami/)
 * (@whooami)
 * [17 years, 3 months ago](https://wordpress.org/support/topic/wordpress-error-11/#post-998401)
 * > whats inside this file:
   > /home/b5connec/public_html/index.php
 * what does it say???
 *  Thread Starter [miss_e](https://wordpress.org/support/users/miss_e/)
 * (@miss_e)
 * [17 years, 3 months ago](https://wordpress.org/support/topic/wordpress-error-11/#post-998411)
 * it’s all the HTML of my site page……I’m not sure what you want me to tell you……
   are you talking about the index.php for a certain folder?
 * Because that one up there isn’t the same folder….
 *  [whooami](https://wordpress.org/support/users/whooami/)
 * (@whooami)
 * [17 years, 3 months ago](https://wordpress.org/support/topic/wordpress-error-11/#post-998412)
 * awww cmon, im writing in english.
 * Repeating myself:
 * what is inside this file:
 * /home/b5connec/public_html/index.php
 * Open it.
 * paste the contents of it HERE.
 * if I have to spend any more time repeating myself, you have more issues than 
   I can help with. I realize youre new here, but please make it a point to read
   the replies that you get — it makes those of us that are are attempting to help
   not spend an hour going over simple things like this.
 *  Thread Starter [miss_e](https://wordpress.org/support/users/miss_e/)
 * (@miss_e)
 * [17 years, 3 months ago](https://wordpress.org/support/topic/wordpress-error-11/#post-998415)
 * Well you didn’t say to post the contents…..I asked if that’s what you wanted 
   before.
 * [**Moderated:** Too much code. Please consider placing the code in a text file
   on your site with a link here -or- use a pastebin service such as [http://wordpress.pastebin.ca](http://wordpress.pastebin.ca).
   Thanks!]
 *  [whooami](https://wordpress.org/support/users/whooami/)
 * (@whooami)
 * [17 years, 3 months ago](https://wordpress.org/support/topic/wordpress-error-11/#post-998418)
 * ok, well thats the problem. youve edited THAT file, and thats not how you design
   in wordpress. You put crap like that in your theme’s index.php NOT the root index.
   php
 * the file you just pasted the contents of, should only have this:
 *     ```
       <?php
       /**
        * Front to the WordPress application. This file doesn't do anything, but loads
        * wp-blog-header.php which does and tells WordPress to load the theme.
        *
        * @package WordPress
        */
   
       /**
        * Tells WordPress to load the WordPress theme and output it.
        *
        * @var bool
        */
       define('WP_USE_THEMES', true);
   
       /** Loads the WordPress Environment and Template */
       require('./wp-blog-header.php');
       ?>
       ```
   
 * in it.
 *  Thread Starter [miss_e](https://wordpress.org/support/users/miss_e/)
 * (@miss_e)
 * [17 years, 3 months ago](https://wordpress.org/support/topic/wordpress-error-11/#post-998430)
 * Okay, here’s what I did…….
    -since you said to take the content crap outta there..
   I did and replaced it with the index.php in the folder of the theme I have.
 * The root of the index.php INSIDE the wordpress folder, was never changed….so 
   I copied and paste it inside the index.php for my WEBSITE homepage and now there’s
   an error….
 * So I put my content BACK in the index.php FOR my homepage….left the content in
   the theme folder….the homepage pops up…but now I’m back to square one.
 *  [whooami](https://wordpress.org/support/users/whooami/)
 * (@whooami)
 * [17 years, 3 months ago](https://wordpress.org/support/topic/wordpress-error-11/#post-998433)
 * I dont think you understand. Im assuming you are trying to load a blog at your
   domain, but leaving wordpress in its own directory. Thats the ONLY forseeable
   reason for editing that file.
 * the file that you need to concern yourself with, is this one:
 * /home/b5connec/public_html/index.php
 * In the scenario Im describing, that file needs to have this:
 *     ```
       <?php
       /**
        * Front to the WordPress application. This file doesn't do anything, but loads
        * wp-blog-header.php which does and tells WordPress to load the theme.
        *
        * @package WordPress
        */
   
       /**
        * Tells WordPress to load the WordPress theme and output it.
        *
        * @var bool
        */
       define('WP_USE_THEMES', true);
   
       /** Loads the WordPress Environment and Template */
       require('./wp-blog-header.php');
       ?>
       ```
   
 * additionally, IF you are loading a wordpress install that sits in a directory,
   like wordpress/ you will need to adjust the path to wp-blog-header.php (this 
   is ALL covered in the docs):
 * [http://codex.wordpress.org/Giving_WordPress_Its_Own_Directory](http://codex.wordpress.org/Giving_WordPress_Its_Own_Directory)
 * if on the other hand, you are trying to incorporate wordpress features into that
   file, as is indicated by this remark:
 * >  .so I copied and paste it inside the index.php for my WEBSITE homepage and
   > now there’s an error….
 * than thats not right either. You CANNOT just copy and paste wordpress functions
   out of theme files into other files, and have them work.
 * either way, youre doing this wrong.
 * **Now, how about YOU explain what you are doing, provide a url to your site, 
   and take the guess work out of this. **
 * lastly, instead of just saying, “i get an error”, provide the actual error message.
 *  [whooami](https://wordpress.org/support/users/whooami/)
 * (@whooami)
 * [17 years, 3 months ago](https://wordpress.org/support/topic/wordpress-error-11/#post-998435)
 * I’m going to go back to your very first post to reiterate what I am I am explaining
   to you:
 * you said you were seeing these errors:
 *     ```
       Warning: include(/home/b5connec/public_html/wordpress/wp-comments.php) [function.include]: failed to open stream: No such file or directory in /home/b5connec/public_html/index.php on line 185
   
       Warning: include() [function.include]: Failed opening '/home/b5connec/public_html/wordpress/wp-comments.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/b5connec/public_html/index.php on line 185
       ```
   
 * That error means that you are trying to load a wordpress theme file. the name
   of the theme file is comments.php — That also means that you have re-used code
   that is normally found inside wordpress theme files in an index.php that is NOT
   living in a theme directory (you pasted that code earlier, I saw it).
 * Regardless of whatever reason you are doing it, its wrong, and it will NOT work
   the way you have done things.
 *  Thread Starter [miss_e](https://wordpress.org/support/users/miss_e/)
 * (@miss_e)
 * [17 years, 3 months ago](https://wordpress.org/support/topic/wordpress-error-11/#post-998436)
 * All I’m trying to do is get the blog part by itself working……and it works, except
   it keeps that error at the bottom below the comment link that I posted in the
   first place. I’m not trying to set my entire site up on wordpress…I was given
   the tutorial by someone else and I followed the directions on there….yet I still
   have an error.
 * I changed the homepage back to cutenews, so here’s the link to my testing page.
 * [http://b5connected.com/atest.php](http://b5connected.com/atest.php)
 *  [whooami](https://wordpress.org/support/users/whooami/)
 * (@whooami)
 * [17 years, 3 months ago](https://wordpress.org/support/topic/wordpress-error-11/#post-998438)
 * Youre not reading what I am telling you, and im tired of repeating myself…
 *  Thread Starter [miss_e](https://wordpress.org/support/users/miss_e/)
 * (@miss_e)
 * [17 years, 3 months ago](https://wordpress.org/support/topic/wordpress-error-11/#post-998440)
 * I’ve been sitting here for more than an hour reading what you’ve typed and I 
   DO NOT understand…but fine…don’t repeat yourself anymore. I won’t use wordpress.

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

The topic ‘WordPress error.’ is closed to new replies.

 * 15 replies
 * 2 participants
 * Last reply from: [miss_e](https://wordpress.org/support/users/miss_e/)
 * Last activity: [17 years, 3 months ago](https://wordpress.org/support/topic/wordpress-error-11/#post-998440)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
