Title: Cannot post comments after WordPress 3.9 upgrade
Last modified: August 21, 2016

---

# Cannot post comments after WordPress 3.9 upgrade

 *  [notpoppy](https://wordpress.org/support/users/notpoppy/)
 * (@notpoppy)
 * [12 years ago](https://wordpress.org/support/topic/cannot-post-comments-after-wordpress-39-upgrade/)
 * I upgraded to WordPress 3.9 yesterday but now I cannot post comments on the site.
   I get the following error:
 * >  <b>Notice</b>: Undefined variable: _SERVER in <b>(URL)/wp-comments-post.php
   > </b> on line <b>8</b>
 * I have tried reinstalling 3.9 without success. I have also reverted to the default
   twentyfourteen theme and disabled all plugins which also has no effect.
 * Can anyone suggest what might have gone wrong? The portion of code in wp-comments-
   post.php it is referring to reads as follows:
 * > if ( ‘POST’ != $_SERVER[‘REQUEST_METHOD’] ) {
   >  header(‘Allow: POST’); header(‘
   > HTTP/1.1 405 Method Not Allowed’); header(‘Content-Type: text/plain’); exit;}

The topic ‘Cannot post comments after WordPress 3.9 upgrade’ is closed to new replies.

## Tags

 * [Comments](https://wordpress.org/support/topic-tag/comments/)
 * [undefined variable](https://wordpress.org/support/topic-tag/undefined-variable/)
 * [wordpress 3.9](https://wordpress.org/support/topic-tag/wordpress-3-9/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 0 replies
 * 1 participant
 * Last reply from: [notpoppy](https://wordpress.org/support/users/notpoppy/)
 * Last activity: [12 years ago](https://wordpress.org/support/topic/cannot-post-comments-after-wordpress-39-upgrade/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
