Sedang Disiapkan

PHP / osCommerce code help

What we are needing is an experienced PHP programmer with osCommerce and CRE Loaded knowledge. We have a site that is up and running, but we are now receiving the following error message after we process our credit cards.

Warning: Cannot modify header information - headers already sent by (output started at /html/catalog/includes/modules/payment/[url removed, login to view]) in html/catalog/includes/functions/[url removed, login to view] on line 47

The credit cards are processed at the merchant just fine, but we are getting the error when redirecting to a page (We believe). We started getting this after we added the following code to the [url removed, login to view] file mentioned in the error.

exec($cmd, $return_string);

if ( empty($return_string) && $this->logfile) { // using exec no curl errors can be retrieved

error_log("Error from cURL using exec() since there is no $return_stringn", 3, $this->logfile);

}

if ($this->logfile) {

error_log("IGS RESPONSE using exec(): " . $return_string[0] . "n", 3, $this->logfile);

}

elseif ($this->use_exec == '1') { // if NOT (function_exists('exec') && $this->use_exec == '1'

if ($this->logfile) {

error_log("Sorry, exec() cannot be calledn", 3, $this->logfile);

}

} else{ // default behavior: cURL is assumed to be compiled in PHP

// echo "curl command<br>" . $cmd . "<br>";

$ch = curl_init();

curl_setopt ($ch, CURLOPT_URL, MODULE_PAYMENT_INNOVATIVE_URL);

curl_setopt ($ch, CURLOPT_HTTPPROXYTUNNEL, 1);

curl_setopt ($ch, CURLOPT_POST, 1);

curl_setopt ($ch, CURLOPT_POSTFIELDS, $data);

curl_setopt ($ch, CURLOPT_PROXYTYPE, CURLPROXY_HTTP);

curl_setopt ($ch, CURLOPT_PROXY, "[url removed, login to view]:3128");

curl_setopt ($ch, CURLOPT_SSL_VERIFYPEER, 0);

if ($this->logfile) {

error_log("IGS REQUEST: " . $return_string . "n", 3, $this->logfile);

}

$return_string = curl_exec ($ch);

if (curl_errno($ch) && $this->logfile) {

$error_from_curl = sprintf('Error [%d]: %s', curl_errno($ch), curl_error($ch));

error_log("Error from cURL: " . $error_from_curl . "n", 3, $this->logfile);

}

if ($this->logfile) {

error_log("RESPONSE: " . $return_string . "n", 3, $this->logfile);

}

curl_close ($ch);

}

Line 47 from the [url removed, login to view] file is:

header('Location: ' . $url);

We need a developer to modify this code to ensure it will work. We do not believe it is due to a space issue of any file as this error usually appears.

Kemahiran: PHP, Troli Membeli-belah, Reka Bentuk Laman Web

Lihat lebih lanjut: oscommerce code, oscommerce innovative gateway error, oscommerce modify header information headers already sent, programmer on line, programmer code, php programmer on line, php programmer developer, php developer information, php developer code, our code, no code, it developer php, echo design, developer code, code line, code developer, code 1, & code, php return_string, oscommerce code header, oscommerce default coding, oscommerce php code post error, oscommerce error_log, oscommerce innovativephp, default code osc headerphp

Tentang Majikan:
( 1 ulasan ) Oakland, United States

ID Projek: #305162

Dianugerahkan kepada:

sharemin

I have read your problem's detail. I think may be the MODULE_PAYMENT_INNOVATIVE_CURL application's problem. I think I can solve it by debug the website online.

$50 USD dalam sehari
(16 Ulasan)
4.3

5 pekerja bebas membida secara purata $77 untuk pekerjaan ini

wdanford

I have developed payment gateway solutions. See by example the demo of a payment services site I just completed at [url removed, login to view] . I definitely can debug this problem. Lagi

$230 USD dalam sehari
(1 Ulasan)
2.8
xaibkhan

will do it in few hours.

$30 USD dalam 0 hari
(0 Ulasan)
0.0
gptArun

I'll give u solution within 2 hours.

$35 USD dalam 0 hari
(0 Ulasan)
0.0
insignia123

Hi, Kindly view PM for details.

$40 USD dalam sehari
(0 Ulasan)
0.0