• 2 days ago, my wife’s blog stopped accepting comments. Anyone not logged in gets a “Error: please fill the required fields (name, email).” message. Nothing had changed for anything. She hadn’t updated the theme in a while, so I updated it, but still same issue. I’ve searched many threads and no response.

    url: lilmuselily.com
    Hosting: Linux on Godaddy
    Database: MySQL
    Theme: Themify

    Things I have attempted.

    unclicking radio button requiring name and email (error goes away but comment doesn’t post)

    renamed email and email2 in comment.php for Themify. (does nothing).

    Below is the comment.php file.

    <?php
    /**
     * Template for comments
     * @package themify
     * @since 1.0.0
     */
    ?>
    
    <?php themify_base_comment_before(); //hook ?>
    
    <?php if ( have_comments() || comments_open() ) : ?>
    
    	<div id="comments" class="commentwrap">
    
    		<?php themify_base_comment_start(); //hook ?>
    
    		<?php if ( post_password_required() && have_comments() ) : ?>
    
    			<p class="nopassword"><?php _e( 'This post is password protected. Enter the password to view any comments.', 'themify' ); ?></p>
    
    		<?php elseif ( have_comments() ) : ?>
    
    			<h4 class="comment-title"><?php comments_number(__('No Comments','themify'), __('1 Comment','themify'), __('% Comments','themify') );?></h4>
    
    			<?php // Comment Pagination
    			if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : ?>
    				<nav class="pagenav top clearfix">
    					<?php
    					paginate_comments_links( array(
    						'prev_text' => '',
    						'next_text' => ''
    					));
    					?>
    				</nav>
    				<!-- /.pagenav -->
    			<?php endif; ?>
    
    			<ol class="commentlist">
    				<?php wp_list_comments('callback=themify_base_theme_comment'); ?>
    			</ol>
    
    			<?php // Comment Pagination
    			if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : ?>
    				<nav class="pagenav bottom clearfix">
    					<?php
    					paginate_comments_links( array(
    						'prev_text' => '',
    						'next_text' => ''
    					));
    					?>
    				</nav>
    				<!-- /.pagenav -->
    			<?php endif; ?>
    
    		<?php endif; // end have_comments() ?>
    
    		<?php if ( comments_open() ) : ?>
    
    			<?php
    			global $req, $aria_req, $user_identity;
    			$custom_comment_form = array(
    				'fields'               => apply_filters( 'comment_form_default_fields', array(
    					'author' => '<p class="comment-form-author">' . '<input id="author" name="author" type="text" value="' . esc_attr( $commenter['comment_author'] ) . '" size="30"' . $aria_req . ' class="required" />' . '<label for="author">' . __( 'Your Name', 'themify' ) . '</label> ' . ( $req ? '<span class="required">*</span>' : '' ) . '</p>',
    					'email'  => '<p class="comment-form-email">' . '<input id="email" name="email" type="text" value="' . esc_attr( $commenter['comment_author_email'] ) . '" size="30"' . $aria_req . ' class="required email" />' . '<label for="email">' . __( 'Your Email', 'themify' ) . '</label> ' . ( $req ? '<span class="required">*</span>' : '' ) . '</p>',
    					'url'    => '<p class="comment-form-url">' . '<input id="url" name="url" type="text" value="' . esc_attr( $commenter['comment_author_url'] ) . '" size="30"' . $aria_req . ' />' . '<label for="website">' . __( 'Your Website', 'themify' ) . '</label> ' . '</p>'
    					)),
    				'comment_field'        => '<p class="comment-form-comment">' . '<textarea id="comment" name="comment" cols="45" rows="8" aria-required="true" class="required"></textarea>' . '</p>',
    				'logged_in_as'         => '<p class="logged-in-as">' . sprintf( __( 'Logged in as <a href="%s">%s</a>. <a href="%s">Log out?</a>', 'themify' ), admin_url( 'profile.php' ), $user_identity, wp_logout_url( apply_filters( 'the_permalink', get_permalink( get_the_id() ) ) ) ) . '</p>',
    				'title_reply'          => __( 'Leave a Reply', 'themify' ),
    				'comment_notes_before' => '',
    				'comment_notes_after'  => '',
    				'cancel_reply_link'    => __( 'Cancel', 'themify' ),
    				'label_submit'         => __( 'Post Comment', 'themify' ),
    			);
    			comment_form( $custom_comment_form );
    			?>
    
    		<?php endif; // end comments_open() ?>
    
    		<?php themify_base_comment_end(); //hook ?>
    
    	</div>
    	<!-- /.commentwrap -->
    
    <?php endif; ?>
    
    <?php themify_base_comment_after(); //hook ?>
  • The topic ‘Comments no longer working’ is closed to new replies.