Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

PayPal settings are not being saved


resshin

Recommended Posts

Hi.

 

The problem that I am having is that when I go change the settings in the PayPal module (such as changing the email from the default one) and go and click Update, the changes aren't being saved.

 

This happens to other payment modules as well as the shipping modules. I don't have the same problem with anything else.

 

I've been trying to figure this out, but so far nothing :angry:.

 

I was wondering if anyone had the same problem, if so how did you go around fixing this.

 

Any help is appriciated.

 

Please, please help :'(

Link to comment
Share on other sites

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 figured it had to be a bug or error in the admin tool itself rather than the module and with a little poking I found the problem is with a line in 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!

 

I simply commented that line out and replaced it with the simple line:

 

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

 

which is a much easier way of doing the exact same thing the original line is supposed to do.

 

then all was fine.

 

 

Hope this helps as I searched then net for a solution and found nada!

 

 

Cheers,

Brett

Edited by brett.howard
Link to comment
Share on other sites

  • 10 months later...
If you have this error and this fix works for you, please post your system configuration and phpinfo output, I would like to work out why the original statement fails on some machines!

 

Cheers,

Brett

 

 

YESSS!!! This finally solved my problem after searching for a very long time. MANY THANKS.

 

Database: MySQL 4.1.13-Max

HTTP server: Apache/2.2.0 (Linux/SUSE)

PHP version: 5.1.2 (Zend: 2.1.0)

Link to comment
Share on other sites

  • 3 months later...
If you have this error and this fix works for you, please post your system configuration and phpinfo output, I would like to work out why the original statement fails on some machines!

 

Cheers,

Brett

Ok here is what I've found out. When I fixed this module in a Windows Server, the quick fix worked fine. I don't think this works on a linux server... I tried the code and it just won't work. I also noticed that the sample was missing a ) at the end of the statement is this correct?

anyone?

One more note: I am working on a Linux Server with Apache and Cent OS, can that be the problem?

Edited by nuevohost01
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.

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