osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 
 

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


Go Back   osCommerce and osCMax shopping cart software forums > osCommerce 2.2 Forums > osCommerce 2.2 Modification Help

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Closed Thread

 

LinkBack Thread Tools
  #1  
Old 10-08-2003, 05:35 PM
Lurker
 
Join Date: Aug 2003
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
djtodd
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Sponsored Links
Advertisement
  #2  
Old 11-04-2003, 10:49 AM
michael_s's Avatar
osCMax Developer

 
Join Date: Jul 2002
Location: Phoenix, AZ
Posts: 10,479
Thanks: 73
Thanked 334 Times in 313 Posts
Rep Power: 10
michael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond repute
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 Templates - Hundreds of premium quality templates. New designs every month!

  • xShop for osCMax - Windows Based osCMax administration. Improved workflow, security, speed and convenience.

  • osCMax Hosting - From basic hosting to High Availability, Load Balanced arrays, the most experienced osCMax host.

  • osCMax Template Tutorial - Learn how to make your own custom templates and how to use the powerful features of the osCMax template system.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #3  
Old 11-21-2003, 01:43 AM
Lurker
 
Join Date: Nov 2003
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
ChrissieB
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]
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Sponsored Links
Advertisement
Closed Thread

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

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


All times are GMT -8. The time now is 08:26 PM.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO
http://www.oscmax.com/forums/
Copyright 2008 osCMax