Title: solve comment error?
Last modified: August 31, 2016

---

# solve comment error?

 *  Resolved [ashkan_72kiany](https://wordpress.org/support/users/ashkan_72kiany/)
 * (@ashkan_72kiany)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/solve-comment-error/)
 * 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/](https://wordpress.org/plugins/gd-rating-system/)

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [Milan Petrovic](https://wordpress.org/support/users/gdragon/)
 * (@gdragon)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/solve-comment-error/#post-7034139)
 * Thanks for reporting, I will investigate this problem. I need to know which version
   of WordPress you are using.
 *  Thread Starter [ashkan_72kiany](https://wordpress.org/support/users/ashkan_72kiany/)
 * (@ashkan_72kiany)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/solve-comment-error/#post-7034144)
 * wordpress 4.3.3
 * update wordpress 4.4.2 amd solved problam.
 * thank you milan.
 *  Plugin Author [Milan Petrovic](https://wordpress.org/support/users/gdragon/)
 * (@gdragon)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/solve-comment-error/#post-7034152)
 * Excellent, but I will still check it out with older WordPress to make sure it
   is OK there too.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘solve comment error?’ is closed to new replies.

 * ![](https://ps.w.org/gd-rating-system/assets/icon.svg?rev=2889273)
 * [GD Rating System](https://wordpress.org/plugins/gd-rating-system/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/gd-rating-system/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/gd-rating-system/)
 * [Active Topics](https://wordpress.org/support/plugin/gd-rating-system/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/gd-rating-system/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/gd-rating-system/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Milan Petrovic](https://wordpress.org/support/users/gdragon/)
 * Last activity: [10 years, 4 months ago](https://wordpress.org/support/topic/solve-comment-error/#post-7034152)
 * Status: resolved