Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

ERROR UPDATING MODULES


tobicky

Recommended Posts

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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 . "'");

}

Link to comment
Share on other sites

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...