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 ...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
|
#1
| |||
| |||
| 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! |
| Sponsored Links | ||
| ||
|
#2
| |||
| |||
| 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 |
|
#3
| |||
| |||
| 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. |
|
#4
| ||||
| ||||
| 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? |
|
#5
| |||
| |||
| Quote:
|
|
#6
| |||
| |||
| Or, you can make this change to cc_validation.php, line 17: Code: function validate($number, $expiry_m, $expiry_y, $cvv="", $cr_card_type="") {
|
|
#7
| |||
| |||
| 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 |
| Sponsored Links | ||
| ||
| |
| Thread Tools | |
| |
| ||||
| 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 |