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

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

      
  1. #1
    New Member
    Join Date
    Feb 2005
    Posts
    20
    Rep Power
    0


    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!

  2. #2
    New Member
    Join Date
    Feb 2005
    Posts
    20
    Rep Power
    0


    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

  3. #3
    New Member
    Join Date
    Sep 2005
    Posts
    18
    Rep Power
    0


    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.

  4. #4
    Member Cisco's Avatar
    Join Date
    Feb 2003
    Posts
    89
    Rep Power
    0


    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?

  5. #5
    Member
    Join Date
    Jun 2005
    Posts
    50
    Rep Power
    0


    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?

  6. #6
    New Member
    Join Date
    Mar 2005
    Posts
    18
    Rep Power
    0


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

  7. #7
    osCMax Testing Team
    Join Date
    Nov 2004
    Posts
    4
    Rep Power
    0


    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

Similar Threads

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