Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

OSC installed, but cannot update things in Admin


Maitland

Recommended Posts

Posted

Hello,

 

I ahve found that whenever I install osc, I can update the catalog information, shop details etc, but i have found i cannot update certain areas.

 

For example I cannot change the settings any of the modules.

 

I have tried changing CHMOD on these files, but nothing seems to be working.

 

Any ideas as to whats happening?

Posted
Hello,

 

I ahve found that whenever I install osc, I can update the catalog information, shop details etc, but i have found i cannot update certain areas.

 

For example I cannot change the settings any of the modules.

 

I have tried changing CHMOD on these files, but nothing seems to be working.

 

Any ideas as to whats happening?

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...