• Resolved ashkan_72kiany

    (@ashkan_72kiany)


    how solve comment?

    Warning: Missing argument 1 for get_comment(), called in C:\wamp\www\wordpress\wp-content\plugins\gd-rating-system\rating\base.expanded.php on line 36 and defined in C:\wamp\www\wordpress\wp-includes\comment.php on line 171

    comment.php

    <?php if(!empty($_SERVER['SCRIPT_FILENAME']) && 'comments.php' == basename($_SERVER['SCRIPT_FILENAME'])) : ?>
    <?php endif; ?>
    
    <?php if(!empty($post->post_password)) : ?>
    	<?php if($_COOKIE['wp-postpass_' . COOKIEHASH] != $post->post_password) : ?>
    	<?php endif; ?>
    <?php endif; ?>
    
    <?php if($comments) : ?>
    	<?php foreach($comments as $comment) : ?>
    		<?php if ($comment->comment_approved == '0') : ?>
    		<?php endif; ?>
    	<?php endforeach; ?>
    <?php else : ?>
    <?php endif; ?>
    
    <?php if(comments_open()) : ?>
    	<?php if(get_option('comment_registration') && !$user_ID) : ?>
    	<?php else : ?>
    		<?php if($user_ID) : ?>
    		<?php else : ?>
    		<?php endif; ?>
    	<?php endif; ?>
    <?php else : ?>
    <?php endif; ?>
    
    <?php if($comments) : ?>
    	<ol>
      	<?php foreach($comments as $comment) : ?>
    		<li id="comment-<?php comment_ID(); ?>">
    			<?php if ($comment->comment_approved == '0') : ?>
    				<p>Your comment is awaiting approval</p>
    			<?php endif; ?>
    			<?php comment_text(); ?>
    			<cite><?php comment_type(); ?> by <?php comment_author_link(); ?> on <?php comment_date(); ?> at <?php comment_time(); ?></cite>
    		</li>
    	<?php endforeach; ?>
    	</ol>
    <?php else : ?>
    	<p>No comments yet</p>
    <?php endif; ?>

    https://wordpress.org/plugins/gd-rating-system/

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘solve comment error?’ is closed to new replies.