Forums / Built-in Shipping and Payment Modules / Error when editing payment module settings

Error when editing payment module settings

Locked

Started by keanesf on 2 Feb 2009, 7:04 AM · Views: 1,702

Results 1 to 8 of 8
This thread is locked. New replies are disabled.
2 Feb 2009, 7:04 AM
#1
keanesf avatar

keanesf

New Zenner

Join Date:
Feb 2009
Posts:
11
Plugin Contributions:
0

Error when editing payment module settings

When trying to setup authorize.net I get this error

Warning: Variable passed to each() is not an array or object in /admin/modules.php on line 56

Warning: Cannot modify header information - headers already sent by (output started at /admin/modules.php:56) in /admin/includes/functions/general.php on line 21

line 56 on modules.php

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

line 21 on general.php

header('Location: ' . $url);

Not sure what is causing the problem by examining the code, anyone have any ideas?

2 Feb 2009, 7:22 AM
#2
colemanpa avatar

colemanpa

Zen Follower

Join Date:
Oct 2007
Location:
Fairbanks, Alaska
Posts:
423
Plugin Contributions:
0

Re: Error when editing payment module settings

witch type of account are you setting up AIM or SIM, did you try disabling the module and setting it up again? and are you sure the Information from Authorize.net is correct.

did you check the similar threads at the bottom of the screen.

pete

2 Feb 2009, 7:37 AM
#3
keanesf avatar

keanesf

New Zenner

Join Date:
Feb 2009
Posts:
11
Plugin Contributions:
0

Re: Error when editing payment module settings

I am setting up a SIM all the passwords are correct

and I tried relaoding the module. The only thing I can think of is installing zencart again and see if it was because of a coruput install

2 Feb 2009, 7:42 AM
#4
keanesf avatar

keanesf

New Zenner

Join Date:
Feb 2009
Posts:
11
Plugin Contributions:
0

Re: Error when editing payment module settings

I just got the same error when trying to setup the UPS module.

3 Feb 2009, 4:29 AM
#5
keanesf avatar

keanesf

New Zenner

Join Date:
Feb 2009
Posts:
11
Plugin Contributions:
0

Re: Error when editing payment module settings

I re-installed zen cart and I am still getting the same error. Any1 have any ideas?

3 Feb 2009, 5:19 AM
#6
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,515
Plugin Contributions:
176

Re: Error when editing payment module settings

*Please stop posting the same issue all over the forum.
*

Sounds like something wrong with your server or your browser, which is causing the POST values submitted by the form to be broken.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

3 Feb 2009, 5:50 AM
#7
keanesf avatar

keanesf

New Zenner

Join Date:
Feb 2009
Posts:
11
Plugin Contributions:
0

Re: Error when editing payment module settings

I only posted in 2 other catagories.

I just figured out the problem just in case someone else gets this error

by the way I have SSL installed on my server and automaticlly forward http traffic to https

If you get the same error I did change:

/www/admin/includes/configure.php

edit the lines and make sure lines 27 - 32 are set to these values

  • If you desire your entire admin to be SSL-protected, make sure you use a "https:" URL for all 4 of the following:
    */
    define('HTTP_SERVER', 'https://yourdomain.com');
    define('HTTPS_SERVER', 'https://yourdomain.com');
    define('HTTP_CATALOG_SERVER', 'https://yourdomain.com');
    define('HTTPS_CATALOG_SERVER', 'https://yourdomain..com');
3 Feb 2009, 6:37 AM
#8
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,515
Plugin Contributions:
176

Re: Error when editing payment module settings

If you had an automated redirect (such as via .htaccess) to force all http traffic to go to a https address, that could cause the submitted data to be dropped.

Thus, setting your Admin to actually use the https directly is the safer approach, as you indicated.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.