Title: comment-functions.php include error on static page
Last modified: August 18, 2016

---

# comment-functions.php include error on static page

 *  [Steph](https://wordpress.org/support/users/steph/)
 * (@steph)
 * [21 years, 2 months ago](https://wordpress.org/support/topic/comment-functionsphp-include-error-on-static-page/)
 * Here is a demo of the problem (if it looks ok at the bottom, it’s been fixed):
   [http://climbtothestars.org/about/presse/](http://climbtothestars.org/about/presse/)
 * Instead of seeing the comments on my static page, I get the following error message:
 * Warning: comments_template(/home/steph/www/wp-content/themes/bunny-pink): failed
   to open stream: Success in /home/steph/www/wp-includes/comment-functions.php 
   on line 24
 * Fatal error: comments_template(): Failed opening required ‘/home/steph/www/wp-
   content/themes/bunny-pink’ (include_path=’.:/usr/lib/php’) in /home/steph/www/
   wp-includes/comment-functions.php on line 24
 * Is this a known bug? Is it fixed? Is there a quick fix?
 * Thanks for your help.

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

 *  [Kafkaesqui](https://wordpress.org/support/users/kafkaesqui/)
 * (@kafkaesqui)
 * [21 years, 2 months ago](https://wordpress.org/support/topic/comment-functionsphp-include-error-on-static-page/#post-173213)
 * Do you receive this error with any other theme?
 *  Thread Starter [Steph](https://wordpress.org/support/users/steph/)
 * (@steph)
 * [21 years, 2 months ago](https://wordpress.org/support/topic/comment-functionsphp-include-error-on-static-page/#post-173217)
 * Good idea!
 * No error with “classic”, the comment form appears. I do get this error though,
   where the Pages are listed:
 * Warning: Invalid argument supplied for foreach() in /home/steph/www/wp-includes/
   template-functions-post.php on line 368
 * With the default theme, no errors, but the comment form is not visible.
 *  Thread Starter [Steph](https://wordpress.org/support/users/steph/)
 * (@steph)
 * [21 years, 2 months ago](https://wordpress.org/support/topic/comment-functionsphp-include-error-on-static-page/#post-173220)
 * Found the solution: in my index.php, the comments template was included with 
   <?php comments_template( is_single() ); // Get wp-comments.php template ?> — 
   because I wrote the theme when I was using nightlies, and had some trouble with
   comments appearing in my home page.
 * just removed the is_single and all is fine now!!
 * (thanks to MCincubus on #wordpress)

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

The topic ‘comment-functions.php include error on static page’ is closed to new 
replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 2 participants
 * Last reply from: [Steph](https://wordpress.org/support/users/steph/)
 * Last activity: [21 years, 2 months ago](https://wordpress.org/support/topic/comment-functionsphp-include-error-on-static-page/#post-173220)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
