chobo10 Posted June 13, 2007 Share Posted June 13, 2007 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! Quote Link to comment Share on other sites More sharing options...
chobo10 Posted June 13, 2007 Author Share Posted June 13, 2007 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(); Quote Link to comment Share on other sites More sharing options...
chobo10 Posted June 13, 2007 Author Share Posted June 13, 2007 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.