Title: Fatal error: Cannot redeclare write_post()
Last modified: August 18, 2016

---

# Fatal error: Cannot redeclare write_post()

 *  [tomfern](https://wordpress.org/support/users/tomfern/)
 * (@tomfern)
 * [19 years, 1 month ago](https://wordpress.org/support/topic/fatal-error-cannot-redeclare-write_post/)
 * When I try and activate certain plugins, I get the following fatal error:
 * “Fatal error: Cannot redeclare write_post() (previously declared in ..//wp-admin/
   admin-functions.php:4) in ../wp-admin/admin-functions.php on line 3″
 * Any ideas on how to solve this? I’ve tried everything.
 * Thanks in advance,
 * Tom

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

 *  [zoutesnor](https://wordpress.org/support/users/zoutesnor/)
 * (@zoutesnor)
 * [19 years, 1 month ago](https://wordpress.org/support/topic/fatal-error-cannot-redeclare-write_post/#post-551531)
 * In these plugins the file /wp-admin/admin-functions.php is probably called through
   an include or require command. Change this to an include_once or require_once
   command. Click [here](http://www.somecoders.com/2006/06/the-difference-between-include-and-include_once/)
   for more info on this.
 *  Thread Starter [tomfern](https://wordpress.org/support/users/tomfern/)
 * (@tomfern)
 * [19 years, 1 month ago](https://wordpress.org/support/topic/fatal-error-cannot-redeclare-write_post/#post-551534)
 * Thanks, but it was already a required_once command.
 * Any other suggestions?
 *  [zoutesnor](https://wordpress.org/support/users/zoutesnor/)
 * (@zoutesnor)
 * [19 years, 1 month ago](https://wordpress.org/support/topic/fatal-error-cannot-redeclare-write_post/#post-551605)
 * Comment out the line with the require in it, and see if it works. (it is a longshot
   btw)
 * **edit:** Forget that, look [over here](http://www.bos89.nl/1212).

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

The topic ‘Fatal error: Cannot redeclare write_post()’ is closed to new replies.

## Tags

 * [cannot](https://wordpress.org/support/topic-tag/cannot/)
 * [fatal](https://wordpress.org/support/topic-tag/fatal/)
 * [redeclare](https://wordpress.org/support/topic-tag/redeclare/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 2 participants
 * Last reply from: [zoutesnor](https://wordpress.org/support/users/zoutesnor/)
 * Last activity: [19 years, 1 month ago](https://wordpress.org/support/topic/fatal-error-cannot-redeclare-write_post/#post-551605)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
