Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Help With This Error Message


chobo10

Recommended Posts

Hi,

 

I just installed module cvv2_version2_1. Upon testing it, I am getting the following error

 

Warning: Missing argument 4 for validate() in /home/fusion13/public_html/catalog/includes/classes/cc_validation.php on line 16

 

Warning: Cannot modify header information - headers already sent by (output started at /home/fusion13/public_html/catalog/includes/classes/cc_validation.php:16) in /home/fusion13/public_html/catalog/includes/functions/general.php on line 33

 

I'm a newbie and am not sure how to fix this. thanks!

Link to comment
Share on other sites

Hi,

 

I just installed module cvv2_version2_1. Upon testing it, I am getting the following error

 

Warning: Missing argument 4 for validate() in /home/fusion13/public_html/catalog/includes/classes/cc_validation.php on line 16

 

Warning: Cannot modify header information - headers already sent by (output started at /home/fusion13/public_html/catalog/includes/classes/cc_validation.php:16) in /home/fusion13/public_html/catalog/includes/functions/general.php on line 33

 

I'm a newbie and am not sure how to fix this. thanks!

 

Oh! The code reads in cc_validation.php:

class cc_validation {

var $cc_type, $cc_number, $cc_expiry_month, $cc_expiry_year, $cc_cvv2;

 

function validate($number, $expiry_m, $expiry_y, $cvv2) {

$this->cc_number = ereg_replace('[^0-9]', '', $number);

 

and in general.php around line 33:

if ( (ENABLE_SSL == true) && (getenv('HTTPS') == 'on') ) { // We are loading an SSL page

if (substr($url, 0, strlen(HTTP_SERVER)) == HTTP_SERVER) { // NONSSL url

$url = HTTPS_SERVER . substr($url, strlen(HTTP_SERVER)); // Change it to SSL

}

}

 

header('Location: ' . $url);

 

tep_exit();

Link to comment
Share on other sites

Oh! The code reads in cc_validation.php:

class cc_validation {

var $cc_type, $cc_number, $cc_expiry_month, $cc_expiry_year, $cc_cvv2;

 

function validate($number, $expiry_m, $expiry_y, $cvv2) {

$this->cc_number = ereg_replace('[^0-9]', '', $number);

 

and in general.php around line 33:

if ( (ENABLE_SSL == true) && (getenv('HTTPS') == 'on') ) { // We are loading an SSL page

if (substr($url, 0, strlen(HTTP_SERVER)) == HTTP_SERVER) { // NONSSL url

$url = HTTPS_SERVER . substr($url, strlen(HTTP_SERVER)); // Change it to SSL

}

}

 

header('Location: ' . $url);

 

tep_exit();

 

Anyone? For error 2, I have checked the cc verification file. I definitely don't have any invisible white space at the beginning or end.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...