<p>I have received a notification about a pending WordPress comment that was made for one article.</p>
<p>When I have clicked on links in my e-mail I wasn&#8217;t able to move it to trash, spam it or approve it.</p>
<p><a href="https://www.wincert.net/wp-content/uploads/2015/07/mail-notification.png"><img class="alignnone size-full wp-image-1551" src="https://www.wincert.net/wp-content/uploads/2015/07/mail-notification.png" alt="mail notification wordpress comments" width="659" height="185" /></a></p>
<p>I have received the following message:</p>
<p>You are not allowed to edit comments on this post.</p>
<p><a href="https://www.wincert.net/wp-content/uploads/2015/07/email_links_error.png"><img class="alignnone size-full wp-image-1552" src="https://www.wincert.net/wp-content/uploads/2015/07/email_links_error.png" alt="wordpress comment error" width="377" height="55" /></a></p>
<p>After that I have tried to delete the comment from my WordPress administration panel but as you can see from the screenshot below I wasn&#8217;t able to select it as there is no checkbox for it. There are also no quick commands that are visible on the other comment in the screenshot.</p>
<p><a href="https://www.wincert.net/wp-content/uploads/2015/07/comment.png"><img class="alignnone size-full wp-image-1553" src="https://www.wincert.net/wp-content/uploads/2015/07/comment.png" alt="wordpress comment" width="1450" height="157" /></a></p>
<p>Unfortunately there is no way to delete this comment from the WordPress itself. We&#8217;ll have to delete it directly from the database.</p>
<p>Before doing any changes <span style="text-decoration: underline;"><strong>please make a backup of your database</strong></span>!!!!</p>
<p>To do this please navigate to your Cpanel (http://yourwebsite/cpanel)</p>
<p>Open PHPMy Admin and in the left pane expand your WordPress database.</p>
<p>Select comments table (have in mind that before comments table there is a database prefix)</p>
<p>In the right pane sort comments by &#8220;comment_date&#8221;</p>
<p><a href="https://www.wincert.net/wp-content/uploads/2015/07/cpanel_comment.png"><img class="alignnone size-full wp-image-1555" src="https://www.wincert.net/wp-content/uploads/2015/07/cpanel_comment.png" alt="cpanel comment wordpress phpmyadmin" width="1405" height="242" /></a></p>
<p>As you can see, our problematic comment has a <strong>comment_post_ID</strong> of <strong>0</strong> which is not good.</p>
<p>Click on the Delete button for the desired comment and in the confirmation windows click OK.</p>
<p><a href="https://www.wincert.net/wp-content/uploads/2015/07/row_deleted.png"><img class="alignnone size-full wp-image-1556" src="https://www.wincert.net/wp-content/uploads/2015/07/row_deleted.png" alt="comment deleted message wordpress phpmyadmin" width="362" height="77" /></a></p>
<p>That&#8217;s it.</p>
<p>I&#8217;m not sure why this is happening and if this a WordPress bug I hope it will be fixed soon.</p>
<p>Feel free to leave your comments below.</p>

Cannot delete a comment in WordPress
