too many redirections

For technical support for all editions of CSS HTML Validator. Includes bug reports.
Post Reply
User avatar
moganero
Rank II - Novice
Rank II - Novice
Posts: 32
Joined: Tue Feb 01, 2005 5:47 am
Location: Newcastle under Lyme, UK
Contact:

too many redirections

Post by moganero » Wed Jul 30, 2014 8:56 am

Batch wizard is giving me the following message when it checks a link in http://www.square-sun.net/?page_id=54. The target site is another of my websites.
20 redirections (too many): "http://www.landforsalestaffordshire.co.uk/index.php" (302 - moved temporarily),
The page http://www.landforsalestaffordshire.co.uk/ is OK when viewed in a browser, with no noticeable delay, however it has some cookie handling javascript that appears when a visitor has not been on the site before - could this cause this to happen?

Additionally, using batch wizard on the target site throws a lot of internal server error messages, which are not reflected in a browser.
Batch wizard settings are for

User avatar
Albert Wiersch
Site Admin
Site Admin
Posts: 3451
Joined: Sat Dec 11, 2004 9:23 am
Location: Near Dallas, TX
Contact:

Re: too many redirections

Post by Albert Wiersch » Wed Jul 30, 2014 9:29 am

Hello,

The Batch Wizard does not support or run JavaScript, which could be an issue if a website requires it (like to set cookies).

Recent versions of the Batch Wizard do support cookies. If you're using an older version of CSE HTML Validator that doesn't support cookies then that could be a cause as well. What version of CSE HTML Validator are you using?

I don't know what internal server error messages you are getting on the target site, but you probably shouldn't be getting them. It sounds like a website coding or configuration problem, perhaps only made evident when the Batch Wizard is used (perhaps due to it not having JavaScript).

I would need to know more details to help further.
Image
Albert Wiersch

User avatar
moganero
Rank II - Novice
Rank II - Novice
Posts: 32
Joined: Tue Feb 01, 2005 5:47 am
Location: Newcastle under Lyme, UK
Contact:

Re: too many redirections

Post by moganero » Fri Aug 01, 2014 3:47 am

i'm using 14.04, which AFAIK is the latest version. I'll try removing the Javascript and see if that makes any difference.

User avatar
moganero
Rank II - Novice
Rank II - Novice
Posts: 32
Joined: Tue Feb 01, 2005 5:47 am
Location: Newcastle under Lyme, UK
Contact:

Re: too many redirections

Post by moganero » Fri Aug 01, 2014 4:08 am

Tried removing the JS/cookies code - has no effect on the internal server errors, but the "too may redirects" is no longer happening with or without it.

User avatar
Albert Wiersch
Site Admin
Site Admin
Posts: 3451
Joined: Sat Dec 11, 2004 9:23 am
Location: Near Dallas, TX
Contact:

Re: too many redirections

Post by Albert Wiersch » Fri Aug 01, 2014 9:08 am

Hello,

You may want to try slowing the Batch Wizard down. Sometimes it might go too fast for the server and this may be causing the internal server errors. The easiest way is to increase the "wait time before each URL request" in the Limits page of the Batch Wizard Options. You might want to try a value of 1000 milliseconds for one second.

You can also slow down the link checker if that might be part of the issue. Those options are in the Validator Engine Options, Link Checking page. You can increase the time between checks and/or limit the maximum number of simultaneous link checks.
Image
Albert Wiersch

User avatar
moganero
Rank II - Novice
Rank II - Novice
Posts: 32
Joined: Tue Feb 01, 2005 5:47 am
Location: Newcastle under Lyme, UK
Contact:

Re: too many redirections

Post by moganero » Fri Aug 01, 2014 9:40 am

I set "wait time before each URL request" to 1000 and increased the time between checks to 500ms (then 1000ms) and reduced the number of simultaneous link checks to 10 (then 5) and it still gives the same result.
I noticed an empty .htaccess file in some (but not all) directories - not sure why they should be there, could they be a problem do you think?

User avatar
Albert Wiersch
Site Admin
Site Admin
Posts: 3451
Joined: Sat Dec 11, 2004 9:23 am
Location: Near Dallas, TX
Contact:

Re: too many redirections

Post by Albert Wiersch » Fri Aug 01, 2014 9:48 am

I don't think empty .htaccess files would be a problem, but I'm not sure.

If you are still getting internal server errors, then I would try to get more details from the server logs as to exactly what's happening. What is the server error log saying about these errors? Hopefully there is more information there.
Image
Albert Wiersch

User avatar
moganero
Rank II - Novice
Rank II - Novice
Posts: 32
Joined: Tue Feb 01, 2005 5:47 am
Location: Newcastle under Lyme, UK
Contact:

Re: too many redirections

Post by moganero » Fri Aug 01, 2014 10:43 am

I'm getting a lot of errors like this in the log:

Code: Select all

[Fri Aug 01 16:15:02 2014] [error] [client 88.97.30.31] client denied by server configuration: /home/landstaf/public_html/land-for-sale/moss-lane-madeley/documents/.htaccess, referer: http://landforsalestaffordshire.co.uk/land-for-sale/moss-lane-madeley/documents/
These are also generated by a browser. The htaccess files in question just set fancy indexing. Not sure if this is the problem - I'll have to do some more testing.

User avatar
Albert Wiersch
Site Admin
Site Admin
Posts: 3451
Joined: Sat Dec 11, 2004 9:23 am
Location: Near Dallas, TX
Contact:

Re: too many redirections

Post by Albert Wiersch » Fri Aug 01, 2014 11:18 am

OK, thanks. Please let us know what you find out. If there is an issue with CSE HTML Validator then I will definitely try to address it, but it looks like its a server configuration issue.
Image
Albert Wiersch

Post Reply