Title: ERR_EMPTY_RESPONSE when editing post
Last modified: August 31, 2016

---

# ERR_EMPTY_RESPONSE when editing post

 *  Resolved [Nigel D](https://wordpress.org/support/users/nigeldyer/)
 * (@nigeldyer)
 * [10 years ago](https://wordpress.org/support/topic/err_empty_response-when-editing-post/)
 * I am now getting an ERR_EMPTY_RESPONSE error message every time I try to edit
   a post, but only with Google Chrome on my Windows 7 laptop. There is no problem
   with other web browsers, or Google Chrome on either of my Windows 10 PCs or with
   my other website running the same template and plugins The only thing that seems
   to fix it is to disable the Post Expirator (ver 2.1.4) plugin. The problem has
   only recently started so I suspect that it was the 4.5.1 wordpress update that
   triggered the problem.
 * [https://wordpress.org/plugins/post-expirator/](https://wordpress.org/plugins/post-expirator/)

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

 *  Thread Starter [Nigel D](https://wordpress.org/support/users/nigeldyer/)
 * (@nigeldyer)
 * [10 years ago](https://wordpress.org/support/topic/err_empty_response-when-editing-post/#post-7352119)
 * I have found the problem, except it should not be a problem. In the post-expirator
   plugin at about line 290 in the main php file there are two for loops of the 
   form:
 *     ```
       for (var i=0; i<max; i++) {
           cats[i].disabled = 'disable';
         }
       ```
   
 * If I change the code to
 *     ```
       var i;
         for (i=0; i<max; i++) {
           cats[i].disabled = 'disable';
         }
       ```
   
 * It works fine. This should not make any difference. I suspect a problem with 
   the chrome js interpretor.
 *  Thread Starter [Nigel D](https://wordpress.org/support/users/nigeldyer/)
 * (@nigeldyer)
 * [10 years ago](https://wordpress.org/support/topic/err_empty_response-when-editing-post/#post-7352121)
 * P.S.
    I find that what actually makes the difference is having a line, even a
   comment line between the line that sets the maximum value for the loop, and the
   loop itself, e.g. the following also fixes the problem
 *     ```
       var max = cats.length;
       // This is some dummy text which ensures the for loop works OK
          for (var i=0; i<max; i++) {
            cats[i].disabled = '';
       	}
       ```
   

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

The topic ‘ERR_EMPTY_RESPONSE when editing post’ is closed to new replies.

 * ![](https://ps.w.org/post-expirator/assets/icon-256x256.png?rev=3118683)
 * [Schedule Post Changes With PublishPress Future: Unpublish, Delete, Change Status, Trash, Change Categories](https://wordpress.org/plugins/post-expirator/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/post-expirator/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/post-expirator/)
 * [Active Topics](https://wordpress.org/support/plugin/post-expirator/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/post-expirator/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/post-expirator/reviews/)

## Tags

 * [edit-post](https://wordpress.org/support/topic-tag/edit-post/)
 * [ERR_EMPTY_RESPONSE](https://wordpress.org/support/topic-tag/err_empty_response/)

 * 2 replies
 * 1 participant
 * Last reply from: [Nigel D](https://wordpress.org/support/users/nigeldyer/)
 * Last activity: [10 years ago](https://wordpress.org/support/topic/err_empty_response-when-editing-post/#post-7352121)
 * Status: resolved