Comment forms not working

Latest Reply from Shomi at 2013-11-14 03:09:07
I had once successful comment post over the weekend and now, any one who tries to comment gets an ERROR: please leave a comment. I'm using Originative theme and here's my comments.php file. Can someone help?? Thanks!



<?php global $SMTheme; ?>
<?php if ( post_password_required() ) { ?>
<p><?php $SMTheme->_( 'password' ) ?></p>
<?php return; } ?>
<?php if ( $post->comment_status!='open' ) { ?>
<p><?php $SMTheme->_( 'closedcomments' ) ?></p>
<?php return; } ?>

<?php if ( have_comments() ) { ?>
<div id="comments">

<h3 id="comments-title">

<?php
if (get_comments_number()==1) {
printf( $SMTheme->_( 'formoneresponse' ), '<em>' . get_the_title() . '</em>');
} else {
printf( $SMTheme->_( 'formmultiresponse' ), '<em>' . get_the_title() . '</em>', get_comments_number());
}

?></h3>

<ul class="commentlist">
<?php wp_list_comments('callback=custom_comments'); ?>
</ul>

<?php if ( get_comment_pages_count() > 1 ) { ?>
<div class="navigation clearfix">
<div class="alignleft"><?php previous_comments_link( $SMTheme->_( 'prevcomments' ) ); ?></div>
<div class="alignright"><?php next_comments_link( $SMTheme->_( 'nextcomments' ) ); ?></div>
</div><!-- .navigation .clearfix -->
<?php } ?>

</div><!-- #comments -->
<?php } ?>

<?php
$args=array(
'comment_field' => '<p class="comment-form-comment"><label for="comment">' . $SMTheme->_( 'comment' ) . '</label><textarea id="comment" name="comment" cols="45" rows="8" aria-required="true"></textarea></p>',
'must_log_in' => '<p class="must-log-in">' . sprintf( $SMTheme->_( 'mustbe' ).' <a href="%s">'.$SMTheme->_( 'loggedin' ).'</a> '.$SMTheme->_( 'topostcomment' ).'.' , wp_login_url( apply_filters( 'the_permalink', get_permalink( $post_id ) ) ) ) . '</p>',
'logged_in_as' => '<p class="logged-in-as">' . sprintf( __( $SMTheme->_( 'loggedinas' ).' <a href="%1$s">%2$s</a>. <a href="%3$s" title="Log out of this account">'.$SMTheme->_( 'logout' ).'</a>' ), admin_url( 'profile.php' ), $user_identity, wp_logout_url( apply_filters( 'the_permalink', get_permalink( $post_id ) ) ) ) . '</p>',
'comment_notes_before' => '<p class="comment-notes">' . $SMTheme->_( 'comment_notes_before' ) . ( $req ? $required_text : '' ) . '</p>',
'comment_notes_after' => '<p class="form-allowed-tags">' . sprintf( $SMTheme->_( 'comment_notes_after' ), ' <code>' . allowed_tags() . '</code>' ) . '</p>',
'id_form' => 'commentform',
'id_submit' => 'submit',
'title_reply' => $SMTheme->_( 'leavereply' ),
'title_reply_to' => $SMTheme->_( 'leavereply' ),
'cancel_reply_link' => $SMTheme->_( 'cancelreply' ),
'label_submit' => $SMTheme->_( 'addcomment' )
);
comment_form($args);
?>
Hi!
Could you give us the URL of your web site?
http://www.therecipehunter.com

I just had another person reach out to me saying that they could not leave a message. Yet I have had 2 other people successfully leave them. I also believe the email contact form is not working.

Hi.. have you been have to solve this problem? We are also facing the same issue!

Leave a reply

Add codeAdd image