Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Installing modules


MartynMJ

Recommended Posts

Hey, I tried to install the worldpay payment module but when i click the install button it does nothing what so ever it basicly just reloads the page...

 

I have tried installing another module and it does exactly the same :(.

 

I need to get this sorted soon so could some one please help me asap.

 

Thanks

Link to comment
Share on other sites

Hey, I tried to install the worldpay payment module but when i click the install button it does nothing what so ever it basicly just reloads the page...

 

I have tried installing another module and it does exactly the same :( .

 

I need to get this sorted soon so could some one please help me asap.

 

Thanks

If this is a new installation of osC 060817, then you are experiencing the widely known "refresh bug" of the modules section which includes shipping, payment, etc.

There is a simple fix:

 

 

1. Open the catalog/admin/includes/functions/compatibility.php.

2. At the end of the “do_magic_quotes_gpc” routine, add the following code

 

reset($ar);

 

It will end up looking like this:

 

function do_magic_quotes_gpc(&$ar) {
if (!is_array($ar)) return false;
while (list($key, $value) = each($ar)) {
if (is_array($ar[$key])) {
do_magic_quotes_gpc($ar[$key]);
} else {
$ar[$key] = addslashes($value);
}
}
reset($ar);
}

 

3. Do the same for the compatibility.php file located in catalog/includes/functions/compatibility.php.

Bill Kellum

 

Sounds Good Productions

STS Tutorials & more: STSv4.6, STS Add-ons (STS Power Pack), STS V4 Forum STS Forum FREE TEMPLATE

Link to comment
Share on other sites

I added what you said the the files and it stlil just refreshes :'( any other reason it could be doing this?
Did you make the changes to "both" compatibility.php files?

 

You may also want to check out the following thread:

http://www.oscommerce.com/forums/index.php?s=&...t&p=1028376

 

Hope this helps you out,

Bill Kellum

 

Sounds Good Productions

STS Tutorials & more: STSv4.6, STS Add-ons (STS Power Pack), STS V4 Forum STS Forum FREE TEMPLATE

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...