• Resolved pixnik

    (@pixnik)


    Since upgrading to 3.0 comments/comment form no longer appear. It seems that <?php comments_template(); ?> results in the following:

    Warning: require(wp-includes/theme-compat/comments.php) [function.require]: failed to open stream: No such file or directory in /home/pixnik/public_html/wordpress/wp-includes/comment-template.php on line 893

    Warning: require(wp-includes/theme-compat/comments.php) [function.require]: failed to open stream: No such file or directory in /home/pixnik/public_html/wordpress/wp-includes/comment-template.php on line 893

    Fatal error: require() [function.require]: Failed opening required ‘wp-includes/theme-compat/comments.php’ (include_path=’.:/usr/lib/php:/usr/local/lib/php’) in /home/pixnik/public_html/wordpress/wp-includes/comment-template.php on line 893

    The path wp-includes/theme-compat/comments.php is valid. I do not understand the (include_path='.:/usr/lib/php:/usr/local/lib/php') in the fatal error message.

    Any ideas how to resolve this please?

Viewing 2 replies - 1 through 2 (of 2 total)
  • May be you need to edit wp-includes/comment-template.php
    and goto line 893

    require( WPINC . '/theme-compat/comments.php');

    replace the above line with

    require( ABSPATH . WPINC . '/theme-compat/comments.php');

    Then might solve your problem temporarily until they fix the problem

    Thanks,
    Suresh
    https://www.largeresource.net

    Thread Starter pixnik

    (@pixnik)

    Thank you for that advice. Before making that change I tried other themes and the comments displayed as normal. So I copied the comments.php from the (old?) default theme into my theme and this fixed the problem.

    I am still not clear as to the reason WordPress could not find the default comments.php though. Any ideas?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘WP 3.0 – comment form not displayed’ is closed to new replies.