tobicky Posted January 15, 2007 Share Posted January 15, 2007 Hi I cannot succesfully update any of the changes I make to any of the Payment Modules. E.G. 'PayPal' or 'PROTX' I press install from the admin section, when I select update - all my changes revert to the default. Can anyone help? I've tried updating to the new version of osCommerce 060817. I've checked the permissions and they seem to be unusual e.g lots of dashes.... I have been stuck all week and with the shop due to 'Go Live', I would appreciate any help or guidance. Kind Regards Toby Quote Link to comment Share on other sites More sharing options...
tobicky Posted January 15, 2007 Author Share Posted January 15, 2007 Hi I cannot succesfully update any of the changes I make to any of the Payment Modules. E.G. 'PayPal' or 'PROTX' I press install from the admin section, when I select update - all my changes revert to the default. Can anyone help? I've tried updating to the new version of osCommerce 060817. I've checked the permissions and they seem to be unusual e.g lots of dashes.... I have been stuck all week and with the shop due to 'Go Live', I would appreciate any help or guidance. Kind Regards Toby Quote Link to comment Share on other sites More sharing options...
Guest Posted January 22, 2007 Share Posted January 22, 2007 Good to know I'm not alone, was wondering why even the stock payment modules were losing changes though I can see the default values in the database. php 4.4.4-8 apache 1.3.34-4 mysql 5.0.30-3 Quote Link to comment Share on other sites More sharing options...
tobicky Posted January 22, 2007 Author Share Posted January 22, 2007 Good to know I'm not alone, was wondering why even the stock payment modules were losing changes though I can see the default values in the database. php 4.4.4-8 apache 1.3.34-4 mysql 5.0.30-3 In the catalog/admin/modules.php file around line 42 I had to add this line to reset the array index. reset($HTTP_POST_VARS['configuration']); I dont know if this os OK or messes up some other part of the code (Any expert out there, please advise), but it works for me. This is the block of code that I placed the above code snippet into. if (tep_not_null($action)) { switch ($action) { case 'save': reset($HTTP_POST_VARS['configuration']); while (list($key, $value) = each($HTTP_POST_VARS['configuration'])) { tep_db_query("update " . TABLE_CONFIGURATION . " set configuration_value = '" . $value . "' where configuration_key = '" . $key . "'"); } Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.