Results 1 to 8 of 8
  1. #1
    Join Date
    Feb 2009
    Posts
    12
    Plugin Contributions
    0

    Default 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. #2
    Join Date
    Oct 2007
    Location
    Fairbanks, Alaska
    Posts
    426
    Plugin Contributions
    0

    Idea or Suggestion Re: Error when setting up Authorize.net

    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
    Last edited by colemanpa; 2 Feb 2009 at 08:25 AM.

  3. #3
    Join Date
    Feb 2009
    Posts
    12
    Plugin Contributions
    0

    Default Re: Error when setting up Authorize.net

    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

  4. #4
    Join Date
    Feb 2009
    Posts
    12
    Plugin Contributions
    0

    Default Re: Error when setting up Authorize.net

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

  5. #5
    Join Date
    Feb 2009
    Posts
    12
    Plugin Contributions
    0

    Default Re: Error when setting up Authorize.net

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

  6. #6
    Join Date
    Jan 2004
    Posts
    66,364
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Error when setting up Authorize.net

    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.

  7. #7
    Join Date
    Feb 2009
    Posts
    12
    Plugin Contributions
    0

    Default 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');

  8. #8
    Join Date
    Jan 2004
    Posts
    66,364
    Blog Entries
    7
    Plugin Contributions
    274

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

 

 

Similar Threads

  1. v150 How do I set a Payment Zone into my payment module's settings?
    By apt763 in forum PayPal Express Checkout support
    Replies: 2
    Last Post: 2 Mar 2012, 07:10 PM
  2. Editing payment module name
    By Bugno20 in forum Built-in Shipping and Payment Modules
    Replies: 1
    Last Post: 13 Feb 2010, 11:59 AM
  3. Cant edit module settings shipping & payment
    By malice95 in forum Built-in Shipping and Payment Modules
    Replies: 1
    Last Post: 25 Jul 2009, 09:22 PM
  4. Error when editing payment module settings
    By keanesf in forum Installing on a Linux/Unix Server
    Replies: 1
    Last Post: 3 Feb 2009, 05:41 AM
  5. Error when editing payment module settings
    By keanesf in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 3 Feb 2009, 05:40 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR