Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Security Pro 2.0 Installation


Adamanto75

Recommended Posts

Hello Everyone!

 

I'm installing security pro for osc 2.3 and I'm testing it to see if it works, and I followed the instructions to put those letters and characters in the search bar, click search, and you should see the word "working"

 

But when I hit search it doesn't show the word working just the same characters I entered [w](o)%3Cr%3Ek|i*n^g

 

Is security pro not working?

 

Any help or advice would be greatly appreciated.

 

Thanks So much

 

Adamanto75

Link to comment
Share on other sites

  • 2 weeks later...
  • 2 weeks later...

Same here...

I'm running 2.2-MS2

added <?php print $keywords; ?> on bottom of search results page according to another post, but this didn't help

 

I have the same problem, I get [w](o)%3Cr%3Ek|i*n^g when printing the $keywords, any ideas of how to debug it? ( I use spanish lang in the site)

Link to comment
Share on other sites

  • 6 months later...

I got it to work, but it's a long time ago. Have you tried this one yet:

 

Nevermind. I applied the patch below and every tests fine now. Thanks!

 

In (catalog)/includes/functions/compatibility.php

 

Find ..

 

// $HTTP_xxx_VARS are always set on php4

if (!is_array($HTTP_GET_VARS)) $HTTP_GET_VARS = array();

if (!is_array($HTTP_POST_VARS)) $HTTP_POST_VARS = array();

if (!is_array($HTTP_COOKIE_VARS)) $HTTP_COOKIE_VARS = array();

 

 

Replace with ..

 

if (PHP_VERSION >= 4.1) {

$HTTP_GET_VARS =& $_GET;

$HTTP_POST_VARS =& $_POST;

$HTTP_COOKIE_VARS =& $_COOKIE;

$HTTP_SESSION_VARS =& $_SESSION;

$HTTP_POST_FILES =& $_FILES;

$HTTP_SERVER_VARS =& $_SERVER;

} else {

if (!is_array($HTTP_GET_VARS)) $HTTP_GET_VARS = array();

if (!is_array($HTTP_POST_VARS)) $HTTP_POST_VARS = array();

if (!is_array($HTTP_COOKIE_VARS)) $HTTP_COOKIE_VARS = array();

 

Otherwise delete all your cookies and cache before retrying.

Last possibility is that you simply made a small mistake in the implementation. I always do it in a hurry, so perhaps that's where it went wrong with me.

 

good luck

Link to comment
Share on other sites

  • 2 months later...

I was having this issue too and used the code provided by Marco - it does work but just wanted to give a heads up as it appears he's missed off the trailing curly bracket - copying the code as is will break your site but adding in the curly bracket at the end will get it working as it should.

 

So it should be:

 

if (PHP_VERSION >= 4.1) {

$HTTP_GET_VARS =& $_GET;

$HTTP_POST_VARS =& $_POST;

$HTTP_COOKIE_VARS =& $_COOKIE;

$HTTP_SESSION_VARS =& $_SESSION;

$HTTP_POST_FILES =& $_FILES;

$HTTP_SERVER_VARS =& $_SERVER;

} else {

if (!is_array($HTTP_GET_VARS)) $HTTP_GET_VARS = array();

if (!is_array($HTTP_POST_VARS)) $HTTP_POST_VARS = array();

if (!is_array($HTTP_COOKIE_VARS)) $HTTP_COOKIE_VARS = array();

}

Link to comment
Share on other sites

  • 2 weeks later...
Posted · Hidden by Jan Zonjee, December 11, 2012 - nothing to do with the thread
Hidden by Jan Zonjee, December 11, 2012 - nothing to do with the thread

301 redirect is a permanent redirect from one url to the other,like its change the address form.Make sure you have a 301 redirect between the http:// and the http://www versions of your website.

Link to comment

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...