Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

sts problem


Guest

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.

Link to comment
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

Link to comment
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

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...