I really need some help. I've got the SkipJack Mod installed and am getting this error:
Warning: urlencode() expects exactly 1 parameter, 0 given in /hsphere/local/home/cluckclu/chickenliteracy.com/store/includes/modules/payment/skipjack.php on line 252
Warning: Cannot modify header information - headers already sent by (output started at /hsphere/local/home/cluckclu/chickenliteracy.com/store/includes/modules/payment/skipjack.php:252) in /hsphere/local/home/cluckclu/chickenliteracy.com/store/includes/functions/functions_general.php on line 44
I have not altered these files. Here are the sections they refer to:
skipjack.php:
////////////////////////////////////////////////////
// Test Credit Card# Visa 4445999922225 or MasterCard 5121212121212124
// Expiration any date after current date.
// Functions to execute before processing the order
// Examples: retreive result from online payment services
////////////////////////////////////////////////////
function before_process() {
global $_POST, $customer_id, $order, $vcc;
if ($_POST['szlsApproved'] != '1') {
zen_redirect(zen_href_link(FILENAME_CHECKOUT_PAYMENT, 'error_message=' . urlencode(MODULE_PAYMENT_SKIPJACK_TEXT_ERROR_MESSAGE), 'SSL', true, false));
}
}
function after_process() {
return false;
}
functions_general.php:
// clean up URL before executing it
while (strstr($url, '&&')) $url = str_replace('&&', '&', $url);
while (strstr($url, '&&')) $url = str_replace('&&', '&', $url);
// header locates should not have the & in the address it breaks things
while (strstr($url, '&')) $url = str_replace('&', '&', $url);
header('Location: ' . $url);
zen_exit();
}
Bookmarks