Forums

[resolved] WP 3.0 - comment form not displayed (3 posts)

  1. pixnik
    Member
    Posted 1 year ago #

    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?

  2. ddsuresh
    Member
    Posted 1 year ago #

    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
    http://www.largeresource.net

  3. pixnik
    Member
    Posted 1 year ago #

    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?

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.