osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 
 

cc_validation.php errors

This is a discussion on cc_validation.php errors within the osCMax v2 Installation issues forums, part of the osCMax v2.0 Forums category; Hi, When trying to checkout using credit card I get the following error: Warning: Missing argument 4 for validate() in ...


Go Back   osCommerce and osCMax shopping cart software forums > osCMax v2.0 Forums > osCMax v2 Installation issues

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Closed Thread

 

LinkBack Thread Tools
  #1  
Old 09-07-2005, 06:07 AM
New Member
 
Join Date: Feb 2005
Posts: 20
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
kelly34
Default cc_validation.php errors

Hi,

When trying to checkout using credit card I get the following error:

Warning: Missing argument 4 for validate() in /var/www/html/includes/classes/cc_validation.php on line 16

Warning: Missing argument 5 for validate() in /var/www/html/includes/classes/cc_validation.php on line 16

Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/includes/classes/cc_validation.php:16) in /var/www/html/includes/functions/general.php on line 29

Can anyone tell me what I am doing wrong, I have no idea!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Sponsored Links
Advertisement
  #2  
Old 09-07-2005, 07:43 AM
New Member
 
Join Date: Feb 2005
Posts: 20
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
kelly34
Default fix

Hi,

I finally found how to fix this error so I will post it here for anyone else having problems.

Replace the following files with standard files from osc 2.2

/includes/modules/payment/cc.php

/includes/languages/english/modules/payment/cc.php

/includes/classes/cc_validation.php
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #3  
Old 09-25-2005, 08:37 AM
New Member
 
Join Date: Sep 2005
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
HollyRidge
Default RE: fix

Try coping the /includes/classes/cc_validation.php from oscmax 1.7. I did that and it worked fine for me as far as I can tell at this point.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #4  
Old 09-26-2005, 06:57 AM
Cisco's Avatar
Member
 
Join Date: Feb 2003
Posts: 85
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
Cisco
Default Credit Card Validation

Credit Card Validation was working fine. The nI startedto see this errors as follows:

Warning: Missing argument 4 for validate() in /home/content/C/i/s/Cisco281/html/nutz4nascar/catalog/includes/classes/cc_validation.php on line 17

Warning: Missing argument 5 for validate() in /home/content/C/i/s/Cisco281/html/nutz4nascar/catalog/includes/classes/cc_validation.php on line 17

I have tried unistall and re-install.

Does anyone have any ideas?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #5  
Old 11-13-2005, 10:24 AM
Member
 
Join Date: Jun 2005
Posts: 49
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
driwashsolutions
Default Re: RE: fix

Quote:
Originally Posted by HollyRidge
Try coping the /includes/classes/cc_validation.php from oscmax 1.7. I did that and it worked fine for me as far as I can tell at this point.
Excellent - worked for me too. I'm using OSCMAX v2.0 RC2 - looks like another bug fix?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #6  
Old 12-01-2005, 10:52 PM
New Member
 
Join Date: Mar 2005
Posts: 18
Thanks: 2
Thanked 4 Times in 1 Post
Rep Power: 0
avibodha is on a distinguished road
Default

Or, you can make this change to cc_validation.php, line 17:

Code:
   function validate($number, $expiry_m, $expiry_y, $cvv="", $cr_card_type="") {
Just needs some default values. Looks like someone is adding CVV codes but isn't quite done...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #7  
Old 12-10-2005, 11:53 AM
osCMax Testing Team
 
Join Date: Nov 2004
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
pas75
Default

Or,
open the file catalog/includes/modules/payment/linkpointms1.php
replace line no 104
$result = $cc_validation->validate($HTTP_POST_VARS['cc_number'], $HTTP_POST_VARS['cc_expires_month'], $HTTP_POST_VARS['cc_expires_year']);
with
$result = $cc_validation->validate($HTTP_POST_VARS['cc_number'], $HTTP_POST_VARS['cc_expires_month'], $HTTP_POST_VARS['cc_expires_year'], $HTTP_POST_VARS['cc_checkcode'], $HTTP_POST_VARS['cc_card_type']);

It worked for me
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
cc_validation.php Error tbone osCMax v2 Installation issues 2 08-01-2005 06:33 AM
Credit Card Acceptance in cc_validation class NickW osCMax v1.7 Discussion 1 08-09-2004 01:26 AM
errors litotes osCommerce 2.2 Modification Help 1 11-07-2003 08:25 PM
take cc_validation out of cc.php meme osCommerce 2.2 Modification Help 1 03-18-2003 12:49 AM
cc_validation.php - Please, urgent help needed! dos osCommerce 2.2 Modification Help 0 02-18-2003 02:33 PM


All times are GMT -8. The time now is 06:53 AM.


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