Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Server problem? Missing code on first page-load!

Status
Not open for further replies.

RISTMO

Programmer
Nov 16, 2001
1,259
US
Ok, this is really weird.


All I can figure out is that the first time the homepage is loaded (per browser session) there's code missing on the homepage, making the footer go up at the top instead of in a <td> at the bottom. Load it a couple times and you'll see what happens. Towards the bottom of the source code is where part's missing. If you refresh the page once it's loaded (or click any of the links) it works just great. But the first time it won't. I'm thinking this is more of a server problem than an html problems, but I wasn't sure where else to post it...Definately stars awarded for the correct answer, cause this is really holding me up right now.

Thanks a ton!
Rick

 
I spotted this tag that might be causing the problem: <tdign="center">

Looks like it should be <td align="center">.



There's always a better way. The fun is trying to find it!
 
Did you refresh the page? ;-). That's what the problem is. It takes out part of the code the first time the page loads....so you only see <tdign... instead of <td align... However, if you refresh the page, it works great. So what could cause it to output different code from the same page? There's nothing dynamic doing that. That code is hardcoded.

Rick

 

I'd say your PHP server is doing something weird, as the first time the page loads, I see this:

Code:
<input type="hidden" name="osCsid" value="52e8da266473b5b94264b3385c3df62c" />

in the source, but after refreshing, it is totally not there!

Suggest maybe the PHP forum might hold more answers?

Dan
 
Actually, I think that osCsid is osCommerce's session id....for some reasons it displays it the first time and not afterwards...perhaps it isn't registered the first time the page loads so it's passed in (not just in the <input>, but in all the links), and then after the first load, it's session_registered and not passed in? I think that that is a completely different issue and not even a problem. But I'll ask them, just to be sure.

Hmm...I just checked...that place where the input is is not coded into my page. Somehow osCommerce is detecting that the session isn't registered and is parsing my template, adding the <input> to my form. That's really weird. Perhaps osCommerce is doing the same thing with my footer and causing all the problems?

I'm going to try moving this to a different server and seeing if it works there. If so, it's most likely a server problem. If not.....I'll post on the osCommerce support forums. Thanks for pointing that out! It might be the cause of all the problems...

Rick

 

That would be an interesting bug - a server messing up code like that... Keep us posted on the outcome!

Dan
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top