Title: HELP: Comment Error
Last modified: August 19, 2016

---

# HELP: Comment Error

 *  [amodernproposal](https://wordpress.org/support/users/amodernproposal/)
 * (@amodernproposal)
 * [16 years, 2 months ago](https://wordpress.org/support/topic/help-comment-error/)
 * Hi,
 * I upload a new theme that I purchased and it now says the following when you 
   go to post a comment, as an admin I can post a comment but guests cannot:
 * [Blog](http://edmontonweddingplanner.amodernproposal.com)
    _ <input type=”text”
   name=”author” id=”author” value=” Fatal error: Call to undefined function esc\
   _attr() in /home/amod/public\_html/edmontonweddingplanner/wp-content/themes/tofurious-
   22/comments.php on line 58
 * Any help would be much appreciated. The line it is refering to (#58 in the comments.
   php file reads:
 * _<p><input type=”text” name=”author” id=”author” value=”<?php echo esc\_attr(
   $comment\_author); ?>” size=”22″ tabindex=”1″ <?php if ($req) echo “aria-required
   =’true'”; ?> />_

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

 *  Thread Starter [amodernproposal](https://wordpress.org/support/users/amodernproposal/)
 * (@amodernproposal)
 * [16 years, 2 months ago](https://wordpress.org/support/topic/help-comment-error/#post-1395267)
 * BTT – I really need help!
 *  [dcannon1](https://wordpress.org/support/users/dcannon1/)
 * (@dcannon1)
 * [16 years, 2 months ago](https://wordpress.org/support/topic/help-comment-error/#post-1395272)
 * I believe the `esc_attr()` function is now deprecated.
 * Not sure what the new equivalent is, but for a quick fix you could replace esc_attr(
   $comment_author) with just $ocmment_author
 *  Thread Starter [amodernproposal](https://wordpress.org/support/users/amodernproposal/)
 * (@amodernproposal)
 * [16 years, 2 months ago](https://wordpress.org/support/topic/help-comment-error/#post-1395330)
 * it didn’t work 🙁

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

The topic ‘HELP: Comment Error’ is closed to new replies.

## Tags

 * [Comments](https://wordpress.org/support/topic-tag/comments/)
 * [tofurious](https://wordpress.org/support/topic-tag/tofurious/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 2 participants
 * Last reply from: [amodernproposal](https://wordpress.org/support/users/amodernproposal/)
 * Last activity: [16 years, 2 months ago](https://wordpress.org/support/topic/help-comment-error/#post-1395330)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
