Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Admin option don't update


ccarletti

Recommended Posts

Posted

When trying to edit the configurations in admin such as shipping options and payment modules update don't save. I thought it was in the file permissions but I believe that they are correct, but may be wrong. Any help will be appreciated.

 

Chris Carletti

Gifts N Wicks

Posted
When trying to edit the configurations in admin such as shipping options and payment modules update don't save. I thought it was in the file permissions but I believe that they are correct, but may be wrong. Any help will be appreciated.

 

Chris Carletti

Gifts N Wicks

Chris, this is a know bug in the osCommerce 060817 release that does not refresh the modules section of the admin with any updated changes. Here is a fix that has worked for several users:

 

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

Archived

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

×
×
  • Create New...