Title: Magic quotes problem
Last modified: August 18, 2016

---

# Magic quotes problem

 *  Resolved [candeias](https://wordpress.org/support/users/candeias/)
 * (@candeias)
 * [19 years, 8 months ago](https://wordpress.org/support/topic/magic-quotes-problem/)
 * Hi, I was just alerted by a visitor to my blog that comments aren’t getting in
   due to what seems to be a bug in the PHP code. When trying to post a comment,
   the following error string shows up:
 * ‘Fatal error: Cannot redeclare add_magic_quotes() (previously declared in […]/
   public_html/wordpress/wp-comments-post.php:4) in […]/public_html/wordpress/wp-
   includes/functions.php on line 2144’
 * I’m running WP 2.0.4. What can I do to solve this thing? Thanks in advance.

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

 *  [spencerp](https://wordpress.org/support/users/spencerp/)
 * (@spencerp)
 * [19 years, 8 months ago](https://wordpress.org/support/topic/magic-quotes-problem/#post-467010)
 * Did you just do an upgrade from an older version of WordPress? If so, did you
   delete the old files before uploading new? What plugins do you have ?
 *  Maybe one of the threads through this [search result](http://wordpress.org/search/Cannot+redeclare+add_magic_quotes?forums=1)
   will help?
 * spencerp
 *  Thread Starter [candeias](https://wordpress.org/support/users/candeias/)
 * (@candeias)
 * [19 years, 8 months ago](https://wordpress.org/support/topic/magic-quotes-problem/#post-467055)
 * I did an upgrade a while back and comments worked perfectly for quite a while
   after that upgrade (too well, in fact; they were mostly spam). I made no changes
   whatsoever in my settings or files before this problem appeared – no new plugins,
   no template changes, nothing. And I only have 3 active plugins: Explicit Category
   Sort, Dashborad Options and Subscribe me.
 * Regarding the search… humpf… I made several searches for magic quotes and add
   magic quotes, which came up empty… I forgot to include the understrokes. :/
 * Still, it doesn’t seem to be any of those problems, since they all arose after
   changes while mine came up without changing a thing… by me at least. I don’t 
   know if my provider might have changed something in the settings without telling
   me.
 * In any case, replacing wp-comments-post.php with a fresh copy solved the problem.
 * Thanks
 *  [spencerp](https://wordpress.org/support/users/spencerp/)
 * (@spencerp)
 * [19 years, 8 months ago](https://wordpress.org/support/topic/magic-quotes-problem/#post-467056)
 * Oh ok.. well, glad to hear that it’s fixed now. 😉
 * spencerp

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

The topic ‘Magic quotes problem’ is closed to new replies.

## Tags

 * [php](https://wordpress.org/support/topic-tag/php/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 2 participants
 * Last reply from: [spencerp](https://wordpress.org/support/users/spencerp/)
 * Last activity: [19 years, 8 months ago](https://wordpress.org/support/topic/magic-quotes-problem/#post-467056)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
