Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

payment or shipping module attributes failed


pollinh

Recommended Posts

Posted

I was having the same problem!

 

The update of any payment or shipping module attributes failed. I could see the attibutes in the database and edit them manually with phpmyadmin but no changes were saved if I hit the update button in the admin tool.

 

i replace

the /catalog/admin/modules.php file.

 

the line :

while (list($key, $value) = each($HTTP_POST_VARS['configuration'])) {

does not execute on my system, even tho' the syntax looks correct to me!

 

to:

 

foreach ($HTTP_POST_VARS['configuration'] as $key => $value){

 

 

after this i get a error

Parse error: syntax error, unexpected '[' in /is/htdocs/wpXXXXXXX_XXXXXXXX/www/admin/modules.php on line 46

 

i use log in over https://ssl.sssss.com/xxxxxx.com/admin/modu...xxxxxxxxxxxxxxx

Posted

Frank, If this is on a 060817 osCommerce (latest version), then it is a known bug. There are two solutions roaming around.

Here is the second one (or first):

 

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