• Steph

    (@steph)


    Here is a demo of the problem (if it looks ok at the bottom, it’s been fixed): https://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

    (@kafkaesqui)

    Do you receive this error with any other theme?

    Thread Starter Steph

    (@steph)

    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

    (@steph)

    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.