WordPress.org

Forums

Comments Temporarily Unavailable (4 posts)

  1. AnnieInItaly
    Member
    Posted 1 year ago #

    I run a blog, and it's been quite a while since we've received any comments, so I went in to try to leave one to test it out. When I submitted the comment, the page turned white and just said, "temporarily unavailable". I assume that this is not temporary, as our comments have ceased the past couple of months. Everything is updated, I'm not using jetpack (I've read that can cause issues), and I tried changing the type of permalinks, as for some reason that helped someone else. I really have no idea how to proceed.

    Any ideas? The URL is logcabincooking.com

  2. Spyroweb
    Member
    Posted 1 year ago #

    Hello,

    what is this wp-comment-post.php file?

    have you create this?

    have you comments.php in your theme directory?

    if no then create it.

    and paste the code like.

    <?php
    /**
     * The template for displaying Comments
     *
     * The area of the page that contains comments and the comment form.
     *
     * @package WordPress
     * @subpackage Twenty_Thirteen
     * @since Twenty Thirteen 1.0
     */
    
    /*
     * If the current post is protected by a password and the visitor has not yet
     * entered the password we will return early without loading the comments.
     */
    if ( post_password_required() )
    	return;
    ?>
    
    <div id="comments" class="comments-area">
    
    	<?php if ( have_comments() ) : ?>
    		<h2 class="comments-title">
    			<?php
    				printf( _nx( 'One thought on &ldquo;%2$s&rdquo;', '%1$s thoughts on &ldquo;%2$s&rdquo;', get_comments_number(), 'comments title', 'twentythirteen' ),
    					number_format_i18n( get_comments_number() ), '<span>' . get_the_title() . '</span>' );
    			?>
    		</h2>
    
    		<ol class="comment-list">
    			<?php
    				wp_list_comments( array(
    					'style'       => 'ol',
    					'short_ping'  => true,
    					'avatar_size' => 74,
    				) );
    			?>
    		</ol><!-- .comment-list -->
    
    		<?php
    			// Are there comments to navigate through?
    			if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) :
    		?>
    		<nav class="navigation comment-navigation" role="navigation">
    			<h1 class="screen-reader-text section-heading"><?php _e( 'Comment navigation', 'twentythirteen' ); ?></h1>
    			<div class="nav-previous"><?php previous_comments_link( __( '&larr; Older Comments', 'twentythirteen' ) ); ?></div>
    			<div class="nav-next"><?php next_comments_link( __( 'Newer Comments &rarr;', 'twentythirteen' ) ); ?></div>
    		</nav><!-- .comment-navigation -->
    		<?php endif; // Check for comment navigation ?>
    
    		<?php if ( ! comments_open() && get_comments_number() ) : ?>
    		<p class="no-comments"><?php _e( 'Comments are closed.' , 'twentythirteen' ); ?></p>
    		<?php endif; ?>
    
    	<?php endif; // have_comments() ?>
    
    	<?php comment_form(); ?>
    
    </div><!-- #comments -->

    and include it in your single.php file like

    <?php comments_template(); ?>

    inside in your while loop.
    example

    <?php
    /**
     * The template for displaying all single posts
     *
     * @package WordPress
     * @subpackage Twenty_Thirteen
     * @since Twenty Thirteen 1.0
     */
    
    get_header(); ?>
    
    	<div id="primary" class="content-area">
    		<div id="content" class="site-content" role="main">
    
    			<?php /* The loop */ ?>
    			<?php while ( have_posts() ) : the_post(); ?>
    
    				<?php get_template_part( 'content', get_post_format() ); ?>
    				<?php twentythirteen_post_nav(); ?>
    				<?php comments_template(); ?>
    
    			<?php endwhile; ?>
    
    		</div><!-- #content -->
    	</div><!-- #primary -->
    
    <?php get_sidebar(); ?>
    <?php get_footer(); ?>
  3. esmi
    Forum Moderator
    Posted 1 year ago #

    @Spyro webz: You cannot just drop template files from one theme into another.

    @AnnieInItaly: I'm sorry but as you appear to be using a non-WPORG theme, you really need to seek support from the theme's developers - paid or otherwise. We only support themes downloaded from wordpress.org here. Have you tried:

    - deactivating all plugins to see if this resolves the problem. If this works, re-activate the plugins one by one until you find the problematic plugin(s).

    - switching to the default theme to rule out any theme-specific problems.

    - resetting the plugins folder by FTP or PhpMyAdmin. Sometimes, an apparently inactive plugin can still cause problems.

    - re-uploading all files & folders - except the wp-content folder and wp-config.php & root .htaccess files - from a fresh download of WordPress. Make sure that you delete the old copies of files & folder before uploading the new ones.

  4. AnnieInItaly
    Member
    Posted 1 year ago #

    Thanks. I'm waiting to hear back from the theme's developers, but as it doesn't appear to be a problem with the theme itself I'm not holding my breath. I tried deactivating all plugins and switching to the default theme, and it didn't help.

    I'll have to look into the last two options, but if I reset the plugins, will won't that wipe out all of my settings for all of my plugins? And if I re-upload files/folders and do a fresh download of wordpress, won't that basically wipe my site? If I don't have to build the whole thing from scratch again, that would obviously be preferable.

Topic Closed

This topic has been closed to new replies.

About this Topic