Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Getting an Error message ...


romantix

Recommended Posts

Hi,

 

I really needed to combine several of the order screens into one. I installed the "Alternative Purchase System v2.0" Contribution ( http://www.oscommerce.com/community/contributions,3359 ) and now I have most of the things listed on one page (see picture included below) but when I fill out the form and click on CONFIRM ORDER --> I get the following Error:

 

 

Warning: str_repeat() [function.str-repeat]: Second argument has to be greater than or equal to 0. in /home/gourmet/public_html/shop/includes/modules/payment/cc.php on line 137

 

Warning: Cannot modify header information - headers already sent by (output started at /home/gourmet/public_html/shop/includes/modules/payment/cc.php:137) in /home/gourmet/public_html/shop/includes/functions/general.php on line 33

 

 

I have never changed anything in the files listed in the Error message!

 

Here is what I find around line 137 in cc.php:

 

 

$confirmation = array('title' => $this->title . ': ' . $this->cc_card_type,

'fields' => array(array('title' => MODULE_PAYMENT_CC_TEXT_CREDIT_CARD_OWNER,

'field' => $HTTP_POST_VARS['cc_owner']),

array('title' => MODULE_PAYMENT_CC_TEXT_CREDIT_CARD_NUMBER,

'field' => substr($this->cc_card_number, 0, 4) . str_repeat('X', (strlen($this->cc_card_number) - 8)) . substr($this->cc_card_number, -4)),

array('title' => MODULE_PAYMENT_CC_TEXT_CREDIT_CARD_EXPIRES,

'field' => strftime('%B, %Y', mktime(0,0,0,$HTTP_POST_VARS['cc_expires_month'], 1, '20' . $HTTP_POST_VARS['cc_expires_year'])))));

 

 

And this is what can be found around line 33 in general php:

 

 

header('Location: ' . $url);

 

tep_exit();

}

 

WOULD ANYONE PLEASE KNOW HOW TO FIX THIS? Also, how would I be able to make the ‘create the account’ optional with this Contribution?

 

Thanks a million to anyone trying to help! :thumbsup:

 

 

 

Jan

 

 

<A HREF="http://www.romantika.net/screenshot.jpg">screenshot</A>

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...