Title: Cannot leave comment
Last modified: August 18, 2016

---

# Cannot leave comment

 *  Resolved [scurran](https://wordpress.org/support/users/scurran/)
 * (@scurran)
 * [19 years, 6 months ago](https://wordpress.org/support/topic/cannot-leave-comment/)
 * Hello, if someone can please help, I installed wordpress today, downloaded a 
   theme and wrote a post. So far so good. But when I click on “leave a comment”
   the page reloads with this added at the bottom:
 * Fatal error: Call to undefined function: related_posts() in /home/stacey/missmuffet-
   www/wordpress/wp-content/themes/cherry-berry-fw-10/single.php on line 20
 * My blog is at [http://www.missmuffet.net/wordpress](http://www.missmuffet.net/wordpress)
 * Thank you very much if you can help!

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

 *  [vkaryl](https://wordpress.org/support/users/vkaryl/)
 * (@vkaryl)
 * [19 years, 6 months ago](https://wordpress.org/support/topic/cannot-leave-comment/#post-479751)
 * Sounds like there’s a leftover call to a plugin (related_posts) in your index.
   php, sidebar.php, or comments.php files (any one of them or maybe all of them).
   You’ll need to open those files and search for “related_posts”; when you find
   it delete it….
 *  Thread Starter [scurran](https://wordpress.org/support/users/scurran/)
 * (@scurran)
 * [19 years, 6 months ago](https://wordpress.org/support/topic/cannot-leave-comment/#post-479753)
 * I checked them all and do not find that anywhere.
 * How strange. Do you think this is related to the theme or the original intallation?
   I can try another theme, although I’d really like to use this one. Thanks again.
 *  Thread Starter [scurran](https://wordpress.org/support/users/scurran/)
 * (@scurran)
 * [19 years, 6 months ago](https://wordpress.org/support/topic/cannot-leave-comment/#post-479754)
 * Wait – I found it in single.php. Here is an excerpt:
 * <!– unCOmment only u have the related post plugin installed
    <div class=”relatedpost”
   > **Possibly Some Related Posts**
    -  <?php related_posts(5, 10, ‘
    - ‘, ‘
    - ‘, ”, ”, false, false); ?>
 *  </div>
 * What exactly should I delete?
 *  [vkaryl](https://wordpress.org/support/users/vkaryl/)
 * (@vkaryl)
 * [19 years, 6 months ago](https://wordpress.org/support/topic/cannot-leave-comment/#post-479755)
 * Well, normally this should have been commented out, but looks like that didn’t
   happen.
 * Delete the whole section beginning with
    `<div class="relatedpost">` and ending
   with `</div>`
 * and see what happens. Keep a backup copy of the file!
 *  Thread Starter [scurran](https://wordpress.org/support/users/scurran/)
 * (@scurran)
 * [19 years, 6 months ago](https://wordpress.org/support/topic/cannot-leave-comment/#post-479766)
 * Thank you, it seems to be working fine now.
 *  [vkaryl](https://wordpress.org/support/users/vkaryl/)
 * (@vkaryl)
 * [19 years, 6 months ago](https://wordpress.org/support/topic/cannot-leave-comment/#post-479767)
 * Thats good – happy blogging!

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

The topic ‘Cannot leave comment’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 6 replies
 * 2 participants
 * Last reply from: [vkaryl](https://wordpress.org/support/users/vkaryl/)
 * Last activity: [19 years, 6 months ago](https://wordpress.org/support/topic/cannot-leave-comment/#post-479767)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
