• Resolved Nigel D

    (@nigeldyer)


    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://www.ads-software.com/plugins/post-expirator/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter Nigel D

    (@nigeldyer)

    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

    (@nigeldyer)

    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.