View Full Version : Random Content Order (first load problem)

11-21-2010, 09:02 PM
1) Script Title: Random Content Order

2) Script URL (on DD):

3) Describe problem:
This is a quirky problem im finding with this script, works fine most of the time but especially when called for the first time in IE browser it causes the page not to load. Refresh it and all is ok. Happens less often in Firefox.

Would be interested to know if anybody has any ideas of fix for this or has come accross this problem.

Script controls adds on right and is the same as code on DD site.

The domain is www.worldsporting.net and you should get this problem if not on first access by closing browser and trying to re load a few times.


11-22-2010, 01:57 PM
The page uses PHP and from the looks of it PHP includes. Many if not all of these includes are complete pages in themselves with opening and closing html head and body tags. They also have meta tags and stylesheet link tags. This produces invalid HTML code. Once that happens it's really up to the browser as to what it can make of the page using its error correcting routines.

There could be other problems, but this really should be fixed first. Ideally you should validate the page:


Even that may need to be reloaded a few times to get results. This is probably due to the same problem I outlined, but may actually be an issue with the server as indicated.

But just removing of all those tags that don't belong on the included pages might fix things.