pollinh Posted February 24, 2007 Posted February 24, 2007 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
bkellum Posted February 25, 2007 Posted February 25, 2007 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
jasonabc Posted February 25, 2007 Posted February 25, 2007 Bill - I've PMed HPDL about getting this annoying (but major) bug in Update 060817 fixed. Will let you know what he says. Jason My Contributions: Paypal Payflow PRO | Rollover Category Images | Authorize.net Invoice Number Fix
bkellum Posted February 25, 2007 Posted February 25, 2007 Bill - I've PMed HPDL about getting this annoying (but major) bug in Update 060817 fixed. Will let you know what he says.Thanks Jason. He's a good man so I'm sure he'll come up with something. :thumbsup: Bill Kellum Sounds Good Productions STS Tutorials & more: STSv4.6, STS Add-ons (STS Power Pack), STS V4 Forum STS Forum FREE TEMPLATE
Recommended Posts
Archived
This topic is now archived and is closed to further replies.