Jump to content
Sign in to follow this  
tonyfourthumbs

sts problem

Recommended Posts

Was just checking the server error logs, and saw loads of these.

 

[Tue Jan 24 12:57:54 2006] [error] [client] PHP Notice: Undefined index: no_sts in /var/www/html/includes/application_top.php on line 18, referer:

 

------

Line 18 on the aptop is

if ($HTTP_GET_VARS["no_sts"] > 0) {

 

Doesn't seem to effect the site.

 

Anyone any idea how to stop it, and why it's coming up.

 

Cheers.

Share this post


Link to post
Share on other sites

I have the same problem with no_sts showing in my apache log. I'm going to look at the code but am hoping someone has already solved this. It happens every time application_top.php is run which can fill a log file quite quickly...

 

Nate

Share this post


Link to post
Share on other sites

Ok, on quick examination, it appears that sts is trying to see if no_sts is in the HTTP variables (i.e. passed in the URL)

 

I changed line 18 in application_top.php from:

if ($HTTP_GET_VARS["no_sts"] > 0) {

to:

if (isset($HTTP_GET_VARS["no_sts"])) {

 

and now the errors are not showing up in my apache log and the variable does seem to work correctly on the command line.

 

In the long run, I'll turn off this support in production anyway.

 

 

Anyone else have input on this topic?

 

 

Nate

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×