password-protected icon indicating copy to clipboard operation
password-protected copied to clipboard

Timeout error after login page

Open stuartfrye opened this issue 10 years ago • 2 comments

I just installed this plugin and am immediately getting a timeout error after the login page. Here are some additional details:

  • Using a shared hosting set up from Namecheap
  • Not using any caching plugins (or any plugins other than this one)
  • On Password Protected, I have the "Allow Administrators" and "Allow Logged In Users" checked

Happy to provide any additional info if it would help get this plugin working. Thanks!

stuartfrye avatar Aug 02 '15 20:08 stuartfrye

I'm getting 408 too

jackmahoney avatar Oct 31 '15 10:10 jackmahoney

I can offer a personal observation here based on our recent experience with our own host. The plugin works fine in our development environment and on various other servers, but not on this one host.

We boiled it down to the presence of the 'testcookie' hidden field on the login form.

<input type="hidden" name="testcookie" value="1" />

I generated a static form based on the generated markup (form.php) and had it submit to itself on the problem server and we can replicate the timeout. It sounds like some kind of filtering gear at the host end (they say it works fine inside their own network).

Changing the fieldname to anything else allowed it to work:

<input type="hidden" name="anythingelse" value="1" />

I haven't yet gotten to looking into the purpose of that field but if it's a possibility to rename or remove it that might provide the easiest solution (for us at least - your mileage may vary).

I'm waiting on a response from the host to see if they can track down the root cause.

Test form attached for reference form2.zip

oobi avatar Jun 22 '16 00:06 oobi