WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Comment-form are gone - All settings are OK (9 posts)

  1. Tonee
    Member
    Posted 1 year ago #

    Hi,

    I just made a new childtheme for my blog today. I also added one of the Facebook Comment-plugin, and it worked completely fine. After a few bug-fixes, my theme looked great, exept that the comment form was gone. I tried to restore the old WP-comment, didn't work. I restored the theme back to original, but nothing happened. I also tried other themes, but no different. I looked at my Settings for Discussion, but it looked OK.

    It would be great with a little help. If this is a tricky thing (wich it seems, since I have used all day with no result) I'll gladly make a quest-account on my site, therefore I can get direct help there. If anyone wants to help me out, that would be great!

    So, here's my settings and the original comments.php -

    http://i168.photobucket.com/albums/u161/drugsneverwork/settings.jpg

    <?php
    
    // Exit if accessed directly
    if ( !defined('ABSPATH')) exit;
    
    /**
     * Comments Template
     *
     *
     * @file           comments.php
     * @package        Responsive
     * @author         Emil Uzelac
     * @copyright      2010 - 2012 ThemeID
     * @license        license.txt
     * @version        Release: 1.0
     * @filesource     wp-content/themes/responsive/comments.php
     * @link           http://codex.wordpress.org/Theme_Development#Comments_.28comments.php.29
     * @since          available since Release 1.0
     */
    ?>
    <?php if (post_password_required()) { ?>
        <p class="nocomments"><?php _e('This post is password protected. Enter the password to view any comments.', 'responsive'); ?></p>
    
    	<?php return; } ?>
    
    <?php if (have_comments()) : ?>
        <h6 id="comments">
    			<?php
    				printf( _n('One comment on “%2$s”', '%1$s comments on “%2$s”', get_comments_number(), 'responsive'),
    					number_format_i18n( get_comments_number() ), '<span>' . get_the_title() . '</span>');
    			?>
        </h6>
    
        <?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : ?>
        <div class="navigation">
            <div class="previous"><?php previous_comments_link(__( '‹ Older comments','responsive' )); ?></div><!-- end of .previous -->
            <div class="next"><?php next_comments_link(__( 'Newer comments ›','responsive', 0 )); ?></div><!-- end of .next -->
        </div><!-- end of.navigation -->
        <?php endif; ?>
    
        <ol class="commentlist">
            <?php wp_list_comments('avatar_size=60&type=comment'); ?>
        </ol>
    
        <?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : ?>
        <div class="navigation">
            <div class="previous"><?php previous_comments_link(__( '‹ Older comments','responsive' )); ?></div><!-- end of .previous -->
            <div class="next"><?php next_comments_link(__( 'Newer comments ›','responsive', 0 )); ?></div><!-- end of .next -->
        </div><!-- end of.navigation -->
        <?php endif; ?>
    
    <?php else : ?>
    
    <?php endif; ?>
    
    <?php
    if (!empty($comments_by_type['pings'])) : // let's seperate pings/trackbacks from comments
        $count = count($comments_by_type['pings']);
        ($count !== 1) ? $txt = __('Pings/Trackbacks','responsive') : $txt = __('Pings/Trackbacks','responsive');
    ?>
    
        <h6 id="pings"><?php echo $count . " " . $txt; ?> <?php _e('for','responsive'); ?> "<?php the_title(); ?>"</h6>
    
        <ol class="commentlist">
            <?php wp_list_comments('type=pings&max_depth=<em>'); ?>
        </ol>
    
    <?php endif; ?>
    
    <?php if (comments_open()) : ?>
    
        <?php
        $fields = array(
            'author' => '<p class="comment-form-author">' . '<label for="author">' . __('Name','responsive') . '</label> ' . ( $req ? '<span class="required">*</span>' : '' ) .
            '<input id="author" name="author" type="text" value="' . esc_attr($commenter['comment_author']) . '" size="30" /></p>',
            'email' => '<p class="comment-form-email"><label for="email">' . __('E-mail','responsive') . '</label> ' . ( $req ? '<span class="required">*</span>' : '' ) .
            '<input id="email" name="email" type="text" value="' . esc_attr($commenter['comment_author_email']) . '" size="30" /></p>',
            'url' => '<p class="comment-form-url"><label for="url">' . __('Website','responsive') . '</label>' .
            '<input id="url" name="url" type="text" value="' . esc_attr($commenter['comment_author_url']) . '" size="30" /></p>',
        );
    
        $defaults = array('fields' => apply_filters('comment_form_default_fields', $fields));
    
        comment_form($defaults);
        ?>
    
        <?php endif; ?>

    The theme I have is Responsive by ThemeID - this is my website: http://angel-eye.net

  2. Krishna
    Volunteer Moderator
    Posted 1 year ago #

    Deactivate all plugins and revert to Twenty Eleven theme and see if it solves the problem.

  3. Tonee
    Member
    Posted 1 year ago #

    The theme, Twenty Eleven, itself says comments are disabled.

    I've also re-installed the newest version and also checked the MySQL, no changes =/

  4. Emil Uzelac
    Theme Review Admin
    Posted 1 year ago #

    Hi,

    Yes this should not me Theme related, now in the order to help you with Responsive, could you please switch back to it?

    Did you check: http://cl.ly/0J3y0h0X22151B2p2k0Y and just reverse, meaning keep them checked?

    Thanks,
    Emil

  5. Krishna
    Volunteer Moderator
    Posted 1 year ago #

    Can you delete the Facebook Comment-plugin and see if it is causing the error?

  6. Tonee
    Member
    Posted 1 year ago #

    I re-installed everything and it's working now. :) Thanks for your time!

  7. Krishna
    Volunteer Moderator
    Posted 1 year ago #

    Glad to note that you could solve the problem.

  8. Emil Uzelac
    Theme Review Admin
    Posted 1 year ago #

    Please mark the topic resolved and also once your site is done, please submit to http://themeid.com/showcase I would love to feature it :)

    Emil

  9. Tonee
    Member
    Posted 1 year ago #

    I'll let you know when I'm done! (:

    Thanks for quick replies everyone!

Topic Closed

This topic has been closed to new replies.

About this Topic