osCmax v2.5 User Manual
Results 1 to 3 of 3

AABOX Max 1.5 and authorize.net / curl possible bug

This is a discussion on AABOX Max 1.5 and authorize.net / curl possible bug within the osCommerce 2.2 Modification Help forums, part of the osCommerce 2.2 Forums category; AABOX Max 1.5 seems to have a small bug. This applies mainly to people NOT USING AUTHORIZE.NET, but After installing ...

      
  1. #1
    Lurker
    Join Date
    Aug 2003
    Posts
    4
    Rep Power
    0


    Default AABOX Max 1.5 and authorize.net / curl possible bug

    AABOX Max 1.5 seems to have a small bug.

    This applies mainly to people NOT USING AUTHORIZE.NET, but

    After installing 1.5 and playing with it for a while I noticed that somethinig was causing the server cpu to peg out at 100% for some time.

    The process turned out to be curl eating up the cpu.

    I tracked the problem down in checkout_process.php.

    Using the default installation of 1.5 check out line 53 of checkout_process.php


    Code:
      //************************************************************
      // Authorizenet ADC Direct Connection
      // Make sure the /catalog/includes/class/order.php is included
      // and $order object is created before this!!!
      if(MODULE_PAYMENT_AUTHORIZENET_STATUS) {
       include(DIR_WS_MODULES . 'authorizenet_direct.php');
      }
      //************************************************************
    Basically it's calling the authorize.net modulke regardless of whether or not it's enabled. It should read...

    Code:
      //************************************************************
      // Authorizenet ADC Direct Connection
      // Make sure the /catalog/includes/class/order.php is included
      // and $order object is created before this!!!
      if(MODULE_PAYMENT_AUTHORIZENET_STATUS == "True") {
       include(DIR_WS_MODULES . 'authorizenet_direct.php');
      }
      //************************************************************
    If a site IS using authorize.net this won't cause a problem, but if it you aren't it will call curl with arguments like "MODULE_PAYMENT_AUTHORIZE_LOGIN" etc instead of the correct parameters.

    This solved my problems, hopefully it can help others avoid this small bug.

    By the way, I'd just like to say thank you to all the people who make oscommerce and aabox's version possible. Your hard work is greatly appreciated.

    Enjoy,
    Josh Todd
    Inquis Technologies, LLC
    http://www.inquistech.com

  2. #2
    osCMax Developer

    michael_s's Avatar
    Join Date
    Jul 2002
    Location
    Phoenix, AZ
    Posts
    19,907
    Rep Power
    568


    Default

    Josh,

    Thank you for this fix. I have been so busy I just forgot to reply! I have incorporated this bugfix into MS2-MAX 1.5.2 as of 11/4/2003.

    For those of you who do not use AuthorizeNet, this fix is really essential for keeping server loads normal. I suggesst adding the code right away.

    For AuthorizeNet users, this fix will not affect you, but you should still add it.
    Michael Sasek
    osCMax Developer


    osCmax Installation Service
    - Have our professionals install osCmax on your server - same day service!
    osCmax 2.5 User Manual - the must have beginners guide to osCmax v2.5

    Stay Up To Date with everything osCMax:
    Free osCmax Newsletters - Security notices, New Releases, osCMax News
    osCmax on Twitter - Up to the minute info as it happens. Know it first.

    osCmax Documentation

  3. #3
    Lurker
    Join Date
    Nov 2003
    Posts
    1
    Rep Power
    0


    Default

    I presume that the sticky 'low order fee' bug fix got taken out of the download version when this bug got fixed? I'm guessing that the complete code snippet needs to read as follows?

    Code:
      
    
      require(DIR_WS_CLASSES . 'order.php');
      $order = new order;
    
      require(DIR_WS_CLASSES . 'order_total.php');
      $order_total_modules = new order_total;
    
      $order_totals = $order_total_modules->process();
    
      //************************************************************
      // Authorizenet ADC Direct Connection
      // Make sure the /catalog/includes/class/order.php is included
      // and $order object is created before this!!!
      if(MODULE_PAYMENT_AUTHORIZENET_STATUS == "True") {
       include(DIR_WS_MODULES . 'authorizenet_direct.php');
      }
      //************************************************************
    
    // load the before_process function from the payment modules
      $payment_modules->before_process();
    Thanks to everybody involved for their work though - saved me bucketloads of blood sweat and tears![/quote]

Similar Threads

  1. Authorize net Error Again... "Check curl and server set
    By Redeye_Joe in forum osCmax v2 Installation issues
    Replies: 18
    Last Post: 03-01-2006, 12:08 PM
  2. Linkpoint and CURL failure
    By hollowplanet in forum osCommerce 2.2 Modification Help
    Replies: 5
    Last Post: 12-14-2004, 02:21 PM
  3. Linkpoint Curl Error
    By mL1 in forum osCommerce 2.2 Modification Help
    Replies: 7
    Last Post: 08-21-2004, 09:37 AM
  4. Problem: cURL
    By mike_steinhoff in forum osCommerce 2.2 Modification Help
    Replies: 7
    Last Post: 05-23-2004, 01:49 PM

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
  •